From a1e38d9111819c28d14d4c598732ca6f89c5c7b2 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 23 Jul 2015 19:03:36 +0200 Subject: Originální import z https://gitlab.com/mcepl/kostely MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- img/Ol_icon_blue.png | Bin 0 -> 363 bytes img/Ol_icon_red.png | Bin 0 -> 283 bytes img/Ol_question_green.png | Bin 0 -> 643 bytes index.html | 36 + kostely.geojson | 2028 +++++++++++++++++++++++++++++++++++++++++++++ kostely.js | 160 ++++ kostely.ods | Bin 0 -> 22461 bytes kostely.tsv | 149 ++++ 8 files changed, 2373 insertions(+) create mode 100644 img/Ol_icon_blue.png create mode 100644 img/Ol_icon_red.png create mode 100644 img/Ol_question_green.png create mode 100644 index.html create mode 100644 kostely.geojson create mode 100644 kostely.js create mode 100644 kostely.ods create mode 100644 kostely.tsv diff --git a/img/Ol_icon_blue.png b/img/Ol_icon_blue.png new file mode 100644 index 0000000..97d144a Binary files /dev/null and b/img/Ol_icon_blue.png differ diff --git a/img/Ol_icon_red.png b/img/Ol_icon_red.png new file mode 100644 index 0000000..9836c7f Binary files /dev/null and b/img/Ol_icon_red.png differ diff --git a/img/Ol_question_green.png b/img/Ol_question_green.png new file mode 100644 index 0000000..acd988d Binary files /dev/null and b/img/Ol_question_green.png differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..51dae9b --- /dev/null +++ b/index.html @@ -0,0 +1,36 @@ + + + + + Románské kostely v Česku + + + + + + + + + +
+ +
+ + + diff --git a/kostely.geojson b/kostely.geojson new file mode 100644 index 0000000..83ae4c4 --- /dev/null +++ b/kostely.geojson @@ -0,0 +1,2028 @@ +{ + "type": "FeatureCollection", + "features": [ + { + "type": "Feature", + "properties": { + "title": "Albrechtice", + "description": "Kostel sv. Petra a Pavla", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 13.566661, + 49.19906 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Bedřichův Světec", + "description": "Kostel sv. Jakuba Většího", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 13.751944, + 50.452778 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Blučina", + "description": "Kostel Nanebevzetí Panny Marie", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.643907, + 49.054384 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Bořitov", + "description": "Kostel sv. Jiří", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.588889, + 49.428889 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Branišovice", + "description": "Kostel sv. Vavřince", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.431503, + 48.962414 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Brníčko", + "description": "Kostel Narození Panny Marie", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.968083, + 49.8945 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Budeč", + "description": "Rotunda sv. Petra a Pavla", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.244167, + 50.191111 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Bukovec, okres Domažlice", + "description": "Kostel Nanebevzetí Panny Marie", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 12.995, + 49.586667 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Čáslav", + "description": "Kostel sv. Petra a Pavla", + "icon": "question", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.389517, + 49.911017 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Častohostice", + "description": "Rotunda sv. Barbory", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.819722, + 49.017778 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Čelákovice", + "description": "Kostel Nanebevzetí Panny Marie", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.75279, + 50.1662661 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Černvír", + "description": "Kostel Nanebevzetí Panny Marie", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.346415, + 49.446877 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Červená Lhota", + "description": "Kostel sv. Vavřince", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.805833, + 49.285 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Červená, okres Písek", + "description": "Kostel sv. Bartoloměje", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.2404689, + 49.4011681 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Česká Třebová", + "description": "Rotunda sv. Kateřiny", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.450511, + 49.904433 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Chelčice", + "description": "Kostel sv. Martina", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.169131, + 49.121867 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Chřenovice", + "description": "Kostel sv. Václava", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.216389, + 49.714444 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Chvojen", + "description": "Kostel sv. Jakuba", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.632004, + 49.770909 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Cítov", + "description": "Kostel sv. Linharta", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.4, + 50.371389 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Dobrš", + "description": "Kostel Zvěstování Panny Marie", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 13.754167, + 49.156389 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Dobřichov", + "description": "Kostel Nejsvětější Trojice", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.032436, + 50.079691 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Doksany", + "description": "Kostel Narození Panny Marie", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.159167, + 50.455278 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Dolní Újezd", + "description": "Kostel sv. Martina", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.254722, + 49.825833 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Drásov", + "description": "Kostel Povýšení sv. Kříže", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.477491, + 49.332242 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Holubice", + "description": "Rotunda Narození Panny Marie", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.289722, + 50.199722 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Hrádek", + "description": "Rotunda sv. Oldřicha", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.273889, + 48.771944 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Hradešín", + "description": "Rotunda sv. Jiří", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.755556, + 50.040833 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Hrusice", + "description": "Kostel sv. Václava", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.738056, + 49.91 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Jakub (Církvice)", + "description": "Kostel sv. Jakuba Staršího", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.336708, + 49.945875 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Jakubov u Moravských Budějovic???", + "description": "Kostel sv. Jakuba Většího", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.754167, + 49.085833 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Jemnice", + "description": "Kostel sv. Jakuba", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.591667, + 49.018611 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Karlík", + "description": "Rotunda sv. Martina", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.261667, + 49.936111 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Kondrac", + "description": "Kostel sv. Bartoloměje", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.893889, + 49.666944 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Kopčany, Slovensko", + "description": "Kostel sv. Markéty Antiochijské", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 17.108744, + 48.796218 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Kostelec u Křížků", + "description": "Rotunda sv. Martina", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.558611, + 49.907778 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Kostomlaty pod Řípem", + "description": "Kostel sv. Petra a Pavla", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.343333, + 50.38 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Kouřim", + "description": "Kostel sv. Štěpána", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.978333, + 50.002222 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Kvášňovice", + "description": "Kostel sv. Bartoloměje", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 13.641944, + 49.411667 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Lelekovice", + "description": "Kostel sv. Filipa a Jakuba", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.580698, + 49.291426 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Levý Hradec", + "description": "Kostel sv. Klementa", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.374444, + 50.169167 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Libouň", + "description": "Rotunda sv. Václava", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.820833, + 49.633889 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Lochy", + "description": "Kostel sv. Bonifáce", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.3549, + 49.92596 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Loštice", + "description": "Kostel sv. Prokopa", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.930833, + 49.746056 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Louka u Znojma", + "description": "Kostel Nanebevzetí Panny Marie a sv. Václava", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.058056, + 48.841389 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Lukovany", + "description": "Kostel sv. Václava", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.299218, + 49.162058 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Malejovice", + "description": "Kostel sv. Jiří", + "icon": "question", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.02091, + 49.50506 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Malín", + "description": "Kostel apoštolů Jana a Pavla", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.3027522, + 49.9671464 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Malín", + "description": "Kostel sv. Štěpána", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.3050142, + 49.966897 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Makov", + "description": "Kostel sv. Víta", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.188889, + 49.856111 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Mikulovice, okres Znojmo", + "description": "Kostel svatých Petra a Pavla", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.099167, + 48.960833 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Milevsko", + "description": "Kostel Navštívení Panny Marie", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.368056, + 49.456667 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Mohelnice", + "description": "Kostel sv. Tomáše z Canterbury", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.918972, + 49.7775 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Mohelnice nad Jizerou", + "description": "Kostel Nanebevzetí Panny Marie", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.977017, + 50.559342 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Moravské Budějovice", + "description": "Rotunda sv. Michala", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.808889, + 49.052222 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Mouřenec u Annína", + "description": "Kostel sv. Mořice", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 13.508056, + 49.168333 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Mušov", + "description": "Kostel sv. Linharta", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.60003, + 48.895946 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Nebovidy", + "description": "Kostel sv. Kříže", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.554417, + 49.142082 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Olbramovice", + "description": "Kostel Všech svatých ", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.633056, + 49.67 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Omice", + "description": "Kostel sv. Jakuba Staršího", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.450199, + 49.168286 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Oslavany", + "description": "Kostel Matky Boží", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.334834, + 49.126698 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Pařížov", + "description": "Kostel sv. Maří Magdaleny", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.566944, + 49.834444 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Plasy", + "description": "Kostel Nanebevzetí Panny Marie", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 13.390833, + 49.934444 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Plaveč", + "description": "Rotunda Nanebevzetí Panny Marie", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.077222, + 48.928889 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Poříčí nad Sázavou", + "description": "Kostel sv. Havla", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.671389, + 49.837778 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Potvorov", + "description": "Kostel sv. Mikuláše", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 13.401667, + 50.016944 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Praha - Dolní Chabry", + "description": "Kostel Stětí sv. Jana Křtitele", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.443333, + 50.149444 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Praha - Hrad", + "description": "Bazilika sv. Jiří", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.4025, + 50.09125 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Praha - Kyje", + "description": "Kostel sv. Bartoloměje", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.548056, + 50.097778 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Praha - Malá Strana", + "description": "Kostel sv. Jana Křtitele Na prádle", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.406389, + 50.081944 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Praha - Nové město", + "description": "Kostel sv. Petra na Poříčí", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.434444, + 50.091261 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Praha – Břevnov", + "description": "Kostel sv. Markéty", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.356861, + 50.084806 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Praha – Hostivař", + "description": "Kostel Stětí sv. Jana Křtitele", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.5244694, + 50.0490556 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Praha – Nové město", + "description": "Rotunda sv. Longina", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.42486, + 50.076406 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Praha – Přední Kopanina", + "description": "Kostel sv. Máří Magdaleny", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.296389, + 50.117222 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Praha – Prosek", + "description": "Kostel sv. Václava", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.4947472, + 50.1181361 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Praha – Řepy", + "description": "Kostel sv. Martina", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.300278, + 50.071389 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Praha – Staré město", + "description": "Rotunda sv. Kříže Menšího", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.414722, + 50.082778 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Praha – Strahov", + "description": "Bazilika Nanebevzetí Panny Marie", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.3892, + 50.0864 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Praha – Vyšehrad", + "description": "Rotunda sv. Martina", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.4213, + 50.0636 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Pravonín", + "description": "Rotunda sv. Jana Křtitele", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.926667, + 49.6325 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Předklášteří", + "description": "Kostel Nanebevzetí Panny Marie", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.400679, + 49.353231 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Přibyslavice", + "description": "Kostel sv. Anny", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.778611, + 49.261389 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Radomyšl", + "description": "Kostel sv. Martina", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 13.93, + 49.316111 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Řeznovice", + "description": "Kostel sv. Petra a Pavla", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.316751, + 49.084619 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Říp", + "description": "Rotunda sv. Jiří", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.289722, + 50.386111 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Ronov nad Doubravou", + "description": "Kostel sv. Kříže", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.538056, + 49.875833 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Rosice", + "description": "Kostel sv. Martina", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.387444, + 49.181222 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Šebkovice", + "description": "Kostel sv. Maří Magdaleny", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.813333, + 49.124167 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Stará Boleslav", + "description": "Bazilika sv. Václava", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.672472, + 50.194736 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Stará Boleslav", + "description": "Kostel sv. Klementa", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.672778, + 50.194583 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Staré Město", + "description": "Kostel sv. Michaela archanděla", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 17.450833, + 49.074722 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Starý Plzenec", + "description": "Rotunda sv. Petra a Pavla", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 13.475, + 49.703333 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Štěpkov", + "description": "Rotunda sv. Václava", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.646111, + 49.082778 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Solopysky", + "description": "Kostel sv. Bartoloměje", + "icon": "question", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.125, + 49.9375 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Stonařov", + "description": "Hřbitovní kaple sv. Trojice", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.589444, + 49.279444 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Střítež, okres Třebíč", + "description": "Kostel sv. Marka", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.903333, + 49.1875 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Telč", + "description": "Kostel sv. Ducha", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.454682, + 49.18301 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Tismice", + "description": "Kostel Nanebevzetí Panny Marie", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.821861, + 50.055833 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Tožice", + "description": "Kostel sv. Martina", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.6425, + 49.699722 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Třebešice", + "description": "Kostel Všech svatých", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.831389, + 49.773889 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Třebíč", + "description": "Bazilika sv. Prokopa", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.873889, + 49.216944 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Týnec nad Sázavou", + "description": "Rotunda sv. Václava", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.589722, + 49.834167 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Uhlířské Janovice", + "description": "Kostel sv. Jiljí", + "icon": "question", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.03584, + 49.52505 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Údlice", + "description": "Kostel Povýšení sv. Kříže", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 13.462222, + 50.445556 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Újezd u Černé hory", + "description": "Kostel Všech svatých", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.542222, + 49.368889 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Újezdec", + "description": "Kostel sv. Voršily", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 13.835278, + 49.498333 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Vinec", + "description": "Kostel sv. Mikuláše", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.8575, + 50.403889 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Volenice", + "description": "Kostel sv. Petra a Pavla", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 13.739722, + 49.249167 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Vroutek", + "description": "Kostel sv. Jakuba Většího", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 13.379722, + 50.179167 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Vysoká", + "description": "Kostel Navštívení Panny Marie", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.178611, + 49.943056 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Vyšehorky", + "description": "Kostel Všech svatých", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.875583, + 49.768639 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Vyšehořovice", + "description": "Zřícenina kostela sv. Martina", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 14.768056, + 50.116389 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Zbraslavice", + "description": "Kostel sv. Vavřince", + "icon": "question", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.182629, + 49.812063 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Žabonosy", + "description": "Kostel sv. Václava", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.028056, + 50.037222 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Záboří nad Labem", + "description": "Kostel sv. Prokopa", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 15.35, + 50.025278 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Zborovy", + "description": "Rotunda sv. Jana Křtitele", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 13.51569, + 49.38119 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Žďárná", + "description": "Kostel sv. Bartoloměje", + "icon": "other", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.770278, + 49.4675 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Želkovice", + "description": "Rotunda sv. Petra a Pavla", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 13.876389, + 50.463611 + ] + } + }, + { + "type": "Feature", + "properties": { + "title": "Znojmo", + "description": "Rotunda sv. Kateřiny", + "icon": "rotunda", + "iconSize": "6.6", + "iconOffset": "0,-12" + }, + "geometry": { + "type": "Point", + "coordinates": [ + 16.043611, + 48.855556 + ] + } + } + ] +} diff --git a/kostely.js b/kostely.js new file mode 100644 index 0000000..49ceadf --- /dev/null +++ b/kostely.js @@ -0,0 +1,160 @@ +var vectorLayer = new ol.layer.Vector({ + title: "Románské kostely", + projection: "EPSG:3857", + source: new ol.source.Vector({ + format: new ol.format.GeoJSON() + }), + style: function(feat, res) { + var icon = feat.get('icon'); + var img_src = "img/Ol_icon_red.png"; + if (icon == 'rotunda') { + img_src = "img/Ol_icon_blue.png"; + } + else if (icon == 'question') { + img_src = "img/Ol_question_green.png"; + } + // FIXME je offset k něčemu dobrý? + var offset = feat.get('iconOffset'); + return [new ol.style.Style({ + image: new ol.style.Icon({ + src: img_src + }), + text: new ol.style.Text({ + font: 'bolder 10px serif', + text: feat.get('title'), + offsetY: 12, + textBaseLine: "bottom" + }) + })]; + } +}); + +var map = new ol.Map({ + target: "map", + projection: "EPSG:3857", + loadTilesWhileAnimating: true, + loadTilesWhileInteracting: true, + layers: [ + new ol.layer.Tile({ + title: "OSM Map", + source: new ol.source.OSM() + }), + + // to be filled in later + vectorLayer + ], + view: new ol.View({ + //Village Čihošť is the geographical center of Czechia + center: ol.proj.fromLonLat([15.338611, 49.743889]), + zoom: 8 + }) +}); + +var httpRequest = new XMLHttpRequest(); +httpRequest.onreadystatechange = function(data) { + if (httpRequest.readyState != 4 || httpRequest.status != 200) { + return; + } + else { + csv2geojson.csv2geojson(httpRequest.responseText, { + latfield: 'lat', + lonfield: 'lon', + delimiter: '\t' + }, + function(err, data) { + var geoJsonFormat = new ol.format.GeoJSON(); + var features = geoJsonFormat.readFeatures( + data, { + featureProjection: 'EPSG:3857' + } + ); + var layerSource = vectorLayer.getSource(); + layerSource.addFeatures(features); + }); +}}; +httpRequest.open('GET', 'kostely.tsv'); +httpRequest.send(); + +ol.control.WMSLegend = function(opt_options) { + var options = opt_options || {}; + this.options = options; + this.div = document.createElement('div'); + var legendP = document.createElement('p'); + legendP.innerHTML = 'Legend:'; + this.div.className = this.options.class + ' ol-unselectable'; + this.div.appendChild(legendP); + ol.control.Control.call(this, { + element: this.div + }); +}; +ol.inherits(ol.control.WMSLegend, ol.control.Control); + +ol.control.WMSLegend.prototype.drawLegendItem = function(layer) { + if (layer.get('showLegend') === true) { + try { + var url = layer.getSource().getUrls()[0]; + } + catch(err) { + var url = layer.getSource().getUrl(); + } + var legendImg = document.createElement('img'); + legendImg.src = url + '&version=' + this.options.wmsVersion + '&service=WMS&request=GetLegendGraphic&sld_version=1.1.0&layer=' + layer.getSource().getParams().layers + '&format=' + this.options.format; + this.div.appendChild(legendImg); + } +} + +ol.control.WMSLegend.prototype.setMap = function(map){ + ol.control.Control.prototype.setMap.call(this, map); + this.options.wmsVersion = this.options.wmsVersion || '1.3.0'; + this.options.format = this.options.format || 'image/png'; + var layers = map.getLayers().getArray(); + for (var i=0; i