How to avoid duplicate labels on each tile?

1,214 views
Skip to first unread message

Roberto Marzocchi

unread,
Sep 12, 2013, 6:13:08 AM9/12/13
to leafl...@googlegroups.com
Dear all, 

I have a geoserver WMS with a label defined and I try to prevent the duplicate labels on each tile.
Using openlayers and the meta-tiling (http://docs.geoserver.org/latest/en/user/services/wms/vendor.html#tiled) I avoid the duplicate labels,
but using leafletjs I do not know how it works..

Thanks in advanced, 
Roberto

Bryan McBride

unread,
Sep 13, 2013, 1:15:33 PM9/13/13
to leafl...@googlegroups.com
What about something like this:

var states = new L.TileLayer.WMS("http://suite.opengeo.org/geoserver/usa/wms", {
layers: 'usa:states',
format: 'image/png',
transparent: true,
tiled: true,
  tilesorigin: [-180, 90]
});

Roberto Marzocchi

unread,
Sep 25, 2013, 5:22:16 AM9/25/13
to leafl...@googlegroups.com
Thank you Bryan, but it doesn't work

R


2013/9/13 Bryan McBride <mcbrid...@gmail.com>

--
 
---
You received this message because you are subscribed to a topic in the Google Groups "Leaflet" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leaflet-js/zNYQ2cn4KqU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to leaflet-js+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages