PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 21 → Map Marker
Map Marker
Débuté par Mister RUAN, 18 avr. 2017 15:10 - 1 réponse
//hostimage.webdev.info/avatars/SMNMuGqoaBbhEqRO8r9MMA
Membre enregistré
151 messages
Popularité : +1 (1 vote)
Posté le 18 avril 2017 - 15:10
Good Day

Is there a way to add a marker on the map without the Lat & Long info. I want it to add a marker from only the address and by doing that return the LAT & LONG. Tried using MapAddMarker but needs LAT & LONG.

Thanks

Ruan
//hostimage.webdev.info/avatars/SMNMuGqoaBbhEqRO8r9MMA
Membre enregistré
151 messages
Popularité : +1 (1 vote)
Posté le 19 avril 2017 - 10:42
I managed to get this right doing this.

MyZoom is int = 12
Latitude, Longitude are reals
Localization is gglCoordinate

MyPosition is geoPosition


Localization = GglAddressToCoordinates("12 William Nicol Drive, Sandton")
Latitude = Localization..Latitude
Longitude = Localization..Longitude

MyPosition..Latitude = Latitude
MyPosition..Longitude = Longitude

MyMarker is Marker
MyMarker..Position = MyPosition

MapAddMarker(MAP_NoName3, MyMarker)
MapDisplayPosition(MAP_NoName3, MyPosition)
MAP_NoName3..Zoom = MyZoom