my layers are in wgs84 and I need to zoomToExtend to specific Bound's but it seems I can not make it....The code seems ok but nothing happens.
map = new OpenLayers.Map({ div: "map", fallThrough:false, units: "m", projection: googleMercator, displayProjection: wgs84 });.... var minLat = 38.79; var minLng = 24.09; var maxLat = 42.08; var maxLng = 25.61; map.zoomToExtent(new OpenLayers.Bounds(minLng,minLat,maxLng,maxLat).transform(wgs84, googleMercator));
أكثر...
map = new OpenLayers.Map({ div: "map", fallThrough:false, units: "m", projection: googleMercator, displayProjection: wgs84 });.... var minLat = 38.79; var minLng = 24.09; var maxLat = 42.08; var maxLng = 25.61; map.zoomToExtent(new OpenLayers.Bounds(minLng,minLat,maxLng,maxLat).transform(wgs84, googleMercator));
أكثر...