ovrdc / neohio-gis-2016-leaflet-jekyll-turf

Examples for the talk at the 2016 Northeast Ohio GIS Symposium on Leaflet, Jekyll and TurfJS.
https://ovrdc.github.io/neohio-gis-2016-leaflet-jekyll-turf/
1 stars 3 forks source link

creating a new map layout #2

Open ghost opened 6 years ago

ghost commented 6 years ago

Hello !,

I have things running as default from the repo, my idea now is to make my own maps, what would be a good way to start?, where should I start ?, for instance the maps show up on Cleveland along with the data using the map layout which has this script:



why does the script has the coordinates already? isnt better to put them in the post?, or would it be better to create another layout?, because I created another layout called newmap.html and used it in one of the posts but the map didnt load, hopefully you could point me in the right direction to start exploring this and create my new maps

reyemtm commented 6 years ago

I'm glad that you are finding this repo useful. I'm not sure I fully understand your question though. I tinkered with the notion of creating a map templates with jekyll several times - another repo that may be helpful

https://ovrdc.github.io/gis-tutorials/ or https://github.com/ovrdc/gis-tutorials and https://github.com/ovrdc/gis-tutorials

If you have more specific questions let me know.

Good luck!

On Wed, Aug 15, 2018 at 5:10 PM Rafael Guzman notifications@github.com wrote:

Hello !,

I have things running as default from the repo, my idea now is to make my own maps, what would be a good way to start?, where should I start ?, for instance the maps show up on Cleveland along with the data using the map layout which has this script:

why does the script has the coordinates already? isnt better to put them in the post?, or would it be better to create another layout?, because I created another layout called newmap.html and used it in one of the posts but the map didnt load, hopefully you could point me in the right direction to start exploring this and create my new maps

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ovrdc/neohio-gis-2016-leaflet-jekyll-turf/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AGGj0QI3sf6gBBfqp39bC89uw9GwvOfMks5uRI5DgaJpZM4V-0Wg .

-- Malcolm T Meyer

ghost commented 6 years ago

whats your opinion on working with jekyll and leaflet? is it clean ? do you have experience implementing leaflet in other ways?

reyemtm commented 6 years ago

What you will find is that for simple maps using something like Jekyll or now I am using Hexo works great for those simple maps. But once you get into complex projects, you're probably better off using a module based javascript system, or it seems many popular mapping projects use react with mapbox or leaflet.

That said - it is nice to have a template for the html structure. That is what I do now with Hexo. The map template is the html, then the reusable JS parts are put into modules that I import into a new map, outside of Hexo.

On Sun, Aug 19, 2018 at 10:26 PM Rafael Guzman notifications@github.com wrote:

is jekyll reliable to use it for leaflet maps?, could this work for real projects?, is it clear and clean ? or do you recommend other ways?, I just want to know before going further into this

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ovrdc/neohio-gis-2016-leaflet-jekyll-turf/issues/2#issuecomment-414180234, or mute the thread https://github.com/notifications/unsubscribe-auth/AGGj0Uq26pjUVegZ0v9eox_dXPCnY3Zpks5uSh5GgaJpZM4V-0Wg .

-- Malcolm T Meyer

reyemtm commented 6 years ago

I like either to use any css framework that has a built-in sidebar/off canvas element, like bootstrap or spectre css.

On Sun, Aug 19, 2018 at 11:03 PM Rafael Guzman notifications@github.com wrote:

could you help me out in telling me what could be a good structure to make a a proper gis jekyll site?, I'm using minimal mistakes gem theme and I want to incorporate leaflet into it, in your experience how these projects turned out?, do you recommend other ways also to make GIS web maps?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ovrdc/neohio-gis-2016-leaflet-jekyll-turf/issues/2#issuecomment-414184848, or mute the thread https://github.com/notifications/unsubscribe-auth/AGGj0ScYcc7MuaTkEsFswwAr3IJ38cC5ks5uSicYgaJpZM4V-0Wg .

-- Malcolm T Meyer

reyemtm commented 6 years ago

I set it as a default.

On Sun, Aug 19, 2018 at 11:20 PM Rafael Guzman notifications@github.com wrote:

why do you set the map.setview coordinates on the map templates or layouts ?, could this be set on the posts?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ovrdc/neohio-gis-2016-leaflet-jekyll-turf/issues/2#issuecomment-414186832, or mute the thread https://github.com/notifications/unsubscribe-auth/AGGj0fMqzN6-iqNJ2vbelR0tK2ykP7L9ks5uSisCgaJpZM4V-0Wg .

-- Malcolm T Meyer