forked from MapComplete/MapComplete
Feature: show geocoded images on the map when hovered, show interactive minimap on nearbyImages element
This commit is contained in:
parent
d079ba91aa
commit
f3fdc95bd0
23 changed files with 404 additions and 182 deletions
70
assets/layers/geocoded_image/geocoded_image.json
Normal file
70
assets/layers/geocoded_image/geocoded_image.json
Normal file
|
@ -0,0 +1,70 @@
|
|||
{
|
||||
"id": "geocoded_image",
|
||||
"source": "special",
|
||||
"name": null,
|
||||
"tagRenderings": [],
|
||||
"pointRendering": [
|
||||
{
|
||||
"location": [
|
||||
"point",
|
||||
"centroid"
|
||||
],
|
||||
"marker": [
|
||||
{
|
||||
"icon": "direction_gradient",
|
||||
"color": {
|
||||
"render": "#44cc22",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "selected=yes",
|
||||
"then": "#cccc22"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"rotation": "{rotation}deg",
|
||||
"rotationAlignment": "map",
|
||||
"pitchAlignment": "map",
|
||||
"iconSize": "60,60"
|
||||
},
|
||||
{
|
||||
"location": [
|
||||
"point",
|
||||
"centroid"
|
||||
],
|
||||
"rotationAlignment": "map",
|
||||
"pitchAlignment": "map",
|
||||
"marker": [
|
||||
{
|
||||
"icon": "circle",
|
||||
"color": {
|
||||
"render": "#44cc22",
|
||||
"mappings": [
|
||||
{
|
||||
"if": "selected=yes",
|
||||
"then": "#cccc22"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"iconSize": "14,14"
|
||||
},
|
||||
{
|
||||
"location": [
|
||||
"point",
|
||||
"centroid"
|
||||
],
|
||||
"rotationAlignment": "map",
|
||||
"pitchAlignment": "map",
|
||||
"marker": [
|
||||
{
|
||||
"icon": "ring",
|
||||
"color": "#000"
|
||||
}
|
||||
],
|
||||
"iconSize": "14,14"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue