NetTalk Central

Author Topic: Compile error in NetMaps example  (Read 6228 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Compile error in NetMaps example
« Reply #15 on: December 22, 2023, 06:28:43 AM »
-----------
Regards
Alberto

Richard I

  • Sr. Member
  • ****
  • Posts: 398
    • View Profile
    • Email
Re: Compile error in NetMaps example
« Reply #16 on: December 22, 2023, 09:08:28 PM »
Got It !
Many Thanks Alberto, for this post and those earlier.
Your help is very much appreciated.

Hopefully when Bruce replies to your post regarding the Marker removal,
he does so  on the forum.

Best wishes for the festive season.

Regards
Richard

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Compile error in NetMaps example
« Reply #17 on: December 26, 2023, 07:34:10 AM »
I could make it work!

Add this line to update the marker instead of deleting it (still impossible) and insert it again...

after my last line add

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')

and it will do what you need.
-----------
Regards
Alberto

Richard I

  • Sr. Member
  • ****
  • Posts: 398
    • View Profile
    • Email
Re: Compile error in NetMaps example
« Reply #18 on: December 26, 2023, 12:40:43 PM »
Hi Alberto
Yes, it does thank you  !
I also found an alternative way but not as elegant as your code.....

As a test and without adding another button ,I commented out all Server side code on the Home button,
and added   do refresh::GeneralMap

The next challenge is to clear the latitude and longitude fields between views
Thanks again
Richard