Skip to content

Instantly share code, notes, and snippets.

View ThomasG77's full-sized avatar

Thomas Gratier ThomasG77

View GitHub Profile
// Dirty overload the native function
var parseInt = function(arg1) {
if (arg1 === "Infinity") {
return NaN;
}
if (arg1 === "Infinity+1") {
return "Infinity1";
}
if (arg1 === "1+1+1") {
return "3?";
We can't make this file beautiful and searchable because it's too large.
Operateur;X;Y;2G;3G;4G
20801;51434;2410126;1;1;0
20810;51564;2410820;1;1;0
20820;51565;2410823;1;1;1
20801;64480;2362160;1;1;0
20820;73150;2396665;1;1;0
20801;73330;2396715;1;1;0
20820;73555;2361400;1;0;0
20820;75280;2413240;1;1;0
20801;75285;2413250;1;1;0
@ThomasG77
ThomasG77 / index.html
Last active October 13, 2017 00:49
Proto OpenStreetMap BZH - v0 - Peillac - Opération Libre - Demo at http://bl.ocks.org/ThomasG77/910965e896320945d2aa1d313bcb43c9
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<meta name=description content="">
<meta name=viewport content="width=device-width, initial-scale=1">
<title>Simple Map</title>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL"></script>
<script src="https://openlayers.org/en/v4.4.1/build/ol.js" type="text/javascript"></script>
<script src="//cdn.jsdelivr.net/openlayers.geocoder/latest/ol3-geocoder.js"></script>
/** GeoBookmarks
*
* @constructor
* @extends {ol.control.Control}
* @trigger add|remove when a bookmark us added or deleted
* @param {Object=} Control options.
* - className {string} default ol-bookmark
* - placeholder {string} input placeholder, default Add a new geomark...
* - editable {bool} enable modification, default true
* - marks a list of default bookmarks : { BM1:{pos:ol.coordinates, zoom: integer, permanent: true}, BM2:{pos:ol.coordinates, zoom: integer} }
# Convert on the fly Natural Earth data SHP (uncompressed) from the official repository (raw url)
ogr2ogr -f GeoJSON -t_srs EPSG:4326 -lco COORDINATE_PRECISION=6 ne_110m_admin_0_countries.geojson /vsicurl/https://github.com/nvkelso/natural-earth-vector/raw/master/110m_cultural/ne_110m_admin_0_countries.shp
# Convert on the fly Natural Earth data zip from website url
ogr2ogr -f GeoJSON -t_srs EPSG:4326 -lco COORDINATE_PRECISION=6 ne_110m_admin_0_countries.geojson /vsizip/vsicurl/http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/cultural/ne_110m_admin_0_countries.zip
@ThomasG77
ThomasG77 / index.html
Last active May 10, 2022 11:45
Simple OpenLayers Reverse Geocoding sample with Nominatim
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<meta name=description content="">
<meta name=viewport content="width=device-width, initial-scale=1">
<title>Reverse geocoding</title>
<link rel="stylesheet" href="https://openlayers.org/en/v4.4.2/css/ol.css" type="text/css">
<!-- The line below is only needed for old environments like Internet Explorer and Android 4.x -->
<script src="https://cdn.polyfill.io/v2/polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL,fetch"></script>
@ThomasG77
ThomasG77 / 7th-qgis-uk-scottish-user-group.md
Created November 17, 2017 13:11
Videos link including timing for the "7th QGIS UK Scottish user group"
@ThomasG77
ThomasG77 / README.md
Created November 24, 2017 00:37 — forked from tmcw/README.md
Leaflet With simplestyle Markers
@ThomasG77
ThomasG77 / .gitignore
Last active September 19, 2021 08:06
Minimal project to use OpenLayers with Parcel bundler
/node_modules/
/dist/
/.cache/
@ThomasG77
ThomasG77 / index.html
Created December 28, 2017 13:40
OpenLayers demo to useAnchor option in ol.interaction.MouseWheelZoom
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<meta name=description content="">
<meta name=viewport content="width=device-width, initial-scale=1">
<title>Simple Map with default interactions</title>
<link rel="stylesheet" href="https://openlayers.org/en/v4.6.4/css/ol.css" type="text/css">
<style>
html, body {