Ok, I fixed that by setting the longlat again after initialisation, like
this:


                        
newMark.events.register('mouseover',newMark,function(evt){
                                var popup = new 
OpenLayers.Popup("popup_"+this.id,
                                   new
OpenLayers.LonLat(newMark.lonlat.lon,newMark.lonlat.lan),
                                   new OpenLayers.Size(200,200),
                                   "example popup",
                                   true);
                                popup.lonlat = newMark.lonlat;
                                this.map.addPopup(popup);
                        })

Is there an easy way to offset my popup though, for example if I want it to
appear directly above my marker?
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Marker-with-popup-tp6032030p6032101.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to