Discussion:
map widget
Mike for GDC via use-livecode
2018-11-14 17:12:39 UTC
Permalink
Does anyone have an example of using the "map widget"? I got my current
location of lat/long and now want to display it on a map. I have set up my
api key but have not seen any example of how to implement the map.. what I
really want to do is to show my location and also any nearby restaurants,
gas stations nearby. I have seen some livecode examples of this but not
the code of how to accomplish it. Any help would be much appreciated.
Thanks.
hh via use-livecode
2018-11-14 17:58:33 UTC
Permalink
[Dictionary/map]

set the region of widget "Map" to "55.9533,-3.1883, 10, 10"

The region of a map widget is a tuple describing the map region
currently displayed; the first two items are the centerCoordinates and
the second two the span.

set the centerCoordinates of widget "Map" to "55.9533,-3.1883"
first item is latitude, second item is longitude

Loading...