[OpenLayers-Users] Mapserver labels
José Vilson de Mello de Farias
vilson.farias at digitro.com.br
Mon Aug 28 15:57:18 CDT 2006
Greetings,
How does OpenLayers/Mapserver/WMS deals with labels? I made some tests
today and I realized that image tiles can bring undesired effects to
Mapserver labels. As a result, each tile has it's own labels. The
resulting map is crowded of useless and croped pieces of labels.
Is there a workaround for this situation? I read something about
Ka-Map being an alternative for Mapserver deficiences related with
tiling. Is this a situation that ka-map solves?
I have other question, this time a Google Map question. Is it possible
to have to layers, one Mapserver WMS and other Google Maps in the same
map? I wrote a test code and it seems I can only have one of these. The
code is bellow :
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script src="http://openlayers.org/api/2/OpenLayers.js"></script>
<script
src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAa3W6Wyz6M2grTpO8gp_f-xQyfmQrqwatIbt26NwwjFlL5q1_BRTeFkmJfyZiYU5zHNCsECyPQIFv-A"
type="text/javascript"></script>
<script type="text/javascript"></script>
<title>Teste OpenLayers</title>
</head>
<body>
<div style="width: 100%; height: 100%;" id="map"></div>
<script defer="defer" type="text/javascript">
var map = new OpenLayers.Map('map');
var gmapLayer = new OpenLayers.Layer.Google("map");
var wms = new OpenLayers.Layer.WMS("OpenLayers WMS",
"http://dgtad.dti.digitro.com.br:8080/mapserver_wms/wms", {layers:
'rio_grande_do_sul,limite_municipal'} );
map.addLayer(wms);
map.addLayer(gmapLayer);
map.zoomToMaxExtent();
</script>
</body>
</html>
That's it, best regards and thanks in advance.
--
*José Vilson de Mello de Farias*
/Analista de Sistemas
//SSE - Segurança Pública/
*DÍGITRO TECNOLOGIA*
*E-mail:* vilson.farias at digitro.com.br
<mailto:vilson.farias at digitro.com.br%20>
*Messenger: *vilsonfarias at hotmail.com
<mailto:vilson.farias at digitro.com.br%20>
*Fone:* (0xx48) 3281-7314
*Fax:* (0xx48) 3281-7000
*Site:* www.digitro.com.br <http://www.digitro.com.br%20>
<http://www.digitro.com.br%20>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman-viper.python-hosting.com/pipermail/users/attachments/20060828/54643ad1/attachment.html
More information about the Users
mailing list