Hi,
We use openlayers and vector tiles to display features on the map.
After upgrading to 2.15.0 and we apply a new style to highlight the feature, gridlines (or a gutter around the tiles) appears within the highlighted region. This is a change of behaviour from 2.11.
Any ideas on what is causing the gridlines to appear?
If we change the stroke width back to 1 the gridlines disappear.
Hi Matt,
not sure, we are displaying lines and polygon in OpenLayers with a GeoServer 2.16.x (nightly build) and have no such issue.
At this URL we have a proof of concept based on MapStore/OpenLayers and displaying vector tiles with both SLD and MBStyle client side styling:
When we created it, it was running against a 2.15.x and I don’t remember seeing border issues either.
The jump from 2.11 is a really long one, many changes went into the vector tiles module in the meantime. Can you show what’s going on in your client?
Cheers
Andrea
···
Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.ithttp://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.
To help isolate the problem we read the GeoServer vector tiles into Maputnik
(Mapbox GL JS) and Leaflet. In both cases we still see the same internal
grid issue.
The width of the internal grid seems to be proportional to the width of the
feature's outline stroke style, although this might be due to overlaps
betwen the tiles obscuring the full style.
To narrow down which version of GeoServer migth have introduced the issue,
we stepped back through the recent releases.
It looks like it was introduced in 2.14.1 as we see the issue in that
release, but not in 2.14.0.
Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.ithttp://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.
Just to clarify, what is the intended functionality here? Are the polygons intended to extend past the tile boundary and be “clipped” (and thus not render an edge)?
yes I believe that vector tiles are supposed to have a gutter outside the tile to prevent borders painted by the client from showing up
like they do. I’m seeing a fixed buffer of 12 pixels in the code, plus an amount dependent on the style used… however at some point
I believe that the tile resolution was pumped up with an oversampling factor of 16 (around Oct 18th, by Devon), maybe that’s interacting badly
with the gutter computation… just speculation at the moment, I have not really looked into it
Cheers
Andrea
···
Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.ithttp://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.
Hi Scott,
Are you setting the tileGrid property when creating the vector layer? If so, remove it.
I think everyone copies this code off the Geoserver website:
var map = new ol.Map({
target: ‘map’,
view: new ol.View({
center: [0, 0],
zoom: 2
}),
layers: [new ol.layer.VectorTile({
style:simpleStyle,
source: new ol.source.VectorTile({
tilePixelRatio: 1, // oversampling when > 1
tileGrid: ol.tilegrid.createXYZ({maxZoom: 19}),
format: new ol.format.MVT(),
url: ‘/geoserver/gwc/service/tms/1.0.0/’ + layer +
‘@EPSG%3A’+projection_epsg_no+‘@pbf/{z}/{x}/{-y}.pbf’
})
})]
});
Supplying the tileGrid property creates the gridlines in 2.15.0. Not sure why it doesn’t for earlier versions.
yes I believe that vector tiles are supposed to have a gutter outside the tile to prevent borders painted by the client from showing up
like they do. I’m seeing a fixed buffer of 12 pixels in the code, plus an amount dependent on the style used… however at some point
I believe that the tile resolution was pumped up with an oversampling factor of 16 (around Oct 18th, by Devon), maybe that’s interacting badly
with the gutter computation… just speculation at the moment, I have not really looked into it
Just to clarify, what is the intended functionality here? Are the polygons intended to extend past the tile boundary and be “clipped” (and thus not render an edge)?
To help isolate the problem we read the GeoServer vector tiles into Maputnik
(Mapbox GL JS) and Leaflet. In both cases we still see the same internal
grid issue.
The width of the internal grid seems to be proportional to the width of the
feature’s outline stroke style, although this might be due to overlaps
betwen the tiles obscuring the full style.
To narrow down which version of GeoServer migth have introduced the issue,
we stepped back through the recent releases.
It looks like it was introduced in 2.14.1 as we see the issue in that
release, but not in 2.14.0.
Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.ithttp://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.
Geoserver-users mailing list
Please make sure you read the following two resources before posting to this list:
We are using tileGrid in our OpenLayers code - but we need to use it make
the tiles line up properly.
We are seeing the same internal grid issue when consuming the GeoServer
generated vector tiles in both Leaflet and Mapbox GL JS - so we don't think
it is an OpenLayers issue.