Skip to content

Instantly share code, notes, and snippets.

@ThomasG77
Last active March 24, 2016 01:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThomasG77/cbcca12482ccbd5f1132 to your computer and use it in GitHub Desktop.
Save ThomasG77/cbcca12482ccbd5f1132 to your computer and use it in GitHub Desktop.
Réponse par l'absurbe à la notion de "plaque tournante" sur https://twitter.com/chdelporte/status/712756689364258816 suite aux attentats à Bruxelles
<!DOCTYPE html>
<html>
<head>
<title>Simple Map</title>
<link rel="stylesheet" href="http://openlayers.org/en/master/css/ol.css" type="text/css">
<style>
#map {
background-color: #445c66;
height:600px;
}
</style>
<script src="http://openlayers.org/en/master/build/ol.js"></script>
</head>
<body>
<div id="map"></div>
<script>
var center = ol.proj.fromLonLat([4.3517, 50.8468]);
var geojsonObject = {
"type": "FeatureCollection",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "scalerank": 0, "featurecla": "Admin-0 country", "LABELRANK": 2.000000, "SOVEREIGNT": "Belgium", "SOV_A3": "BEL", "ADM0_DIF": 0.000000, "LEVEL": 2.000000, "TYPE": "Sovereign country", "ADMIN": "Belgium", "ADM0_A3": "BEL", "GEOU_DIF": 0.000000, "GEOUNIT": "Belgium", "GU_A3": "BEL", "SU_DIF": 0.000000, "SUBUNIT": "Belgium", "SU_A3": "BEL", "BRK_DIFF": 0.000000, "NAME": "Belgium", "NAME_LONG": "Belgium", "BRK_A3": "BEL", "BRK_NAME": "Belgium", "BRK_GROUP": null, "ABBREV": "Belg.", "POSTAL": "B", "FORMAL_EN": "Kingdom of Belgium", "FORMAL_FR": null, "NOTE_ADM0": null, "NOTE_BRK": null, "NAME_SORT": "Belgium", "NAME_ALT": null, "MAPCOLOR7": 3.000000, "MAPCOLOR8": 2.000000, "MAPCOLOR9": 1.000000, "MAPCOLOR13": 8.000000, "POP_EST": 10414336.000000, "GDP_MD_EST": 389300.000000, "POP_YEAR": -99.000000, "LASTCENSUS": 2011.000000, "GDP_YEAR": -99.000000, "ECONOMY": "2. Developed region: nonG7", "INCOME_GRP": "1. High income: OECD", "WIKIPEDIA": -99.000000, "FIPS_10_": "BE", "ISO_A2": "BE", "ISO_A3": "BEL", "ISO_N3": "056", "UN_A3": "056", "WB_A2": "BE", "WB_A3": "BEL", "WOE_ID": 23424757.000000, "WOE_ID_EH": 23424757.000000, "WOE_NOTE": "Exact WOE match as country", "ADM0_A3_IS": "BEL", "ADM0_A3_US": "BEL", "ADM0_A3_UN": -99.000000, "ADM0_A3_WB": -99.000000, "CONTINENT": "Europe", "REGION_UN": "Europe", "SUBREGION": "Western Europe", "REGION_WB": "Europe & Central Asia", "NAME_LEN": 7.000000, "LONG_LEN": 7.000000, "ABBREV_LEN": 5.000000, "TINY": -99.000000, "HOMEPART": 1.000000 }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 4.815447, 51.431074 ], [ 4.822682, 51.413685 ], [ 4.779067, 51.426423 ], [ 4.767802, 51.425389 ], [ 4.762117, 51.413375 ], [ 4.783304, 51.407638 ], [ 4.853274, 51.40614 ], [ 4.871671, 51.403039 ], [ 4.910325, 51.391903 ], [ 4.931926, 51.395624 ], [ 4.957144, 51.410997 ], [ 4.980192, 51.430531 ], [ 4.995798, 51.446706 ], [ 5.002723, 51.459005 ], [ 5.006133, 51.468307 ], [ 5.012128, 51.474327 ], [ 5.027527, 51.476807 ], [ 5.030318, 51.47443 ], [ 5.06029, 51.461976 ], [ 5.079927, 51.438541 ], [ 5.076413, 51.421901 ], [ 5.065251, 51.405907 ], [ 5.061737, 51.384255 ], [ 5.068145, 51.37454 ], [ 5.102561, 51.350665 ], [ 5.107832, 51.341984 ], [ 5.118064, 51.319918 ], [ 5.122922, 51.313381 ], [ 5.140182, 51.307386 ], [ 5.178836, 51.309505 ], [ 5.197336, 51.308342 ], [ 5.214906, 51.294338 ], [ 5.215423, 51.258733 ], [ 5.232993, 51.255916 ], [ 5.239456, 51.25693 ], [ 5.270717, 51.261833 ], [ 5.389056, 51.258707 ], [ 5.409933, 51.263539 ], [ 5.451894, 51.282116 ], [ 5.471635, 51.288085 ], [ 5.493235, 51.286535 ], [ 5.516696, 51.277233 ], [ 5.535197, 51.26204 ], [ 5.542328, 51.242661 ], [ 5.545532, 51.219924 ], [ 5.551407, 51.216767 ], [ 5.568373, 51.207651 ], [ 5.62501, 51.196902 ], [ 5.638549, 51.190907 ], [ 5.648161, 51.183957 ], [ 5.659013, 51.179074 ], [ 5.67617, 51.179177 ], [ 5.718028, 51.184603 ], [ 5.730844, 51.18375 ], [ 5.747173, 51.177601 ], [ 5.768051, 51.159462 ], [ 5.781383, 51.152409 ], [ 5.812079, 51.157318 ], [ 5.829132, 51.156465 ], [ 5.83802, 51.143727 ], [ 5.840501, 51.138921 ], [ 5.826445, 51.130162 ], [ 5.823241, 51.118741 ], [ 5.845979, 51.103393 ], [ 5.83678, 51.099492 ], [ 5.826652, 51.096908 ], [ 5.815903, 51.095875 ], [ 5.804948, 51.096624 ], [ 5.807428, 51.089389 ], [ 5.808978, 51.08634 ], [ 5.811769, 51.082309 ], [ 5.804327, 51.068589 ], [ 5.79885, 51.061484 ], [ 5.791305, 51.054998 ], [ 5.779626, 51.061303 ], [ 5.771461, 51.058125 ], [ 5.766397, 51.048436 ], [ 5.76402, 51.035181 ], [ 5.777559, 51.023553 ], [ 5.761746, 50.999162 ], [ 5.722369, 50.959423 ], [ 5.744693, 50.963247 ], [ 5.754305, 50.963092 ], [ 5.76402, 50.959423 ], [ 5.752548, 50.947227 ], [ 5.735288, 50.923973 ], [ 5.722369, 50.911674 ], [ 5.717614, 50.909245 ], [ 5.706039, 50.90661 ], [ 5.694463, 50.903664 ], [ 5.622323, 50.852659 ], [ 5.624493, 50.830284 ], [ 5.64072, 50.815039 ], [ 5.657432, 50.807641 ], [ 5.663251, 50.805065 ], [ 5.684852, 50.798503 ], [ 5.700458, 50.795557 ], [ 5.698701, 50.783775 ], [ 5.688366, 50.76083 ], [ 5.706556, 50.754216 ], [ 5.717408, 50.752821 ], [ 5.727846, 50.754164 ], [ 5.732777, 50.758851 ], [ 5.743556, 50.769099 ], [ 5.752444, 50.773439 ], [ 5.76247, 50.771011 ], [ 5.782933, 50.756696 ], [ 5.793165, 50.752149 ], [ 5.879878, 50.753544 ], [ 5.891288, 50.751246 ], [ 5.891321, 50.75124 ], [ 5.902203, 50.749048 ], [ 5.974756, 50.74755 ], [ 5.99491, 50.749927 ], [ 5.993256, 50.748066 ], [ 5.992636, 50.746258 ], [ 5.99274, 50.744449 ], [ 5.994187, 50.742589 ], [ 6.010826, 50.737059 ], [ 6.011343, 50.727447 ], [ 6.007623, 50.716905 ], [ 6.01155, 50.708534 ], [ 6.024779, 50.707552 ], [ 6.064363, 50.714477 ], [ 6.081003, 50.713495 ], [ 6.100227, 50.701299 ], [ 6.161102, 50.642181 ], [ 6.147769, 50.636755 ], [ 6.159448, 50.622389 ], [ 6.180015, 50.615516 ], [ 6.249055, 50.614431 ], [ 6.251329, 50.608437 ], [ 6.244301, 50.599548 ], [ 6.232932, 50.590763 ], [ 6.232932, 50.587146 ], [ 6.210608, 50.578671 ], [ 6.179085, 50.561979 ], [ 6.160688, 50.543583 ], [ 6.177328, 50.530198 ], [ 6.169473, 50.522499 ], [ 6.170817, 50.517951 ], [ 6.178878, 50.515781 ], [ 6.190557, 50.515212 ], [ 6.182599, 50.506582 ], [ 6.19066, 50.501828 ], [ 6.199239, 50.490408 ], [ 6.207197, 50.486325 ], [ 6.217119, 50.486015 ], [ 6.250915, 50.492681 ], [ 6.253086, 50.494077 ], [ 6.255566, 50.494593 ], [ 6.25784, 50.494077 ], [ 6.260114, 50.492681 ], [ 6.27541, 50.48803 ], [ 6.318715, 50.481674 ], [ 6.336905, 50.481003 ], [ 6.325743, 50.474026 ], [ 6.323262, 50.466016 ], [ 6.326156, 50.457025 ], [ 6.331634, 50.446896 ], [ 6.340212, 50.437853 ], [ 6.347343, 50.436974 ], [ 6.351167, 50.433564 ], [ 6.350444, 50.416872 ], [ 6.343313, 50.393308 ], [ 6.336388, 50.379923 ], [ 6.337732, 50.368089 ], [ 6.372458, 50.329436 ], [ 6.3734, 50.32308 ], [ 6.374525, 50.315483 ], [ 6.362019, 50.306956 ], [ 6.335458, 50.303856 ], [ 6.322022, 50.305406 ], [ 6.310653, 50.308248 ], [ 6.299491, 50.308868 ], [ 6.285952, 50.303856 ], [ 6.27603, 50.296104 ], [ 6.269415, 50.286492 ], [ 6.267348, 50.276416 ], [ 6.271792, 50.267424 ], [ 6.253396, 50.256778 ], [ 6.210401, 50.249027 ], [ 6.189627, 50.242722 ], [ 6.179808, 50.233007 ], [ 6.157174, 50.222724 ], [ 6.146839, 50.214042 ], [ 6.160171, 50.204534 ], [ 6.165752, 50.193165 ], [ 6.165132, 50.181899 ], [ 6.159138, 50.172443 ], [ 6.151696, 50.169342 ], [ 6.131749, 50.168308 ], [ 6.123171, 50.164898 ], [ 6.121311, 50.16159 ], [ 6.118003, 50.150377 ], [ 6.115833, 50.145467 ], [ 6.125962, 50.140196 ], [ 6.129476, 50.134047 ], [ 6.126582, 50.127329 ], [ 6.117487, 50.120456 ], [ 6.102604, 50.124745 ], [ 6.10033, 50.132652 ], [ 6.101467, 50.142108 ], [ 6.097126, 50.151307 ], [ 6.084207, 50.159317 ], [ 6.076456, 50.158645 ], [ 6.070048, 50.154201 ], [ 6.061366, 50.150738 ], [ 6.038628, 50.148413 ], [ 6.027363, 50.149447 ], [ 6.022967, 50.15082 ], [ 6.014134, 50.153581 ], [ 6.008036, 50.160919 ], [ 6.004729, 50.170479 ], [ 5.998321, 50.174975 ], [ 5.982921, 50.167068 ], [ 5.96163, 50.165621 ], [ 5.953156, 50.156371 ], [ 5.949021, 50.142677 ], [ 5.941063, 50.128311 ], [ 5.92618, 50.118337 ], [ 5.888973, 50.106607 ], [ 5.872437, 50.096892 ], [ 5.86882, 50.090535 ], [ 5.866856, 50.074309 ], [ 5.864375, 50.067488 ], [ 5.858278, 50.061803 ], [ 5.843705, 50.053638 ], [ 5.83771, 50.047437 ], [ 5.838847, 50.035862 ], [ 5.838847, 50.026457 ], [ 5.836367, 50.01855 ], [ 5.829132, 50.013589 ], [ 5.808875, 50.007801 ], [ 5.802674, 50.002479 ], [ 5.801537, 49.988681 ], [ 5.808565, 49.9831 ], [ 5.812596, 49.977571 ], [ 5.80164, 49.963825 ], [ 5.793372, 49.958812 ], [ 5.778593, 49.95659 ], [ 5.771565, 49.953541 ], [ 5.76371, 49.946823 ], [ 5.759989, 49.941604 ], [ 5.757612, 49.93654 ], [ 5.753581, 49.930183 ], [ 5.718958, 49.891374 ], [ 5.714927, 49.881866 ], [ 5.726709, 49.878197 ], [ 5.748827, 49.867293 ], [ 5.758129, 49.858198 ], [ 5.731877, 49.859955 ], [ 5.73198, 49.854167 ], [ 5.730533, 49.85117 ], [ 5.728673, 49.848845 ], [ 5.726916, 49.845227 ], [ 5.736528, 49.83944 ], [ 5.724642, 49.834272 ], [ 5.720198, 49.824712 ], [ 5.721645, 49.812775 ], [ 5.727743, 49.800217 ], [ 5.738285, 49.788848 ], [ 5.748414, 49.785644 ], [ 5.759162, 49.784456 ], [ 5.771875, 49.779392 ], [ 5.778489, 49.773035 ], [ 5.802054, 49.742856 ], [ 5.803604, 49.738154 ], [ 5.805774, 49.724201 ], [ 5.805361, 49.721876 ], [ 5.811769, 49.718517 ], [ 5.825721, 49.715778 ], [ 5.831716, 49.713607 ], [ 5.837297, 49.712936 ], [ 5.843705, 49.714331 ], [ 5.850216, 49.714021 ], [ 5.856004, 49.708078 ], [ 5.856403, 49.705807 ], [ 5.857347, 49.70043 ], [ 5.853627, 49.696296 ], [ 5.848769, 49.69273 ], [ 5.847219, 49.687201 ], [ 5.846702, 49.68069 ], [ 5.843705, 49.677486 ], [ 5.842258, 49.67392 ], [ 5.845772, 49.666582 ], [ 5.852593, 49.663223 ], [ 5.872644, 49.661724 ], [ 5.879878, 49.657745 ], [ 5.885459, 49.643534 ], [ 5.879878, 49.634853 ], [ 5.869957, 49.628858 ], [ 5.861998, 49.62276 ], [ 5.849183, 49.599713 ], [ 5.841224, 49.589687 ], [ 5.829959, 49.582763 ], [ 5.846909, 49.576717 ], [ 5.8374, 49.56111 ], [ 5.814456, 49.545142 ], [ 5.790685, 49.537753 ], [ 5.779006, 49.539613 ], [ 5.757095, 49.548398 ], [ 5.746346, 49.549431 ], [ 5.735598, 49.545711 ], [ 5.722679, 49.5346 ], [ 5.710276, 49.531086 ], [ 5.688676, 49.533515 ], [ 5.667178, 49.54044 ], [ 5.644647, 49.543799 ], [ 5.619739, 49.53553 ], [ 5.607854, 49.524937 ], [ 5.60558, 49.517754 ], [ 5.602273, 49.513723 ], [ 5.587493, 49.512431 ], [ 5.578915, 49.51393 ], [ 5.547599, 49.523438 ], [ 5.528789, 49.517961 ], [ 5.503674, 49.505093 ], [ 5.477732, 49.495223 ], [ 5.456132, 49.498944 ], [ 5.44993, 49.507832 ], [ 5.450964, 49.516772 ], [ 5.454168, 49.526177 ], [ 5.454375, 49.536616 ], [ 5.450241, 49.545762 ], [ 5.402078, 49.602451 ], [ 5.391166, 49.608817 ], [ 5.383475, 49.613304 ], [ 5.352469, 49.620693 ], [ 5.3411, 49.625137 ], [ 5.334899, 49.625809 ], [ 5.331178, 49.623122 ], [ 5.326941, 49.617644 ], [ 5.32167, 49.61258 ], [ 5.314538, 49.611133 ], [ 5.297898, 49.613252 ], [ 5.293041, 49.617179 ], [ 5.290664, 49.626378 ], [ 5.293764, 49.640537 ], [ 5.301826, 49.643896 ], [ 5.306373, 49.647513 ], [ 5.299449, 49.662499 ], [ 5.280122, 49.677899 ], [ 5.259244, 49.691335 ], [ 5.237644, 49.690973 ], [ 5.192478, 49.682808 ], [ 5.169431, 49.687201 ], [ 5.151241, 49.695986 ], [ 5.136358, 49.705339 ], [ 5.093776, 49.745337 ], [ 5.081891, 49.752727 ], [ 5.046234, 49.759393 ], [ 5.026287, 49.766731 ], [ 4.98908, 49.790554 ], [ 4.970993, 49.797065 ], [ 4.968371, 49.796981 ], [ 4.950013, 49.796393 ], [ 4.906604, 49.786471 ], [ 4.884177, 49.784146 ], [ 4.858029, 49.786575 ], [ 4.849037, 49.794171 ], [ 4.849244, 49.831585 ], [ 4.846763, 49.837528 ], [ 4.836945, 49.848018 ], [ 4.834878, 49.85303 ], [ 4.836738, 49.859128 ], [ 4.845626, 49.865846 ], [ 4.848934, 49.871066 ], [ 4.854308, 49.883313 ], [ 4.859372, 49.891684 ], [ 4.861956, 49.900314 ], [ 4.860199, 49.913337 ], [ 4.844593, 49.931734 ], [ 4.797257, 49.944291 ], [ 4.783925, 49.958295 ], [ 4.788265, 49.974263 ], [ 4.826713, 50.036017 ], [ 4.827643, 50.046714 ], [ 4.826093, 50.055034 ], [ 4.827229, 50.064077 ], [ 4.84604, 50.09069 ], [ 4.852137, 50.091621 ], [ 4.862886, 50.084076 ], [ 4.86516, 50.101594 ], [ 4.870534, 50.122265 ], [ 4.871878, 50.139783 ], [ 4.862679, 50.147586 ], [ 4.831364, 50.1434 ], [ 4.820098, 50.146449 ], [ 4.815551, 50.161332 ], [ 4.788575, 50.153374 ], [ 4.681915, 50.083921 ], [ 4.676128, 50.076066 ], [ 4.67344, 50.066196 ], [ 4.675818, 50.060201 ], [ 4.679538, 50.055189 ], [ 4.680572, 50.048316 ], [ 4.672924, 50.01638 ], [ 4.665896, 50.000515 ], [ 4.656697, 49.989095 ], [ 4.645845, 49.984495 ], [ 4.604194, 49.980206 ], [ 4.464771, 49.935609 ], [ 4.435109, 49.93225 ], [ 4.427651, 49.933572 ], [ 4.277599, 49.960156 ], [ 4.215953, 49.954408 ], [ 4.201118, 49.953024 ], [ 4.187682, 49.955505 ], [ 4.131665, 49.974987 ], [ 4.132365, 49.974946 ], [ 4.139623, 49.974522 ], [ 4.138383, 49.989198 ], [ 4.132905, 50.004494 ], [ 4.128151, 50.005786 ], [ 4.132285, 50.017568 ], [ 4.137349, 50.025061 ], [ 4.144584, 50.030797 ], [ 4.162877, 50.041805 ], [ 4.186028, 50.05245 ], [ 4.210006, 50.06015 ], [ 4.210316, 50.066713 ], [ 4.203392, 50.074671 ], [ 4.197397, 50.084076 ], [ 4.180551, 50.127226 ], [ 4.170629, 50.130481 ], [ 4.15988, 50.129396 ], [ 4.139933, 50.123557 ], [ 4.125774, 50.128156 ], [ 4.128151, 50.146243 ], [ 4.147374, 50.186343 ], [ 4.152749, 50.204534 ], [ 4.157296, 50.212698 ], [ 4.167942, 50.222465 ], [ 4.191506, 50.234299 ], [ 4.201325, 50.241534 ], [ 4.203702, 50.251973 ], [ 4.197604, 50.258484 ], [ 4.185201, 50.26546 ], [ 4.171766, 50.270886 ], [ 4.162774, 50.272953 ], [ 4.150268, 50.269543 ], [ 4.149751, 50.263135 ], [ 4.150992, 50.256262 ], [ 4.143654, 50.251611 ], [ 4.125257, 50.25714 ], [ 4.097868, 50.294812 ], [ 4.077198, 50.306646 ], [ 4.055907, 50.314553 ], [ 4.022731, 50.338117 ], [ 4.0033, 50.34406 ], [ 3.982113, 50.342613 ], [ 3.918551, 50.325456 ], [ 3.895917, 50.325301 ], [ 3.878037, 50.330779 ], [ 3.86088, 50.338479 ], [ 3.84021, 50.345197 ], [ 3.798662, 50.348452 ], [ 3.755047, 50.346334 ], [ 3.741508, 50.34313 ], [ 3.733446, 50.337239 ], [ 3.715463, 50.317653 ], [ 3.711122, 50.309333 ], [ 3.708435, 50.306336 ], [ 3.703887, 50.304321 ], [ 3.702234, 50.305251 ], [ 3.700787, 50.304683 ], [ 3.696859, 50.298223 ], [ 3.661719, 50.319307 ], [ 3.652934, 50.360183 ], [ 3.652831, 50.406847 ], [ 3.644356, 50.445501 ], [ 3.62813, 50.464363 ], [ 3.608286, 50.476507 ], [ 3.586375, 50.483483 ], [ 3.563741, 50.486532 ], [ 3.499145, 50.48679 ], [ 3.486743, 50.492681 ], [ 3.496458, 50.503792 ], [ 3.498008, 50.511853 ], [ 3.491497, 50.517073 ], [ 3.477131, 50.519863 ], [ 3.462868, 50.51914 ], [ 3.452636, 50.514851 ], [ 3.442714, 50.508494 ], [ 3.429175, 50.501828 ], [ 3.385354, 50.491648 ], [ 3.361066, 50.489787 ], [ 3.343599, 50.49294 ], [ 3.299881, 50.507461 ], [ 3.286755, 50.514075 ], [ 3.271045, 50.526943 ], [ 3.265878, 50.538312 ], [ 3.264327, 50.570196 ], [ 3.237869, 50.626472 ], [ 3.229808, 50.65541 ], [ 3.24376, 50.672102 ], [ 3.232391, 50.695925 ], [ 3.224433, 50.705175 ], [ 3.210997, 50.707965 ], [ 3.196941, 50.709206 ], [ 3.188983, 50.715097 ], [ 3.176684, 50.734114 ], [ 3.162823, 50.749925 ], [ 3.162811, 50.749939 ], [ 3.146195, 50.768892 ], [ 3.129245, 50.779072 ], [ 3.103304, 50.784085 ], [ 3.023817, 50.768262 ], [ 2.971425, 50.757833 ], [ 2.948378, 50.748686 ], [ 2.930188, 50.736232 ], [ 2.900112, 50.703108 ], [ 2.886883, 50.696648 ], [ 2.871276, 50.698767 ], [ 2.866726, 50.700091 ], [ 2.786734, 50.723365 ], [ 2.768234, 50.733235 ], [ 2.762963, 50.739385 ], [ 2.749527, 50.75959 ], [ 2.743842, 50.766205 ], [ 2.706635, 50.788787 ], [ 2.700021, 50.79628 ], [ 2.69692, 50.80305 ], [ 2.691856, 50.808838 ], [ 2.67873, 50.81323 ], [ 2.669222, 50.813902 ], [ 2.650618, 50.812248 ], [ 2.642453, 50.812455 ], [ 2.627777, 50.814419 ], [ 2.620439, 50.816486 ], [ 2.615168, 50.82217 ], [ 2.60659, 50.834831 ], [ 2.602042, 50.838087 ], [ 2.58995, 50.842014 ], [ 2.586746, 50.845425 ], [ 2.58778, 50.850024 ], [ 2.595531, 50.861134 ], [ 2.596668, 50.867646 ], [ 2.576928, 50.911519 ], [ 2.582715, 50.920666 ], [ 2.605763, 50.935238 ], [ 2.611654, 50.941233 ], [ 2.60845, 50.961128 ], [ 2.592741, 50.976114 ], [ 2.55698, 51.001177 ], [ 2.547059, 51.020479 ], [ 2.537033, 51.06461 ], [ 2.5218, 51.087541 ], [ 2.521821, 51.087551 ], [ 2.542003, 51.096869 ], [ 2.579926, 51.104804 ], [ 2.715668, 51.169501 ], [ 2.923595, 51.246487 ], [ 3.124848, 51.329657 ], [ 3.348969, 51.375149 ], [ 3.349415, 51.375223 ], [ 3.358068, 51.336713 ], [ 3.353934, 51.311908 ], [ 3.353211, 51.288602 ], [ 3.36737, 51.263487 ], [ 3.391658, 51.24677 ], [ 3.398798, 51.244698 ], [ 3.421941, 51.237985 ], [ 3.453877, 51.235633 ], [ 3.501212, 51.240284 ], [ 3.504106, 51.249741 ], [ 3.501522, 51.262402 ], [ 3.503383, 51.273952 ], [ 3.514338, 51.281031 ], [ 3.529014, 51.283331 ], [ 3.545034, 51.283925 ], [ 3.584825, 51.289532 ], [ 3.609526, 51.290436 ], [ 3.635054, 51.287827 ], [ 3.757321, 51.262324 ], [ 3.776234, 51.254521 ], [ 3.781402, 51.241421 ], [ 3.779748, 51.230311 ], [ 3.781402, 51.219872 ], [ 3.796285, 51.208762 ], [ 3.808687, 51.205325 ], [ 3.927026, 51.206255 ], [ 3.949454, 51.210777 ], [ 3.995032, 51.23323 ], [ 4.118952, 51.272401 ], [ 4.168562, 51.29687 ], [ 4.207939, 51.330589 ], [ 4.21352, 51.340537 ], [ 4.220962, 51.363817 ], [ 4.221491, 51.368001 ], [ 4.221528, 51.367987 ], [ 4.222179, 51.367743 ], [ 4.241059, 51.356594 ], [ 4.249034, 51.346666 ], [ 4.256114, 51.328437 ], [ 4.272634, 51.315823 ], [ 4.290782, 51.305894 ], [ 4.302989, 51.296088 ], [ 4.306651, 51.28974 ], [ 4.308116, 51.283637 ], [ 4.305431, 51.276597 ], [ 4.298676, 51.269599 ], [ 4.296723, 51.267564 ], [ 4.30836, 51.271226 ], [ 4.316417, 51.276842 ], [ 4.330821, 51.296088 ], [ 4.29713, 51.305162 ], [ 4.289317, 51.309149 ], [ 4.285411, 51.31802 ], [ 4.286143, 51.339667 ], [ 4.283051, 51.350084 ], [ 4.275645, 51.3581 ], [ 4.261078, 51.369371 ], [ 4.261068, 51.369379 ], [ 4.281124, 51.368947 ], [ 4.290105, 51.368752 ], [ 4.326278, 51.356427 ], [ 4.345605, 51.352293 ], [ 4.392217, 51.350407 ], [ 4.411234, 51.356737 ], [ 4.416195, 51.373971 ], [ 4.410097, 51.38379 ], [ 4.38767, 51.400533 ], [ 4.379918, 51.409525 ], [ 4.380642, 51.419653 ], [ 4.387153, 51.427456 ], [ 4.38922, 51.434588 ], [ 4.377128, 51.442882 ], [ 4.429424, 51.461976 ], [ 4.483064, 51.474327 ], [ 4.512623, 51.477376 ], [ 4.525232, 51.475929 ], [ 4.533191, 51.467583 ], [ 4.531847, 51.450866 ], [ 4.523372, 51.438412 ], [ 4.521512, 51.428645 ], [ 4.540632, 51.420067 ], [ 4.553861, 51.419291 ], [ 4.582697, 51.422599 ], [ 4.614633, 51.41756 ], [ 4.630136, 51.418206 ], [ 4.643571, 51.42141 ], [ 4.653907, 51.426216 ], [ 4.731215, 51.485618 ], [ 4.764184, 51.496238 ], [ 4.778654, 51.495359 ], [ 4.796844, 51.491018 ], [ 4.813587, 51.48412 ], [ 4.823922, 51.475645 ], [ 4.826093, 51.460555 ], [ 4.819891, 51.446215 ], [ 4.815447, 51.431074 ] ] ] } }]
};
var vectorCountry = new ol.layer.Vector({
source: new ol.source.Vector({
features: (new ol.format.GeoJSON()).readFeatures(geojsonObject, {
featureProjection: 'EPSG:3857'
})
}),
style: new ol.style.Style({
fill: new ol.style.Fill({
color: 'rgba(223,224,226,1)'
})
})
});
var vectorBackground = new ol.layer.Vector({
source: new ol.source.Vector({
url: 'ne_10m_land.geojson',
format: new ol.format.GeoJSON()
}),
style: new ol.style.Style({
fill: new ol.style.Fill({
color: '#627a84'
})
})
});
var vectorBruxelles = new ol.layer.Vector({
source: new ol.source.Vector({
features: [new ol.Feature({
geometry: new ol.geom.Point(center)
})]
}),
style: new ol.style.Style({
image: new ol.style.Circle({
radius: 5,
fill: new ol.style.Fill({color: 'rgba(255, 255, 255, 1)'}),
stroke: new ol.style.Stroke({color: 'black', width: 2})
}),
text: new ol.style.Text({
text: 'BRUXELLES',
offsetX: 20,
offsetY: 20,
fill: new ol.style.Fill({color: 'white'}),
stroke: new ol.style.Stroke({color: 'black', width: 2})
})
})
});
var map = new ol.Map({
layers: [
vectorBackground,
vectorCountry,
vectorBruxelles
],
target: 'map',
view: new ol.View({
center: center,
zoom: 7
})
});
var feat = vectorCountry.getSource().getFeatures()[0];
var doRotation = function () {
feat.getGeometry().rotate(2 * (Math.PI / 180), center);
setTimeout(doRotation, 40);
};
doRotation();
</script>
</body>
</html>
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment