Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
630
dynamically inserting a shapefile into a map with existing shape layers
posted

Is there any way to insert a new series object in the  map's series array and specify where in the series I want it? For example if I initially have a map with with a  geographicShape  type, another geographicShape type and a geographicSymbol type, the symbols (markers) appear on the top layer. Now I want to dynamically insert another geographicShape type but place it "under" the geographicSymbol series item I currently  add it  via:

$("#map").igMap("option", "series",
[{
type: "geographicShape",

...

This shape will appear over the symbols thus making them invisible. Having to remove all of the map's series objects and then re-adding them in my desired order seems to be a lot of work on the client considering that it has to redraw the shape polygons again.