[OpenLayers-Users] Popup Box Problem using multiple layers

Phil Scadden p.scadden at gns.cri.nz
Thu Sep 12 15:00:30 PDT 2013


Hmm, loading lots of layers by geoJSON is slow. Do you have a reason not 
to use WMS instead?

To your problem - in my app, the whole map configuration is read from a 
json config file so same code support many applications. In the config 
file, for each layer I am loading, I also store metadata on attributes 
and how I want them displayed. The popup creation combine that config 
information with attribute information.

This gives you a lot of control, but an alternative approach if you are 
using geoserver is freemarker templates and construct those popups 
serverside. This is a lot faster.

Notice: This email and any attachments are confidential.
If received in error please destroy and immediately notify us.
Do not copy or disclose the contents.



More information about the Users mailing list