Map just keeps trying to load in Chrome/Firefox but works great in Internet Explorer...any ideas??
Using:
<script type="text/javascript" src="http://js.arcgis.com/3.10/"></script>
Thanks in advance for any suggestions!
Solved! Go to Solution.
No, it is a subscription based service. I wish it was public, as it would be a lot easier to show you guys what exactly is going on. Is there any other information you need?
Previously we used http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.5 and had no issues with either IE/FireFox. Upgraded to add scalebar and ran into this issue.
I was looking at your JSFiddle example...I couldn't get it work because you are using some aspx parameters but I did notice a couple of potential issues.
I think this:
dojo.require("esri/layers/ArcGISDynamicMapServiceLayer");
should be:
dojo.require("esri.layers.ArcGISDynamicMapServiceLayer");
and you may need to add this:
dojo.require("esri.symbol.Symbol);
When I include: dojo.require("esri.symbol.Symbol); this error comes up:
I have tried pretty much every combination of dojo.require that I can and it still gets that javascript error on FF/chrome.
Also, thanks a lot for your help. I really appreciate it.
Scott,
Wouldn't that be
dojo.require("esri.symbols.Symbol");
you are correct sir, esri.symbols.Symbol
Yep, tried that as well. Same result.
Nathan,
OK checking every spelling and use of symbols now (everywhere in your code that you have esri.symbol... it has to be esri.symbols intead:
var markerSymbol = new esri.symbols.SimpleMarkerSymbol(esri.symbols.SimpleMarkerSymbol.STYLE_SQUARE, 28, new esri.symbols.SimpleLineSymbol(esri.symbols.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([27, 236, 86]), 0.75), new dojo.Color([255, 0, 0, 0.30]));
Changed and same error:
Thank you soooo much Robert, it works like a charm!
Very confusing that the require has a different path than the actual variable declarations.
Thanks again!