[OpenLayers-Users] Example popupMatrix.html question

Stephen Woodbridge woodbri at swoodbridge.com
Tue May 20 18:18:50 EDT 2008


Hi all,

I'm trying to understand the example:
http://openlayers.org/dev/examples/popupMatrix.html

This seems pretty clear, and I was following it up to the point where:

         function addMarker(ll, popupClass, popupContentHTML, closeBox, 
overflow) {

             var feature = new OpenLayers.Feature(layer, ll);

"layer" above is a global reference to OpenLayers.Layer.Image(...)

So I assume that this is just the base layer and that for some reason 
the features need to be created on the base layer in spite of the fact
that they are getting added to "markers" layer, or I'm missing some 
other key point.

So it is not clear to me what is going on here and I could use some 
clarification.

Thanks,
   -Steve



More information about the Users mailing list