[OpenLayers-Users] Adding multiple anchored popups
bradley_mclain at debortoliwines.com
Thu Dec 20 19:56:25 EST 2007
Currently I have an array of location details that I am running through a
simple while loop to populate my map with markers.
This is working perfect and is as follows.
var markers = new OpenLayers.Layer.Markers( "Markers" );
//Setting Size and Offset of Markers
var size = new OpenLayers.Size(20,34);
var offset = new OpenLayers.Pixel(-(size.w/2), -size.h);
var site = 0;
while (site < locationList.length)
var icon = new OpenLayers.Icon('../../img/gmarker.png',size,offset);
What I want to do is add anchored popups to all of these markers,
having each one work properly, I've tried hacking around with the
example but I can only ever get one to add at a time.
Any help with this would be much appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users