From ddbc21f7ec44c7e4dfcaf8a3a4d6019ffcdc623e Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Mon, 5 Sep 2016 00:27:05 +0200 Subject: Move all image files to subdirectory --- Ol_icon_blue.png | Bin 363 -> 0 bytes Ol_icon_red.png | Bin 283 -> 0 bytes Ol_question_green.png | Bin 2462 -> 0 bytes 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 kostely.js | 6 +++--- kostely.tsv | 3 ++- 8 files changed, 5 insertions(+), 4 deletions(-) delete mode 100644 Ol_icon_blue.png delete mode 100644 Ol_icon_red.png delete mode 100644 Ol_question_green.png create mode 100644 img/Ol_icon_blue.png create mode 100644 img/Ol_icon_red.png create mode 100644 img/Ol_question_green.png diff --git a/Ol_icon_blue.png b/Ol_icon_blue.png deleted file mode 100644 index 97d144a..0000000 Binary files a/Ol_icon_blue.png and /dev/null differ diff --git a/Ol_icon_red.png b/Ol_icon_red.png deleted file mode 100644 index 9836c7f..0000000 Binary files a/Ol_icon_red.png and /dev/null differ diff --git a/Ol_question_green.png b/Ol_question_green.png deleted file mode 100644 index 1e21177..0000000 Binary files a/Ol_question_green.png and /dev/null differ 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/kostely.js b/kostely.js index d5e6397..91e4184 100644 --- a/kostely.js +++ b/kostely.js @@ -8,12 +8,12 @@ var vectorLayer = new ol.layer.Vector({ // blue is rotunda and red other church style: function(feat, res) { var icon = feat.get('icon'); - var img_src = "Ol_icon_red.png"; + var img_src = "img/Ol_icon_red.png"; if (icon == 'rotunda') { - img_src = "Ol_icon_blue.png"; + img_src = "img/Ol_icon_blue.png"; } else if (icon == 'question') { - img_src = "Ol_question_green.png"; + img_src = "img/Ol_question_green.png"; } var offset = feat.get('iconOffset'); return [new ol.style.Style({ diff --git a/kostely.tsv b/kostely.tsv index 8d903d0..5345c21 100644 --- a/kostely.tsv +++ b/kostely.tsv @@ -62,7 +62,8 @@ "49.834444" "15.566944" "Pařížov" "Kostel sv. Maří Magdaleny" "other" "6.6" "0,-12" "49.934444" "13.390833" "Plasy" "Kostel Nanebevzetí Panny Marie" "other" "6.6" "0,-12" "48.928889" "16.077222" "Plaveč" "Rotunda Nanebevzetí Panny Marie" "rotunda" "6.6" "0,-12" -"49.837778" "14.671389" "Poříčí nad Sázavou" "Kostel sv. Havla" "other" "6.6" "0,-12" +"49.83641" "14.6751283" "Poříčí nad Sázavou" "Kostel sv. Petra a Pavla" "other" "6.6" "0,-12" +"49.8403263" "14.6803391" "Poříčí nad Sázavou" "Kostel sv. Havla" "other" "6.6" "0,-12" "50.016944" "13.401667" "Potvorov" "Kostel sv. Mikuláše" "other" "6.6" "0,-12" "50.149444" "14.443333" "Praha - Dolní Chabry" "Kostel Stětí sv. Jana Křtitele" "other" "6.6" "0,-12" "50.09125" "14.4025" "Praha - Hrad" "Bazilika sv. Jiří" "other" "6.6" "0,-12" -- cgit