[OpenLayers-Users] Using UTM data with OpenLayers
Luca Casagrande
luca.casagrande at gmail.com
Mon Nov 19 09:41:01 EST 2007
Hello everybody.
After some testing using the demos inside OL package, i decided to
configure it with my WMS service.
All data are in UTM system with EPSG:23033
This is the script part:
<script type="text/javascript">
var lon = 291120;
var lat = 4748820;
var map, layer;
function init(){
map = new OpenLayers.Map( 'map',{
projection:"EPSG:23033",
units:m,
maxExtent:new OpenLayers.Bounds(138667,4624862,452902,4852896),
minResolution: 0.001,
maxResolution: 628.47});
layer = new OpenLayers.Layer.WMS( "Stazioni",
"http://localhost/cgi-bin/mapserv?map=/home/geko/wms_local.map",
{layers: 'stazioni'});
map.addLayer(layer);
map.setCenter(new OpenLayers.LonLat(lon, lat));
map.addControl( new OpenLayers.Control.LayerSwitcher() );
}
</script>
If i open the page in the browser, nothing is drawn and if i use
firebug on the tile, the BB extent is this:
BBOX=189787,4730342,190147,4730702
What i am missing?
Thanks
Luca
More information about the Users
mailing list