When I execute centerAndZoom method or other method that change zoom level from high level like 19 to low level like 2, application hangs taking a lot of memory (up to 1,5 Gb).
You can test it with this simple jsfiddle... https://jsfiddle.net/dgarcrom/1dbvjqyx/
This not happend with IE, it's happend with Chrome 46.0.2490.71.
Any ideas??
Thank you.
Hi Bhavin,
For my estimate, issue affects all API versions > 2.6
This issue is due to Chrome not properly handling large scaled images.
I'm working on working around that issue internally for 3.15.
I think you should hurry up to launch 3.15 version, because many people use this api with chrome browser.
At this moment, based in Christopher answer, I put this piece of code into my application
require(["dojo/ready", "esri/config", "dojo/has", "dojo/sniff"], function (ready, esriConfig, has, sniff) { ready(80, function () { if (has("chrome")>45) { esriConfig.defaults.map.zoomDuration = 0; esriConfig.defaults.map.zoomRate = 0; } }); });
Thanks to all
Daniel
EDIT: Chrome version > 45
A bug has been created for this issue in ESRI Inc: Bug: BUG-000091559.
Actually this effects our API with versions all the way back to 3.10. Likely it is an issue specifically with Chrome 46.
Just a heads-up, here's some info on tests I ran using version 46.0.2490.71 (64-bit)...
OSX 10.9.5 - memory leak; crash
Win 7 - memory leak; crash
Win 8 - no crash!
I wonder why Win 8 is special...
because Win8 itself is bug
Hah!
according to Murphy's laws, things would go wrong only when they affect a large number of users.
hope that answers you Win 8 question.
As I said recently, If you put these lines into your application you can avoid this behavior...
esriConfig.defaults.map.zoomDuration = 0; esriConfig.defaults.map.zoomRate = 0;
But I have found another ralated bug.
If you have a ArcGISTiledMapServiceLayer on top of a base map layer... this tile layer dont draw correctly. You can check this behaviour in this jsfiddle
Bug Navigation Mode - JSFiddle
In order to solve this, you should set mapNavigation to "classic"
map = new Map("map", { basemap : "gray", center : [-122.45, 37.75], // longitude, latitude zoom : 1, navigationMode: "classic" });
Regards
There seems to be a couple of bugs relating to initializing the map with a basemap that has a reference layer.
Thank you Ken, but in this case this only happends when you set zoomDuration and zoomRate to 0.
Regards