Select to view content in your preferred language

Can 2 cluster layers be displayed at the same time?

654
1
07-03-2014 07:33 AM
TyroneLigon
Deactivated User
Until recently, I had 2 cluster layers on my map. Only one layer would ever contain data and be displayed at any time. Now I have a situation where I need to add a 3rd cluster layer and display data simultaneously from 2 of the layers. The layers are created and added to the map after the map load event has fired (call them "Cluster 1" and "Cluster 2"). What I'm finding is that Cluster 1 is drawing just fine; Cluster 2 doesn't display any markers at all. If I switch the layer add order, then Cluster 2 draws and Cluster 1 doesn't. No errors in Firebug, no data problems in either layer. I've looked through the cluster layer code and I don't see anything obvious that precludes the second cluster layer from drawing.

Wish I could post code, but the app is still on an intranet. Any ideas?
0 Kudos
1 Reply
TyroneLigon
Deactivated User
As Emily Litella would say: "Never mind."

Both layers had the same ID specified in its layer parameters. All is right with the world.
0 Kudos