NetTalk Central

Author Topic: WebMap, refreshing marker after data change  (Read 5200 times)

oggy

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • Email
WebMap, refreshing marker after data change
« on: June 25, 2020, 12:03:25 PM »
Based on web76 example, I have map with source on table. If data change, latitude - longitude, how can I refresh/reset, or move, marker to new value?

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

oggy

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • Email
Re: WebMap, refreshing marker after data change
« Reply #2 on: June 26, 2020, 06:34:32 AM »
Damn I was afraid of that, heheheeh.
No, really, thanks for answer...
Regards...

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: WebMap, refreshing marker after data change
« Reply #3 on: June 29, 2020, 08:56:37 PM »
Oggy,

are you wanting to see an animated move, or just refresh the map with the new marker position?

cheers
Bruce

oggy

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • Email
Re: WebMap, refreshing marker after data change
« Reply #4 on: June 29, 2020, 11:48:38 PM »
Hi Bruce, I need to refresh, reset, position of the marker. My code:
After change, i fetch the new data and:
p_web.SetValue('_marker_',tra:ID_Imei)
p_web.ntMap('CentralEu','updateMarker','"'&p_web.GetValue('_marker_')&'",'&p_web.GetLatLng(tra:Latitude)&','&p_web.GetLatLng(tra:Longitude)&','&p_web.WrapOptions(loc:options))   

did not work. I cannot even to remove some marker...

oggy

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • Email
Re: WebMap, refreshing marker after data change - RESOLVED
« Reply #5 on: July 06, 2020, 08:47:22 AM »
OK, i managed to resolve this...

BTW, Bruce, nice work on new build. After installing 1138 build of Nettalk, I did not get any error while compiling. I mean on error of unresolved externals...
Regards...