I would like to also use the new Map widget as an alternative method but the widget always remains empty..no google map when built for Android.
I have :
Code: Select all
set the centerCoordinates of widget "Map" to "55.9533,-3.1883"
set the region of widget "Map" to "55.9533,-3.1883, 10, 10"
local tMarkers, tMarkerData
put "55.9533,-3.1883" into tMarkerData["coordinates"]
put "Centre of Edinburgh" into tMarkerData["title"]
put tMarkerData into tMarkers["Edinburgh"]
set the markers of widget "Map" to tMarkers
-- draw some parallel lines over Scotland
local tPolylines
put "55.9533,-3.1883,55.8533,-3.1883" into tPolylines[1]["coordinates"]
put "255,0,0" into tPolylines[1]["color"]
put "5" into tPolylines[1]["width"]
put "54.9533,-3.1883,54.8533,-3.1883" into tPolylines[2]["coordinates"]
set the polylines of widget "Map" to tPolylines
Does anyone have a working example or can see a problem with what I'm doing?