Skip to content

Instantly share code, notes, and snippets.

@ahocevar
ahocevar / map.geojson
Created July 10, 2015 07:17
gist from regional-monitoring app
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ahocevar
ahocevar / map.geojson
Created July 9, 2015 12:52
gist from regional-monitoring app
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ahocevar
ahocevar / map.geojson
Created July 9, 2015 12:44
gist from regional-monitoring app
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ahocevar
ahocevar / map.geojson
Created July 9, 2015 12:43
gist from regional-monitoring app
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ahocevar
ahocevar / map.geojson
Created July 9, 2015 12:42
gist from regional-monitoring app
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ahocevar
ahocevar / submit-with-location.js
Last active August 29, 2015 14:09
Feedback form submission with Geolocation
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);
});
@ahocevar
ahocevar / docs-button.png
Last active August 29, 2015 14:09
buttons
docs-button.png