I must be missing something.
Right now I have an OpenLayers Map, with 3 'layers' and a base layer.
Each layer load a different content type (attractions, hotels, restaurants).
Works perfectly.
However, all three of these views are loaded with the page. Looking at source I see just rows and rows of features. Which makes the page load time horrible.
Surely, there must be a way so that these views are loaded only when a user clicks on the layer.
Ie, a user clicks on a layer, hit the view with an ajax request, display the results. Instead of all the layers being loaded on the first render.
But I don't see anyway to do it. Has anyone accomplished this? It seems like something that would be built in.
Comments
Comment #1
CLEE25 CreditAttribution: CLEE25 commentedComment #2
milos.kroulik CreditAttribution: milos.kroulik commentedWhat do you mean by "clicks on the layer"? Do you mean using Layer switcher?
Also, this doesn't seem to happen any time near, given https://drupal.org/comment/7295216#comment-7295216
Comment #3
CLEE25 CreditAttribution: CLEE25 commentedYes, using the layer switcher. I figured as much, so I ended up just building my own custom map, but thanks for your reply!
Comment #4
m.stentaCleaning up old issues. Seems like this one is resolved, but feel free to reopen if I'm wrong!