NetTalk Central

Author Topic: Request: Option to refresh data sets on a map  (Read 3682 times)

debzidoodle

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
    • Email
Request: Option to refresh data sets on a map
« on: March 17, 2014, 01:47:11 PM »
Hi Bruce,

Can we have an option to refresh a dataset on a map, either from a button on the form, or to have it auto refresh on a timer?
The use case I am after is the lat\lon changing from the user on a mobile device in the field, and the office staff being able to see the position change without reloading the map tiles.

Thanks

Debra

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Request: Option to refresh data sets on a map
« Reply #1 on: March 18, 2014, 06:15:23 AM »
I'll look into it Debra.

jari@softmade.fi

  • Full Member
  • ***
  • Posts: 134
    • View Profile
    • Email
Re: Request: Option to refresh data sets on a map
« Reply #2 on: March 18, 2014, 10:49:09 PM »
Same needs here.
Also it would be nice to know is it possible to use these markers: http://www.mapquestapi.com/staticmap/icons.html

Thanks for goog map features !!!!  :)

Jari

jari@softmade.fi

  • Full Member
  • ***
  • Posts: 134
    • View Profile
    • Email
Re: Request: Option to refresh data sets on a map
« Reply #3 on: April 02, 2014, 03:44:24 AM »
This is almost solved with this code.
Only problem is clustered markers.
Any ideas ?

 
      Relate:Accident.open
      clear(Acc:record)
      set(Acc:GuidKey,Acc:GuidKey)
      loop
            next(Accident)
            if error()
               break
            .
            Acc:Latitude=Acc:Latitude-0.001
            put(Accident)

  !Here start the code  that moves markers
            marker"=p_web.AddBrowseValue('AccidentsMap','Accident',Acc:GuidKey)
            p_web.Script('$("#' & p_web._jsok(p_web.nocolon('AccidentsMap')) & '").ntmap("updateMarker","'&clip(marker")&'",'&p_web.GetLatLng(Acc:Latitude)&','&p_web.GetLatLng(Acc:Longitude)&','&p_web.WrapOptions(loc:options)&');')
      .

jari@softmade.fi

  • Full Member
  • ***
  • Posts: 134
    • View Profile
    • Email
Re: Request: Option to refresh data sets on a map
« Reply #4 on: April 02, 2014, 11:33:07 PM »
There is option: Disable clustering at zoom.
When this is set to 1 markers are not clustered and now they can move