NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Richard I on December 09, 2023, 09:32:07 PM

Title: NT Example Maps(76) question
Post by: Richard I 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
Title: Re: NT Example Maps(76) question
Post by: Alberto 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