NetTalk Central

Author Topic: NT Example Maps(76) question  (Read 625 times)

Richard I

  • Sr. Member
  • ****
  • Posts: 381
    • View Profile
    • Email
NT Example Maps(76) question
« on: December 09, 2023, 09:32:07 PM »
Hi all,
I am wanting to  deploy the GeneralMap from the example in my app displaying the latitude and longitude from a data table
I can do that but I also want to display the coloured Marker  corresponding to the coordinates in the gm:latitude and gm:longitude fields.

When the coordinates change I want the marker to assume the new position.

the Marker is appearing to control the coordinates , whereas I want the coordinates to control the marker

Thanks
Regards,
Richard
NT14.13
« Last Edit: December 09, 2023, 10:33:14 PM by Richard I »

Alberto

  • Hero Member
  • *****
  • Posts: 1848
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: NT Example Maps(76) question
« Reply #1 on: December 11, 2023, 04:58:10 AM »
Hi Richard, just use this method

SetMarker              PROCEDURE(String pId,Real pLatitude,Real pLongitude,String pIcon,Long pIconIndex=1,Long pPointX=16,Long pPointY = 32,Long pHide=false),DERIVED

Using the same ID, you can update the marker.

Regards
-----------
Regards
Alberto