Hi
I'm trying to generate scale text (e.g. 1/100,000 ) in the JS 4.5 API. I can find MapView.scale but have not been able to locate anything like a "zoomEnd" event.
In 4.x API -- where might I find and event at the end zooming in our out please?
Thanks
David
Solved! Go to Solution.
David,
In 4.x you need to dismiss the old ideas of having events for everything and you need to get use to watching properties.
view.watch('extent', function(){
//do something because the extent has changed.
});
David,
In 4.x you need to dismiss the old ideas of having events for everything and you need to get use to watching properties.
view.watch('extent', function(){
//do something because the extent has changed.
});
Robert,
As usual your very helpful suggestions are welcome -- I'll check it out!
Thanks
David
Robert -- very nice, I'm watching now!
David
David,
FYI, you should mark the reply that answered your question as the correct answer so that people can find the answer easier.
Hi @Robert,
When I watch the extent property, there will be lots of triggers when zoom the map only once.
My question is:
How to determine the zoom event is end?
Thanks,
Leo
Leo,
You can watch the stationary property.