Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port two blog posts from opencitiesproject.org including interactive maps #73

Open
vdeparday opened this issue Mar 16, 2016 · 16 comments
Open
Assignees

Comments

@vdeparday
Copy link
Contributor

We need to move these two blog posts, keeping the maps:

http://www.opencitiesproject.org/casestudy/health/
http://www.opencitiesproject.org/casestudy/schools/

@apercas
Copy link
Contributor

apercas commented Mar 16, 2016

Hi, I think that the best idea to achieve that is to add them as embed (maybe inside an iframe) in each post. Please, tell us if you need some help with that.

@shanikadhettige
Copy link
Contributor

@apercas I tried to add an iframe linking to the page by editing the html but it didn't work. From what I've read on the WP support pages it seems like the platform "kills" iframe unless you use a plugin. I also wasn't sure if there was at least a way to upload the .KML files as downloadable? Then we could at least upload an image of the map even if we can't put in the interactive one.

@vdeparday Did you want these as News or as Resources? The paragraphs are currently sitting as draft News posts until this is sorted but I think they might be better suited as Resources.
Also, where are the original interactive maps hosted?

@apercas
Copy link
Contributor

apercas commented Mar 31, 2016

@shanikadhettige That's weird, we've added several iframes to posts in WordPress. I've posted a demo here: http://opendri.simbiotica.es/iframe-example/

Hope this is good enough (we can change the size of the box, it's just an example).

@shanikadhettige
Copy link
Contributor

shanikadhettige commented Jul 20, 2016

Hi @apercas,

@vdeparday thinks it will look better to migrate the opencities content without using an iframe as it still looks somewhat messy and we will have more interactive content like this in the future. Is there a way we can use JavaScript or something else to just embed the interactive map into a blog post and add a download button for the zipped shapefiles and the automatically generated export from OSM?

http://www.opencitiesproject.org/casestudy/health/

We are flexible with posting this content either as news or within a project.

@shanikadhettige
Copy link
Contributor

@apercas

@apercas
Copy link
Contributor

apercas commented Aug 17, 2016

In order to doing so we'll need the JS libraries they're using and the URL of the data the map is being fed from. Of course you can still add a link to the map or the downloadable content if you don't want an iframe.

@apercas apercas assigned shanikadhettige and unassigned apercas Aug 17, 2016
@vdeparday
Copy link
Contributor Author

It should all be on there: https://github.com/OpenCitiesProject/OpenCitiesProject.github.io but I can dig a bit more

@tiagojsag
Copy link

Hi @vdeparday

Is this discussion still relevant?

thanks

@tiagojsag
Copy link

http://mapbox-for-wordpress.stephanemartinw.com <- potentially relevant

@tiagojsag
Copy link

@tiagojsag
Copy link

tiagojsag commented Aug 9, 2017

We used a different plugin for this, which embeds layers from MapBox directly.

you can use the following shortcode to embed a map on a page:

[mapbox layers="gfdrr.map-wv1c9ry4,gfdrr.kathmandu-health"]

The result will be the top map on https://dev-gfdrr-opendri.pantheonsite.io/project/uganda/

more info on the available configuration options: https://wordpress.org/plugins/mapbox/

@vdeparday
Copy link
Contributor Author

That looks much better thanks ! If you look on here: http://www.opencitiesproject.org/casestudy/health/ We also added a little bit of JS to enable a download of the data. What would be the easiest way to do that on the new website ?

@tiagojsag
Copy link

I would suggest adding those links to the body of the Wordpress page itself.

@vdeparday
Copy link
Contributor Author

Actually , I just noticed that when zooming in on the new one, the icons dissappears (no more health center) when they stay on the original page. It looks like it may be related to a minimum zoom level but I am not sure, could you have a quick look into it? Thanks

@vdeparday vdeparday reopened this Aug 9, 2017
@tiagojsag
Copy link

@vdeparday we may be able to limit that from MapBox's side. Would it be possible for you to give me access to that MapBox account?

Thanks

@tiagojsag
Copy link

As agreed, we developed a plugin which allows integrating the existing Mapbox maps into the OpenDRI site.

You can find usage instructions here:

https://github.com/GFDRR/opendri-website/blob/master/wp-content/plugins/mapbox-simple/README.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants