problem with popup conclusion on pressing a marker

المشرف العام

Administrator
طاقم الإدارة
I have markers on pressing to which popup has to be brought. how to make it? (coordinates of markers undertake from a DB)

var map;var markers;function ejecutar() { init(3); //loadMarkers();}function init(b,kor_1,kor_2) { if (b == 3) { map = new OpenLayers.Map("basicMap", { controls: [ new OpenLayers.Control.Navigation(), new OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.LayerSwitcher(), new OpenLayers.Control.Attribution()], maxExtent: new OpenLayers.Bounds(-20037508.34, -20037508.34, 20037508.34, 20037508.34), maxResolution: 156543.0399, numZoomLevels: 2, units: 'm', projection: new OpenLayers.Projection("EPSG:900913"), displayProjection: new OpenLayers.Projection("EPSG:4326") }); } layerMapnik = new OpenLayers.Layer.OSM.Mapnik("MapaCiudad"); map.addLayer(layerMapnik); var lonLat = new OpenLayers.LonLat(50.5206298828125, 55.15881723298661).transform(new OpenLayers.Projection("EPSG:4326"), map.getProjectionObject()); //map.setCenter(new OpenLayers.LonLat(-3.862788677215576, 43.4669443349282) // Center of the map map.zoomTo(9); map.setCenter(lonLat, 19); //

أكثر...
 
أعلى