|
From: David W. <dwi...@op...> - 2008-11-05 19:31:17
|
Just use layers: 'edo_qro' instead of the layers parameter you have set now. Hope this helps, -David Winslow Arturo Juàrez wrote: > Hi, How call my combined layers for OpenLayer?? I was make the > combined with name "edo_qro" > > Thanks > > *//**/Arturo Juárez Lima/* > > > > David Winslow escribió: >> I don't believe OpenLayers has any built-in limit to how many WMS >> layers you can pack into an OpenLayers.Layer.WMS. However, in >> Internet Explorer there is a hard limit of how long a URL can be, >> which indirectly imposes a limit on how many layers can be combined >> in a single WMS layer. I suggest you use the WMS->Contents section >> of the GeoServer admin console to create a layer group combining the >> layers you would like to use in OpenLayers; then you will not have to >> fit all the layer names into the URL. >> >> (A POST request is not an option here since OpenLayers uses IMG >> elements for the tiles of the maps.) >> >> Hope this helps, >> -David Winslow >> >> Arturo Juàrez wrote: >>> Hi, I have a map whit 85 layers, but in Iexplorer showme only >>> squares of color pink in the map, but in firefox showme the map >>> correctly. >>> If I set only 80 layers in bot browsers showme the map correctly. >>> >>> Until how many layers lets to me show the Iexplorer?? to somebody >>> has passed him the same?? >>> >>> this is my code, maybe somebody could correct to me in case of >>> error. Thanks >>> >>> <html xmlns="http://www.w3.org/1999/xhtml"> >>> <head> >>> <style type="text/css"> >>> #map { >>> width: 806px; >>> height: 560px; >>> border: 1px solid black; >>> } >>> #wrapper { >>> width: 836px; >>> } >>> #location { >>> float: right; >>> } >>> </style> >>> >>> <link rel="stylesheet" >>> href="http://172.16.23.21:8080/geoserver/OpenLayers/theme/default/style.css" >>> type="text/css" /> >>> <link rel="stylesheet" href="style.css" type="text/css" /> >>> <script >>> src="http://172.16.23.21:8080/geoserver/OpenLayers/OpenLayers.js"></script> >>> >>> <script type="text/javascript"> >>> var lon = -100; >>> var lat = 20.60; >>> var zoom = 8; >>> var map, layer; >>> >>> function init(){ >>> var options = { >>> maxScale: 100, >>> numZoomLevels: 2 >>> }; >>> >>> map = new OpenLayers.Map( 'map', options ); >>> layer = new OpenLayers.Layer.WMS( "layers de Queretaro", >>> "http://172.16.23.21:8080/geoserver/wms", >>> {layers: >>> 'tur:LMA,local:Colonias01,local:Colonias04,local:Colonias05,local:Colonias06,local:Colonias07,local:Colonias08,local:Colonias09,local:Colonias11,local:Colonias12,local:Colonias14,local:Colonias16,local:Colonias17,lManzanas:manzanas_01,lManzanas:manzanas_02,lManzanas:manzanas_03,lManzanas:manzanas_04,lManzanas:manzanas_05,lManzanas:manzanas_06,lManzanas:manzanas_07,lManzanas:manzanas_08,lManzanas:manzanas_09,lManzanas:manzanas_10,lManzanas:manzanas_11,lManzanas:manzanas_12,lManzanas:manzanas_13,lManzanas:manzanas_14,lManzanas:manzanas_15,lManzanas:manzanas_16,lManzanas:manzanas_17,lManzanas:manzanas_18,predios:predios_01,predios:predios_02,predios:predios_03,predios:predios_04,predios:predios_05,predios:predios_06,predios:predios_07,predios:predios_08,predios:predios_09,predios:predios_10,predios:predios_11,predios:predios_12,predios:predios_13,predios:predios_14,predios:predios_15,predios:predios_16,predios:predios_17,predios:predios_18,lcalle:calles_01,lcalle:calles_02,lcall >>> e:calles_03,lcalle:calles_04,lcalle:calles_05,lcalle:calles_06,lcalle:calles_07,lcalle:calles_08,lcalle:calles_09,lcalle:calles_10,lcalle:calles_11,lcalle:calles_12,lcalle:calles_13,lcalle:calles_14,lcalle:calles_15,lcalle:calles_16,lcalle:calles_17,lcalle:calles_18,Construcciones:construcciones_01,Construcciones:construcciones_02,Construcciones:construcciones_03,Construcciones:construcciones_04,Construcciones:construcciones_05,Construcciones:construcciones_06,Construcciones:construcciones_07,Construcciones:construcciones_16,Construcciones:construcciones_17'} >>> );//,Construcciones:construcciones_11,Construcciones:construcciones_12,Construcciones:construcciones_13'} >>> ); >>> >>> map.addLayer(layer); >>> >>> map.setCenter(new OpenLayers.LonLat(lon, lat), zoom); >>> map.addControl( new OpenLayers.Control.LayerSwitcher() ); >>> map.addControl( new OpenLayers.Control.Scale($('scale'))); >>> map.addControl( new OpenLayers.Control.PanZoomBar()); >>> // <link rel="stylesheet" href="style.css" type="text/css" /> >>> } >>> </script> >>> </head> >>> <body onload="init()"> >>> <h1 id="title">WMS Example</h1> >>> >>> <div id="tags"> >>> </div> >>> <p id="shortdesc"> >>> Shows the basic use of openlayers using a WMS layer >>> </p> >>> >>> <div id="map" class="bigmap"></div> >>> >>> <div id="docs"> >>> Este es mi primer Demo!! >>> </div> >>> </body> >>> </html> >>> >>> >>> >>> >>> >>> >>> -- >>> >>> *//**/Arturo Juárez Lima/* >>> >>> >>> /./ >>> >>> ------------------------------------------------------------------------ >>> >>> >>> ------------------------------------------------------------------------- >>> >>> This SF.Net email is sponsored by the Moblin Your Move Developer's >>> challenge >>> Build the coolest Linux based applications with Moblin SDK & win >>> great prizes >>> Grand prize is a trip for two to an Open Source event anywhere in >>> the world >>> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >>> ------------------------------------------------------------------------ >>> >>> >>> _______________________________________________ >>> Geoserver-users mailing list >>> Geo...@li... >>> https://lists.sourceforge.net/lists/listinfo/geoserver-users >>> >> >> >> |