[Gfoss] OpenLayers
francesco334
francesco334 a interfree.it
Mer 16 Apr 2008 19:05:44 CEST
francesco334 wrote:
>
> Ciao a Tutti,
> sto cercando di visualizzare la mappa gmap75 con OpenLayers.
> Ho provatoquestocodice :
> function init(){
> var map = new OpenLayers.Map( 'map', {maxResolution: 'auto'}
> );
> var layer = new OpenLayers.Layer.MapServer.Untiled( "Test
> Untiled",
>
> "http://localhost:8080/cgi-bin/mapserv.exe?map=/ms4w/apps/gmap-puglia/htdocs/gmap75.map",
> {layers: 'all'} );
> // var layer = new OpenLayers.Layer.MapServer.Untiled(
> "MapServer Untiled",
> // "http://labs.metacarta.com/wms/vmap0", {layers:
> 'basic'} );
> map.addLayer(layer);
> layer.addOptions({isBaseLayer: true});
>
> map.setCenter(new OpenLayers.LonLat(-120, 45), 0);
> map.setCenter(new OpenLayers.LonLat(0, 0), 1);
>
> ma non riesco a visualizzare la mappa.
>
> Come posso fare?
> Francesco
>
> Vi inoltro il http://www.nabble.com/file/p16703407/gmap75.map gmap75.map
> mio map file.
>
--
View this message in context: http://www.nabble.com/OpenLayers-tp16703407p16723763.html
Sent from the Gfoss mailing list archive at Nabble.com.
Maggiori informazioni sulla lista
Gfoss