OpenGeoscience / geojs

High-performance visualization and interactive data exploration of scientific and geospatial location aware datasets
https://opengeoscience.github.io/geojs
Apache License 2.0
433 stars 75 forks source link

Trasparent tile layer issue #1069

Closed rbrundritt closed 4 years ago

rbrundritt commented 4 years ago

I'm overlaying a couple of tile layers on the map. One is semi-transparent (i.e. layer layer above an imagery layer). What I am noticing is that the semi transparent layer is being rendered multiple times on the map (looks like three levels, possible previous, current and next zoom level?), and this is causing issues as I end up with overlapping labels. Here is a screenshot:

image

I have a sample live here: https://azuremapscodesamples.azurewebsites.net/Third%20Party%20Map%20Controls/Raster%20tiles%20in%20GeoJS.html

manthey commented 4 years ago

There is an option for layers whether all lower levels of tiles should be rendered or not. On non-transparent layers, have all lower levels of tiles gives the perception of better updates when panning. On transparent layers, it is undesirable. This option can be changed on the tile layer. See the keepLower option (https://opengeoscience.github.io/geojs/apidocs/geo.tileLayer.html#.spec).