NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: oggy on June 25, 2020, 12:03:25 PM

Title: WebMap, refreshing marker after data change
Post by: oggy 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?
Title: Re: WebMap, refreshing marker after data change
Post by: DonRidley on June 26, 2020, 05:21:00 AM
Check out:

https://medium.com/@etaiso/creating-animated-marker-in-here-maps-ae5d75870e29

Title: Re: WebMap, refreshing marker after data change
Post by: oggy on June 26, 2020, 06:34:32 AM
Damn I was afraid of that, heheheeh.
No, really, thanks for answer...
Regards...
Title: Re: WebMap, refreshing marker after data change
Post by: Bruce 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
Title: Re: WebMap, refreshing marker after data change
Post by: oggy 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...
Title: Re: WebMap, refreshing marker after data change - RESOLVED
Post by: oggy 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...