Page 1 of 1

Different states for same marker

PostPosted: 27 May 2014 09:20
by assapan
Hi,
in my application , i display the aerological information for airfields . these informations are time related to show the weather evolution.
I'd want to display a time line to see the evolution in next hours.
so i have so far to redraw the full map to set the right icon for the right condition ( green for VFR , blue for MVFR , red for IFR ).

so my question is , is there a way to easily change the icon ( bubble in my case ) without recreating all the markers ? maybe set some markers invisible and make same visible ?

thank for your support

Re: Different states for same marker

PostPosted: 27 May 2014 10:17
by Alexander Bulei
Hi assapan,

That depends on your code/implementation.

Best Regards.

Re: Different states for same marker

PostPosted: 27 May 2014 14:21
by assapan
I am trying to have some hidden markers using Options.visible but it doesn't work , is this option available ?

Re: Different states for same marker

PostPosted: 29 May 2014 11:10
by Alexander Bulei
Hi assapan,

It's possible to change the icon without refresh, but only with javascript at this moment.

Check attached demo, and let me know if you want change fot multiple markers.

Best Regards.

Re: Different states for same marker

PostPosted: 29 May 2014 11:24
by assapan
Hi,
thanks , but the testframe source is missing :?

Re: Different states for same marker

PostPosted: 29 May 2014 11:25
by Alexander Bulei
Hi assapan,

Sorry, remove the reference.

Best Regards.

Re: Different states for same marker

PostPosted: 29 May 2014 11:50
by assapan
hi it works great.

Re: Different states for same marker

PostPosted: 29 May 2014 16:44
by Alexander Bulei
Hi assapan,

Just for information, improved/added in V2.1.0.3649

Code: Select all
2.1.0.3649

JQGMap3:
- Improved/Added: support for ajax changing of TIWCGJQGMap3MarkerOptions properties:
   * Icon
   * Cursor
   * Draggable
   * Title
   * Visible
   * ZIndex
   
- Added: Support for changing properties of multiple markers


Best Regards.