LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
I recall that we may be able to change the icons in the map widget from the traditional red marker to something else. I may be remembering wrong. I look at the "markers" command for the full array and get this in the LC Dictionary:
The marker array has the following form: { : { "title":
It appears to be missing some text. Anyone know the full list of keys for the array or more to the point if we are able to change the icons, for instance, into a beach umbrella or hamburger type icon?
This is the rest of the text..9as far as I can tell…
The marker array has the following form: { tag for marker: { "title": title of the marker, "subtitle": optional subtitle of the marker, "coordinates": coordinates of the marker }, tag for marker: { ... }, ... }
on openCard
wait .5 seconds
set the region of widget "map" to gCoordinates & "," & ".005,.005"
wait 2 seconds
set the showsUserLocation of widget "Map" to true
put gCoordinates into tMarkers[1]["coordinates"]
put "Test" into tMarkers[1]["title"]
set the markers of widget "map" to tMarkers
end openCard
You can set the shape of the markers with the markerPoints property. The dictionary tells you how. You can create some elaborate markers this way. Bernd sent me an example years ago where each marker spelled my name, which was both impressive and funny.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
Nice- I am going to dig into it now that I know it is possible. Right now, I am stuck on getting any of the information in the markers array to show, particularly ["title"] and ["subtitle"] for whatever reason. The traditional red marker is in the right coordinates though.
JereMiami wrote: Thu May 13, 2021 5:44 pm
Nice- I am going to dig into it now that I know it is possible. Right now, I am stuck on getting any of the information in the markers array to show, particularly ["title"] and ["subtitle"] for whatever reason. The traditional red marker is in the right coordinates though.
I'm afraid I misinformed you. MarkerPoints works with graphic objects. I missed the part where you said you were working with the map widget. I don't see a way to change the shape of those.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com