[OpenLayers-Users] Mapserver labels
Paul Spencer
pspencer at dmsolutions.ca
Mon Aug 28 16:52:38 CDT 2006
ka-Map solves this problem by drawing much larger images and then
slicing them into smaller tiles. It also caches the tiles as it
generates them so that it doesn't have to generate them again.
ka-Map has both a javascript API and the tile generation/caching
mechanism. Chris has written an OpenLayers layer type that can talk
to the ka-Map tile generation/caching mechanism.
I believe that there is some reasonable explanation of how to set
this up somewhere in the documentation (or at least in a few threads
on this list).
Cheers
Paul
On 28-Aug-06, at 4:57 PM, José Vilson de Mello de Farias wrote:
> 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
> Messenger: vilsonfarias at hotmail.com
> Fone: (0xx48) 3281-7314
> Fax: (0xx48) 3281-7000
> Site: www.digitro.com.br
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://mailman-viper.python-hosting.com/listinfo/users
+-----------------------------------------------------------------+
|Paul Spencer pspencer at dmsolutions.ca |
+-----------------------------------------------------------------+
|Applications & Software Development |
|DM Solutions Group Inc http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+
More information about the Users
mailing list