Add image overlay property type
erikvullings opened this issue · 2 comments
erikvullings commented
Use the following properties to specify the overlay:
- imageBounds
- opacity
- attribution
damylen commented
do you mean drawingMode (featuretype-style)?
erikvullings commented
Example of a geojson layer that displays an image on the map. The geometry contains the image's bounding box (south-west, north-east), and the geometry.type
is Overlay
. The properties.imageUrl
contains the link to the image path, and you can optionally specify the image's attribution and opacity.
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Overlay",
"coordinates": [[52.076051, 4.303200], [52.085646, 4.326134]]
},
"properties": {
"imageUrl": "images/LT20366 LIL16 plattegronden - transparent.png",
"attribution": "Organisator van The Life I Live.",
"opacity": 1
}
}
]
}