Obvody/www/js/obvody.js

173 lines
3.7 KiB
JavaScript

var geojsonFeature = {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"number": 30
},
"geometry": {
"coordinates": [
[
[
14.841565868715634,
50.855586568425565
],
[
14.841862978449456,
50.85495568524914
],
[
14.842016034979025,
50.854444152084426
],
[
14.842133078208576,
50.85346653976222
],
[
14.842763310977261,
50.853534745937964
],
[
14.843520482859333,
50.853660536230024
],
[
14.843762804242246,
50.85369806107373
],
[
14.843897729961952,
50.85365410650587
],
[
14.84477105251392,
50.85374504768558
],
[
14.845788428270168,
50.85375073150345
],
[
14.845671385041697,
50.85560930279513
],
[
14.843960753238832,
50.85570592374205
],
[
14.843033410735245,
50.8556661386705
],
[
14.841565868715634,
50.855586568425565
]
]
],
"type": "Polygon"
}
},
{
"type": "Feature",
"properties": {
"number": 31
},
"geometry": {
"coordinates": [
[
[
14.842136029909085,
50.85346144548936
],
[
14.842079903636858,
50.85317700714876
],
[
14.841739714298683,
50.85292228533899
],
[
14.84185093080771,
50.852139576618924
],
[
14.842098837460433,
50.85184432094401
],
[
14.842377037185244,
50.851558627698495
],
[
14.842662960004368,
50.8512982658542
],
[
14.84302972564214,
50.85095769995354
],
[
14.843971179858215,
50.850083607142096
],
[
14.84391580019846,
50.849878817313055
],
[
14.84435092609624,
50.849694006208296
],
[
14.844524976455318,
50.849843853106165
],
[
14.844888904499726,
50.85053314194968
],
[
14.844817702080093,
50.85107757358222
],
[
14.844786056560253,
50.85249106824543
],
[
14.844276906104568,
50.853057507786644
],
[
14.84390337681711,
50.85365358760171
],
[
14.843762702127094,
50.853698971467395
],
[
14.842708351615471,
50.853526184519055
],
[
14.842136029909085,
50.85346144548936
]
]
],
"type": "Polygon"
}
}
]
}
var geojson;
geojson = L.geoJSON(geojsonFeature, {
style: style,
onEachFeature: onEachFeature
}).addTo(map);