How should I import the Spatial Illusions milsymbol library into my webpage?

Update For Node.js / NPM Add “type”: “module” to your package.json file. { // … “type”: “module”, // … } Note: When using modules, if you get ReferenceError: require is not defined, you’ll need to use the import syntax instead of require. You can’t natively mix and match between them, so you’ll need to pick … Read more

How to convert from UTM to LatLng in python or Javascript

I ended up finding java code from IBM that solved it: http://www.ibm.com/developerworks/java/library/j-coordconvert/index.html Just for reference, here is my python implementation of the method I needed: import math def utmToLatLng(zone, easting, northing, northernHemisphere=True): if not northernHemisphere: northing = 10000000 – northing a = 6378137 e = 0.081819191 e1sq = 0.006739497 k0 = 0.9996 arc = northing … Read more