PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WEBDEV 2024 → Map Marker
Map Marker
Iniciado por Mister RUAN, 18,abr. 2017 15:10 - 1 respuesta
Miembro registrado
208 mensajes
Popularité : +1 (1 vote)
Publicado el 18,abril 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
Miembro registrado
208 mensajes
Popularité : +1 (1 vote)
Publicado el 19,abril 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