diff --git a/index.html b/index.html index 8fb7520..89bcd35 100644 --- a/index.html +++ b/index.html @@ -23,30 +23,7 @@ plat avec sa cloche Melting Pot -

Où manger et boire -
-
- chargement en cours... -
- - - - -
-

Par @@ -56,6 +33,7 @@

+
@@ -70,8 +48,32 @@ + value='🍽️ Chercher' >
+ +
+
+
+ chargement en cours... +
+ + + + +
+
diff --git a/js/main.js b/js/main.js index a667a75..e19a45e 100644 --- a/js/main.js +++ b/js/main.js @@ -950,6 +950,9 @@ function displayPointsFromApi(points) { } return true; }, + onZoomEnd: function(event){ + console.log('event', event); + }, onEachFeature: function (feature, layer) { var popupContent = ''; popupContent = popupContent + '
@id
' + feature.properties.type + '/' + feature.properties.id + '
'; @@ -1103,6 +1106,7 @@ function loadOverpassQuery() { var overpassApiUrl = buildOverpassApiUrl(map, queryTextfieldValue); $.get(overpassApiUrl, function (geoDataPointsFromApi) { + displayPointsFromApi(geoDataPointsFromApi); $('#spinning_icon').fadeOut(); isLoading = false; diff --git a/styles/style.css b/styles/style.css index bcffdfb..ed6a30e 100644 --- a/styles/style.css +++ b/styles/style.css @@ -18,6 +18,7 @@ p{ height: 70%; width: 100%; margin: 0; + border: solid 2px; } .padded{ padding: 1rem; @@ -52,8 +53,8 @@ h2{ #overpass-api-controls { position: fixed; - top:0; - right: 1em; + top: 8em; + left: 4em; padding: 10px; background-color: rgb(255, 255, 255); z-index: 10; @@ -72,6 +73,11 @@ img.leaflet-marker-icon{ border: solid 1px #ccc; margin-left: -20px; margin-top: -20px; + box-shadow: 0 0 3em green; +} +img.leaflet-marker-icon.tag-amenity_drinking_water{ + + box-shadow: 0 0 3em cornflowerblue; } img.leaflet-marker-icon.diet--vegetarian_yes{ @@ -85,6 +91,16 @@ img.leaflet-marker-icon.diet--vegetarian_yes{ color: white; border: solid 1px #497CD3FF; } +#query-button:hover, +.edit-button:hover{ + background: #0d377b; + border: solid 1px #08285c; + cursor:pointer; +} +.edit-button{ + margin-left: 1ch; + +} #query-button{ min-width: 10em; @@ -103,13 +119,20 @@ a{ } #spinning_icon{ position: fixed; - top: 0.5rem; - right: 0.5rem; + top: 11rem; + left: 3.5rem; + z-index: 10; + background: white; + font-size: 2rem; } #spinning_icon svg{ position: fixed; - top: 0.5rem; - right: 0.5rem; + top: 1.5rem; + left: 0.8rem; + background: white; + border-radius: 100%; + width: 3rem; + height: 3rem; } #spinning_icon svg{ animation: spin 2s linear infinite;