I use Openlayers 2.12 and create a popup window like this:
popup = new OpenLayers.Popup.FramedCloud("chicken", new OpenLayers.LonLat(latlotArr[0],latlotArr[1]).transform( fromProjection, toProjection), new OpenLayers.Size(300, 300),htmlImg,null, true); I get the coordinates from some images. But some of the images don't have any coords. In this case I just want to display the popup without a specific location.
How can I do that? I tried this:
popup = new OpenLayers.Popup.FramedCloud("chicken", new OpenLayers.LonLat(null,null), new OpenLayers.Size(300, 300), htmlImg, null, true); But ofcource it didn't work. I get an error: invalid value for variable lat.
أكثر...
popup = new OpenLayers.Popup.FramedCloud("chicken", new OpenLayers.LonLat(latlotArr[0],latlotArr[1]).transform( fromProjection, toProjection), new OpenLayers.Size(300, 300),htmlImg,null, true); I get the coordinates from some images. But some of the images don't have any coords. In this case I just want to display the popup without a specific location.
How can I do that? I tried this:
popup = new OpenLayers.Popup.FramedCloud("chicken", new OpenLayers.LonLat(null,null), new OpenLayers.Size(300, 300), htmlImg, null, true); But ofcource it didn't work. I get an error: invalid value for variable lat.
أكثر...