NetTalk Central

Author Topic: Refreshing Maps(76) to new latitude and longitude  (Read 2718 times)

Richard I

  • Sr. Member
  • ****
  • Posts: 398
    • View Profile
    • Email
Refreshing Maps(76) to new latitude and longitude
« on: December 28, 2023, 05:18:07 PM »
With Alberto's help I now have the Maps 76 General Map doing what i want
ie
manually entering coordinates in latitude and longitude fields and from the GoTo button, displaying the marker on the map at those coordinates.

I now want to , using a new button, loop through a data table line by filtered line, populate the two latitude and longitude fields and use the GoTo code to display the marker at the new position
Using the Serverside code on this new button I cannot get the correct code to achieve this...

Thanks
Happy new Year
Richard
« Last Edit: December 28, 2023, 09:38:21 PM by Richard I »

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Refreshing Maps(76) to new latitude and longitude
« Reply #1 on: December 29, 2023, 10:35:13 AM »
Hi Richard,

In all the code you use in the goto button the 3er parameter is the name of the waypoint, by example:

p_web.ntMap('GeneralMap','updateMarker','NewWp', p_web.GetLatLng(p_web.GetSessionValue('gm:Latitude')) , p_web.GetLatLng(p_web.GetSessionValue('gm:Longitude')) , p_web.WrapOptions(loc:options) , p_web.jsok('My Place', Net:HtmlOk*0+Net:UnsafeHtmlOk*0) , '1')

Then, in your loop you can name each waypoint and achieve what you need.
-----------
Regards
Alberto

Richard I

  • Sr. Member
  • ****
  • Posts: 398
    • View Profile
    • Email
Re: Refreshing Maps(76) to new latitude and longitude
« Reply #2 on: December 29, 2023, 04:07:56 PM »
Thanks Alberto
Much Obliged