Last active
May 7, 2018 11:27
-
-
Save printminion/5224508 to your computer and use it in GitHub Desktop.
Show ingress portal range circle in http://www.ingress.com/intel map
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
| /** | |
| * @desc Inject ingress portal range circle | |
| * @author Misha M.-Kupriyanov https://plus.google.com/104512463398531242371/ | |
| * @link https://gist.github.com/5224508 | |
| */ | |
| //More info on ranges http://ingressfieldguide.com/content/portals-linking | |
| //goto http://www.ingress.com/intel?latE6=48740985&lngE6=9253478&z=19 | |
| // open your console and paste this code | |
| var showPortalRange = function( lat, long, level) { | |
| var levels = { | |
| 1:160, | |
| 2:2560, | |
| 3:12960, | |
| 4:40960, | |
| 5:100000, | |
| 6:207360, | |
| 7:384160, | |
| 8:655360, | |
| }; | |
| new google.maps.Circle({ | |
| center: new google.maps.LatLng(lat, long), | |
| radius: levels[level], | |
| strokeColor: "#FF0000", | |
| strokeOpacity: 0.8, | |
| strokeWeight: 2, | |
| fillColor: "#FF0000", | |
| fillOpacity: 0.35, | |
| map: U | |
| }); | |
| }; | |
| //show portal range circle for portal Lv4 in Ruit, Germany | |
| showPortalRange(48.740985, 9.253477999999973, 4); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
intel map seems to have been changed since this was made, throws an error now.
InvalidValueError: setMap: not an instance of Map