This file contains 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
var featureType, featureNS; | |
var form = document.forms[0]; | |
var geolocation = new ol.Geolocation({ | |
projection: 'EPSG:4326' | |
}); | |
geolocation.setTracking(true); | |
// Stop tracking once we have a position | |
geolocation.on('change', function(evt) { | |
geolocation.setTracking(false); | |
}); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
var recordsToAdd = [], | |
numRecords = records.length; | |
function collectRecords(record) { | |
if (recordsToAdd) { | |
recordsToAdd.push(record); | |
} | |
--numRecords; | |
if (numRecords === 0) { | |
this.addLayers(recordsToAdd); | |
} |
This file contains 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
@@ -2,10 +2,11 @@ goog.provide('ol.control.Zoom'); | |
goog.require('goog.dom'); | |
goog.require('goog.dom.TagName'); | |
goog.require('goog.events'); | |
goog.require('goog.events.EventType'); | |
+goog.require('ol.BrowserFeature'); | |
goog.require('ol.Projection'); | |
goog.require('ol.control.Control'); | |
OlderNewer