Select to view content in your preferred language

IE10 show coordinates

1405
8
Jump to solution
06-15-2013 06:22 AM
OrenGal
Regular Contributor
I want to share my button and have a question in the end of my post.
http://www.gal-systems.com/2013/06/playing-with-esri-basemap-layers.html
I suspect the events dojo.onMouseMove and dojo.onMouseDrag are not firing in IE10.
Thanks.
Oren
0 Kudos
1 Solution

Accepted Solutions
JonathanUihlein
Esri Regular Contributor
Hi Oren,

Hoping I can help.

1) I just looked and it seems the coordinates work in both IE10 and IE9 (screenshot of IE10 attached).

2) The "Source:" text seems to be located within the following div containers.

[HTML]<div class="esriControlsBR">
   <span class="esriAttribution" style="width: 34px; cursor: pointer;">
      <span class="esriAttributionList">
         <span class="esriAttributionItem" style="display: inline;">Source: Esri, DigitalGlobe, GeoEye, i-cubed, USDA, USGS, AEX, Getmapping, Aerogrid, IGN, IGP, swisstopo, and the GIS User Community<span class="esriAttributionDelim"> | </span></span>
         <span class="esriAttributionLastItem" style="display: inline;">DeLorme, METI/NASA, NAVTEQ, USGS, Esri<span class="esriAttributionDelim"> | </span></span>
      </span>
   </span>
</div>[/HTML]

Unless there is an official way to remove that text, you might be able to hide one of the above divs when a user clicks your button.

I'm not sure if this is helpful but here is a link to Attributions in the JSAPI.

https://developers.arcgis.com/en/javascript/jsapi/attribution.html

[ATTACH=CONFIG]25309[/ATTACH]

View solution in original post

0 Kudos
8 Replies
JonathanUihlein
Esri Regular Contributor
Hi Oren,

Hoping I can help.

1) I just looked and it seems the coordinates work in both IE10 and IE9 (screenshot of IE10 attached).

2) The "Source:" text seems to be located within the following div containers.

[HTML]<div class="esriControlsBR">
   <span class="esriAttribution" style="width: 34px; cursor: pointer;">
      <span class="esriAttributionList">
         <span class="esriAttributionItem" style="display: inline;">Source: Esri, DigitalGlobe, GeoEye, i-cubed, USDA, USGS, AEX, Getmapping, Aerogrid, IGN, IGP, swisstopo, and the GIS User Community<span class="esriAttributionDelim"> | </span></span>
         <span class="esriAttributionLastItem" style="display: inline;">DeLorme, METI/NASA, NAVTEQ, USGS, Esri<span class="esriAttributionDelim"> | </span></span>
      </span>
   </span>
</div>[/HTML]

Unless there is an official way to remove that text, you might be able to hide one of the above divs when a user clicks your button.

I'm not sure if this is helpful but here is a link to Attributions in the JSAPI.

https://developers.arcgis.com/en/javascript/jsapi/attribution.html

[ATTACH=CONFIG]25309[/ATTACH]
0 Kudos
OrenGal
Regular Contributor
Thanks Jonathan,
1. Are you sure you work with IE10 standards? Because that's really the problem. pic attached.
2. Well, one line added to css won't hurt anyone...
Oren
0 Kudos
OrenGal
Regular Contributor
updated http://jsfiddle.net/orengal/d7Ycr/
No source now, but also from the big map. will look deep tomorrow.
0 Kudos
JonathanUihlein
Esri Regular Contributor
Hi Oren!

I wasn't using the most up-to-date version of IE10 and have since updated (thank you for the unintentional reminder!).

I just had a chance to look at the jsfiddle you posted. Try changing onMouseMove to onMouseOver (for IE10 only) on the following line:

[HTML]
//old : dojo.connect(map1, 'onMouseMove', drawCoordinates);
dojo.connect(map1, 'onMouseOver', drawCoordinates);
[/HTML]

It seems to work in IE10 (Standards) but the span updates much more slowly than it does in the other browsers. This feels like a temporary fix but may help until a permanent solution is found.

I noticed you are using the older version of Dojo; have you tried using the newer AMD oriented style from Dojo 1.7+? This may fix the issue but I cannot be sure.

http://dojotoolkit.org/reference-guide/1.9/dojo/mouse.html
0 Kudos
JohnGravois
Deactivated User
for map2, try setting the map constructor property showAttribution to false

map2 = new esri.Map("buttonDiv", {
         extent: initExtent,
         logo: false,
         showAttribution: false
     });
0 Kudos
OrenGal
Regular Contributor
Now I know what's map attribution... 😄
Thanks


BTW (to Esri) - Why I can't mark two replies as the answer. Is there a limit of one?
0 Kudos
OrenGal
Regular Contributor
Fixed the IE10 Issue. http://jsfiddle.net/orengal/d7Ycr/
0 Kudos
ChinhMai-Trung
Emerging Contributor
I have to use MouseDrag event on a map, and it did not succed for me with IE ,
and looking at the forum , find this post that is excately my problem...
But using the link http://jsfiddle.net/orengal/d7Ycr/ above , there are 2 differents behavior between Chrome and IE10,
it seems that the text txt_coords1 (map mouse-mouve xxx)  is not display in IE.
Does the fix should correct this or another bug?
If so can someone know if we need to configurate IE to make such event work?

Thanks.
0 Kudos