Created
May 31, 2014 22:14
-
-
Save TheSkorm/56f46943a2bae416bdd7 to your computer and use it in GitHub Desktop.
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 = ""; | |
| latlngs=[] | |
| for (var key in portals) { | |
| if (map.getBounds().contains(portals[key].getLatLng())){ | |
| latlngs[0] = {lat: -23.83398, lng: 151.253803} | |
| latlngs[1] = portals[key].getLatLng(); | |
| newItem = L.geodesicPolyline(latlngs, window.plugin.drawTools.lineOptions); | |
| newItem.addTo(window.plugin.drawTools.drawnItems) | |
| } | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment