Last active
August 29, 2015 13:56
-
-
Save TheSkorm/8874424 to your computer and use it in GitHub Desktop.
Javascript to get portal long and lat for ingress from iitc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| a = ""; | |
| for (var key in portals) { | |
| if (map.getBounds().contains(portals[key].getLatLng())){ | |
| nokeys = window.plugin.keys.keys[key]; | |
| if (nokeys == undefined) { | |
| nokeys = 0 | |
| }; | |
| value = portals[key]; | |
| a = a + value.options.data.title.replace(",", ".") + "," + value.options.data.latE6 + "," + value.options.data.lngE6 + "," + nokeys + "\n" | |
| } | |
| }; | |
| window.dialog({ | |
| title: "CSV Export", | |
| text: a, | |
| width: 600 | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment