Esri / solutions-grg-widget

A GRG (Gridded Reference Graphic) is a grid overlay used for a common reference point in many situations - from cordon and search operations to security for presidential inaugurations.
Apache License 2.0
3 stars 3 forks source link

Create Grid by Reference System Fails in Internet Explorer #103

Closed adgiles closed 7 years ago

adgiles commented 7 years ago

Widget

GRG

Version of widget

All

Bug or Enhancement

Trying to create a GRG by reference system fails for both Area and Point in Internet Explorer

Repo Steps or Enhancement details

Within Internet Explorer try to create a grid using a Cell Size of 10,000 or less. The grid will not be created and on inspection of the console log the following error is thrown:

untitled

Internet Explorer does not support the math.log10 function used for labelling in the mgrs-utils.js file

adgiles commented 7 years ago

Fixed by manually adding the function to the mgrs-utils.js if the browser does not support the function by default:

// If Math.log10 is not supported by default in the browser, add it here if (!Math.log10) { Math.log10 = function log10(val) { return Math.log(val) / Math.LN10; }; }

in PR #104

Dbarnes1 commented 7 years ago

fixed, verified, closing.

image