[OpenLayers-Users] positionBlocks null
benkyma
ben at kymatic.net
Mon Feb 28 09:09:05 EST 2011
I trying to create a popup when the user hovers a marker. To do this I have
the following function, but when I call it, I get an error saying
this.positionBlocks is null.
How do I set the positionBlocks property? I just want a popup, always in
the same relative position, and always the same size.
displayPopup: function(marker){
var popup = new OpenLayers.Popup.Framed("popup_"+marker.id,
new OpenLayers.LonLat(marker.lonlat.lon,marker.lonlat.lan),
new OpenLayers.Size(140,200),
"example popup",
marker.icon,
false);
popup.fixedRelativePosition = true;
popup.lonlat = marker.lonlat;
popup.imageSrc = initObj.appPath+"images/thumb_bg.png";
marker.map.addPopup(popup);
}
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/positionBlocks-null-tp6073384p6073384.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list