Open-Historical-Map-Labs / openhistoricaltiles

First iteration of vector tiles from OHM Planet data
BSD 2-Clause "Simplified" License
3 stars 0 forks source link

Build Sample Page with Demo Timeline #33

Closed TheMapSmith closed 5 years ago

danrademacher commented 5 years ago

some notes on this:

  1. We agreed to purposely write this as a custom bit of code that can be wrapped as either a Leaflet plugin or MapboxGL control

  2. Xd is here: https://xd.adobe.com/view/bd75f395-6428-4b36-4885-fb71533dcff3-cb44/?fullscreen

  3. Caveat on Xd: For MVP, we're going to allow selection only based integer YEARS, and min and max can be selected here: image

  4. And to reiterate, for MVP the slider is operating only on the data contained in the vector tiles.

jeffreyameyer commented 5 years ago

all good

On Wed, Apr 24, 2019 at 2:25 PM Dan Rademacher notifications@github.com wrote:

some notes on this:

1.

We agreed to purposely write this as a custom bit of code that can be wrapped as either a Leaflet plugin or MapboxGL control 2.

Xd is here:

https://xd.adobe.com/view/bd75f395-6428-4b36-4885-fb71533dcff3-cb44/?fullscreen 3.

Caveat on Xd: For MVP, we're going to allow selection only based integer YEARS, and min and max can be selected here: [image: image] https://user-images.githubusercontent.com/1423200/56693245-d2404400-6698-11e9-8431-046f4c1188a1.png 4.

And to reiterate, for MVP the slider is operating only on the data contained in the vector tiles.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/OpenHistoricalMap/openhistoricaltiles/issues/33#issuecomment-486432779, or mute the thread https://github.com/notifications/unsubscribe-auth/AALM4ERXNTCM2TVR2GJYRZTPSDF3NANCNFSM4HIFLL6Q .

-- Jeff Meyer 206-676-2347 osm: Open Historical Map (OHM) http://wiki.openstreetmap.org/wiki/Open_Historical_Map / my OSM user page http://www.openstreetmap.org/user/jeffmeyer t: @OpenHistMap

gregallensworth commented 5 years ago

Initial demo, a first draft of the TimeSlider control for Mapbox GL JS API

https://openhistoricalmap.github.io/openhistoricaltiles/mbgl-control-timeslider/demo/ https://github.com/OpenHistoricalMap/openhistoricaltiles/tree/gh-pages/mbgl-control-timeslider

Immediate to-do items for myself:

jeffreyameyer commented 5 years ago

w00t!

On Thu, Apr 25, 2019 at 4:23 PM Greg Allensworth notifications@github.com wrote:

Initial demo, a first draft of the TimeSlider control for Mapbox GL JS API

https://openhistoricalmap.github.io/openhistoricaltiles/dateslider-mbgl/demo/

https://github.com/OpenHistoricalMap/openhistoricaltiles/tree/gh-pages/dateslider-mbgl

Immediate to-do items for myself:

-

rework color theme slightly

  • rework built-in color theme to a more neutral white BG and grey border, matching MBGL controls
    • then in demo/index.css add overrides, for a website using the widget to override these to the grey theme intended
  • add to this demo, a second panel for a Where Am I demonstrating the use of setDate()

  • second styling pass?

  • start on Leaflet version of this concept, for use with https://github.com/mapbox/mapbox-gl-leaflet

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/OpenHistoricalMap/openhistoricaltiles/issues/33#issuecomment-486872209, or mute the thread https://github.com/notifications/unsubscribe-auth/AALM4EQJZSBYGP7TZEHV2KDPSI4O3ANCNFSM4HIFLL6Q .

-- Jeff Meyer 206-676-2347 osm: Open Historical Map (OHM) http://wiki.openstreetmap.org/wiki/Open_Historical_Map / my OSM user page http://www.openstreetmap.org/user/jeffmeyer t: @OpenHistMap

gregallensworth commented 5 years ago

69df474 The logic in _applyDateFilterToLayers() has been reworked to truly filter by date instead of the overly complicated and insufficient filtering by OSM osm_id Much better!

gregallensworth commented 5 years ago

https://github.com/OpenHistoricalMap/openhistoricaltiles/tree/gh-pages/leaflet-control-mbgltimeslider https://openhistoricalmap.github.io/openhistoricaltiles/leaflet-control-mbgltimeslider/demo/

Leaflet adapter for the MBGL TimeSlider. The same way that L.mapboxGL is a thin wrapper that puts a MBGL map inside Leaflet (and thus requires the MBGL library to be loaded in SCRIPT/LINK tags), this L.Control.MBGLTimeSlider is a thin wrapper over the MBGL Time Slider (and thus requires the TimeSlider library in SCRIPT/LINK tags).

Still to do:

danrademacher commented 5 years ago

calling this done now that we're fully delving into better ways to manage dates.