Map clicked event - don't want it to zoom to the feature
I would like the identified feature on map click to highlight the feature and put the pop-up in results, but not zoom to the feature. Is there a sequence that can do this?
Right now, the Map clicked event shows:
[
"tasks.identify",
"results.display-details",
"charts.display",
"kpi.display"
]
Can I replace the tasks.identify with an instruction to add highlight and open results only? I tried highlights.add but then it doesn't do anything.
TIA
-
have you tried just results.display?
0 -
If I remove tasks.identify, results.display-details and replace with results.display, I get “no results”.
0 -
I meant like this:
[
"tasks.identify",
"results.display",
"charts.display",
“kpi.display”
]
but I put your code into my map click and it doesn't zoom…do you have something hiding in the Results > Events that might be causing the zoom?
3 -
Yes, that was it! Thank you so much. There was "map.zoom-to-features" in my Results Details events.
1
Du måste logga in om du vill lämna en kommentar.
Kommentarer
4 kommentarer