[openstreetmap/openstreetmap-website] Add microcosms to the website (#2390)

Michael Reichert notifications at github.com
Tue Oct 15 07:59:14 UTC 2019


Nakaner commented on this pull request.



> +    <%= form.text_field :location, id: :microcosm_location %>
+  </div>
+
+  <div class="field">
+    <%= form.label :lat %>
+    <%= form.text_field :lat, id: :microcosm_lat %> (decimal)
+  </div>
+
+  <div class="field">
+    <%= form.label :lon %>
+    <%= form.text_field :lon, id: :microcosm_lon %> (decimal)
+  </div>
+
+  <p>
+    To get a bounding box use Geofabrik's <a href="http://tools.geofabrik.de/calc/#type=geofabrik_standard&bbox=-120.848658,31.674368,-79.375023,49.413863&tab=1&proj=EPSG:4326&places=2">Tile Calculator</a> tool.
+  </p>

You might use https://github.com/kajic/leaflet-locationfilter to allow users select the bounding box. The Leaflet plugin is used at https://tyrasd.github.io/osm-qa-feeds/ (you have to search for a location first).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2390#discussion_r334802337
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20191015/09851eef/attachment.html>


More information about the rails-dev mailing list