Thanks to all, I was follow the idea from Rodrigo, I was probe with the
"theme" from OL 2.7 and with this is resolved. <Tranquilo>
Thanks again.
Post by RodrigoHello Arturo!!
I don't know if it's going to fix your problem, but today I've had
problems with displaying popups with openlayers, and there was another
problem with a bbox draw...
Then, I just downloaded the last OpenLayers version (2.7) from
openlayers.org <http://openlayers.org>, descompressed the file
(.tar.gz) and moved the OpenLayers-2.7 directory inside geoserver's
one...
http://localhost:8080/geoserver/OpenLayers-2.7/OpenLayers.js and it
worked fine!!!
I'm using geoserver 1.6.5. <http://1.6.5.>...
Try to make this change and MAYBE it works...
(If you want to be sure that this can be a version problem, I suggest
you to download an older version of OpenLayers and try it... and when
I say older, I mean a release made before Firefox 3)
I hope to help...
Regards,
Rodrigo
======================================
Rodrigo C. Antonialli
Rio Claro - SP - Brasil
LinkedIn: http://www.linkedin.com/in/rcaprofile
Contato: (19) 9757-0370
Skype: rc_antonialli
this is my code, maybe my error is in are many together layers.
/<html xmlns="http://www.w3.org/1999/xhtml"
<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"
<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"
<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"
<http://172.16.23.21:8080/geoserver/wms>,
'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_08,Construcciones:construcciones_09,Construcciones:construcciones_10,Construcciones:construcciones_11,Construcciones:construcciones_12,Construcciones:construcciones_13'}
);//,Construcciones:construcciones_14,Construcciones:construcciones_15,Construcciones:construcciones_16,Construcciones:construcciones_17,Construcciones:construcciones_18'}
);
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());
}
</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/*
/
/
Post by Andrea AimePost by Arturo Juà rezare there other tools besides of openlayers for publish the maps ?
OpenGeo uses OpenLayers exclusively, we had no such problems
as you so far. But yeah, there are others, such as the
Flamingo map components, or MapBender (just to cite the first
two that come to my mind).
Cheers
Andrea
-------------------------------------------------------------------------
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=/
<http://moblin-contest.org/redirect.php?banner_id=100&url=/>
_______________________________________________
Geoserver-users mailing list
https://lists.sourceforge.net/lists/listinfo/geoserver-users