Hi, I can read from the documentation of vendor option "tiled=true" this:
"Meta-tiling prevents issues with duplicated labels when using a tiled client such as OpenLayers. When meta-tiling is used, images are rendered and then split into smaller tiles (by default in a 3x3 pattern) before being served. In order for meta-tiling to work, the tile size must be set to 256x256 pixels, and the tiled and tilesorigin parameters must be specified. The tiled parameter controls whether meta-tiling is used. The syntax is: tiled=[true|false] To invoke meta-tiling use tiled=true." So you explicitly set Geoserver to use 3x3 metatiles with WMS. Don't do if you do not want to prevent issues with duplicated labels. Leave out &tiled=true and you should be guaranteed to get at least enough labels, probably more because every tile will be labeled. If your labels are long you must also accept partial labels but it may be that they do not satisfy you. This should be a test that you can reproduce: No label in this tile http://localhost:8080/geoserver/topp/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&tiled=true&STYLES&LAYERS=topp%3Astates&tilesOrigin=-124.73142200000001%2C24.955967&WIDTH=256&HEIGHT=256&SRS=EPSG%3A4326&BBOX=-101.513671875%2C39.462890625%2C-101.42578125%2C39.55078125 Same tile but for sure with label http://localhost:8080/geoserver/topp/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&FORMAT=image%2Fpng&TRANSPARENT=true&STYLES&LAYERS=topp%3Astates&tilesOrigin=-124.73142200000001%2C24.955967&WIDTH=256&HEIGHT=256&SRS=EPSG%3A4326&BBOX=-101.513671875%2C39.462890625%2C-101.42578125%2C39.55078125 For perfect label handling you should probably consider some other route like downloading borders as vector data that can be labeled on the client side, or something like UTFGrid. Perhaps you must change the platform by the same because Google Maps may not have advanced features. -Jukka Rahkonen- ________________________________________ Lähettäjä: FunkMonkey33 <[email protected]> Lähetetty: 12. toukokuuta 2017 19:04 Vastaanottaja: [email protected] Aihe: Re: [Geoserver-users] Repeat Labels Inside of Polygons Thanks. Yes, I understand that GWC won't be possible for this. However, it looks like tiles WMS won't work either (see my comment above). Thanks. Aaron -- View this message in context: http://osgeo-org.1560.x6.nabble.com/Repeat-Labels-Inside-of-Polygons-tp5319970p5320367.html Sent from the GeoServer - User mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
