A work in progress.
See https://blueraster.github.io/esri-canvas-tile/
We are trying to render tiles to canvas so we can read, filter, and modify the image data in canvas.
For a working leaflet version, See https://blueraster.github.io/esri-canvas-tile/mapnik-leaflet.html
This will describe the methods for interacting with this particular layer. This component inherits from
esri/layers/Layer
.
var canvasLayer = new CanvasLayer();
canvasLayer.show()
- Show the layer
canvasLayer.hide()
- Hide the layer
canvasLayer.forceUpdate()
- Force the canvas to clear the tiles and fetch new tiles
canvasLayer.setConfidenceLevel(confidence)
- Set's the desired confidence level for the layer
- Sole argument is a string with value of either
all
orconfirmed
.
canvasLayer.setMinimumDate(minDate)
- Set's the minimum date for the layer
- Currently must be in numeric format where 15000 is the base, then add the number of days to it
canvasLayer.setMaximumDate(maxDate)
- Set's the maximum date level for the layer
- Currently must be in numeric format where 15000 is the base, then add the number of days to it
canvasLayer.setDateRange(minDate, maxDate)
- Set's the minimum and maximum date level for the layer
- Currently must be in numeric format where 15000 is the base, then add the number of days to it
- The data seems to stop rendering after zoom level 12. Will need to scale tiles appropriately
- Look into various methods for optimizations, such as caching, and client side re-rendering of pixel data when filters are applied.
- Investigate work arounds for the Known Issues above