OpenGeoscience / geojs

High-performance visualization and interactive data exploration of scientific and geospatial location aware datasets

Home Page:https://opengeoscience.github.io/geojs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trasparent tile layer issue

rbrundritt opened this issue · comments

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

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).