-
Notifications
You must be signed in to change notification settings - Fork 1
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
Comments
Hi, I think that the best idea to achieve that is to add them as embed (maybe inside an |
@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. |
@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). |
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. |
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. |
It should all be on there: https://github.com/OpenCitiesProject/OpenCitiesProject.github.io but I can dig a bit more |
Hi @vdeparday Is this discussion still relevant? thanks |
http://mapbox-for-wordpress.stephanemartinw.com <- potentially relevant |
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:
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/ |
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 ? |
I would suggest adding those links to the body of the Wordpress page itself. |
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 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 |
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 |
We need to move these two blog posts, keeping the maps:
http://www.opencitiesproject.org/casestudy/health/
http://www.opencitiesproject.org/casestudy/schools/
The text was updated successfully, but these errors were encountered: