jncc / jncc-website

The JNCC website. Redesigned in 2018 by Carbon Six Digital.
MIT License
0 stars 1 forks source link

Alternative URL for embedded dynamic maps #35

Closed ulric-wilson closed 5 years ago

ulric-wilson commented 5 years ago

Project code For time recording please use P0350 MPA Data Access and Management.

Some pages in current JNCC website have an embedded map that is also hyperlinked to the mapper page with the same view/layers selected - see http://jncc.defra.gov.uk/page-6536 and a similar requirement will be needed on new JNCC website. Ultimately, this will come from Geoserver when the new MPA mapper is deployed but there will be a period when the new JNCC website in Umbraco is live and the old MPA mapper (set up by Felix as a standalone website) will be embedded in an iframe.

Tasks

felixMasonJncc commented 5 years ago

WRT your first question - yes. The only changes to the code were styling changes. The proxy handler remains unafected. Eg this would work from the emodnet site:

"\< img src="https://mapper.emodnet-seabedhabitats.eu/proxyhandler.ashx?mapInstance=MESHAtlanticMap_&LAYERS=EUSMCONF%2CEUSM2016&FORMAT=image%2Fpng&TRANSPARENT=true&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A900913&BBOX=-5213589.6467119,3950705.1088489,4311075.5721413,9799055.0159566&WIDTH=1947&HEIGHT=1195">"

LynnHeeley commented 5 years ago

-can embed image (Umbraco yes) - complete. -load iframe with custom set of layers as part of request

jonparsonsjncc commented 5 years ago

liaise with Graeme Duncan - marine - to find out who to ask are all instances of mapserver now ready to be served by geoserver

jonparsonsjncc commented 5 years ago

Meeting held with Graeme and Hugh

summary email below with outstanding tasks

Hi Hugh, Graeme

To summarise our discussion today and the tasks identified

Task - The current geo server is accessed through ows.emodnet-seabedhabitats.eu needs a new corporate, non-project specific URL creating

Task – The new mapper.mpa.jncc.gov.uk system needs to be configured to use the new https://ows.jncc.gov.uk domain name to access the data

Task – The mapper.mpa.jncc.gov.uk system would benefit from a robots.txt file being added which will block search spiders from indexing the pages on the server

Task – New iframe map page to be created on the http://edit-website (soon to be live version of the JNCC website)

Task – All pages requiring an embedded map image need to be identified

Task – Unique map image embed code and linking URL to iframe page (with parameters for specific options) to be created for each of the individual pages

Task – Embed code to be content administered to each of the pages on the http://edit-website (soon to be live version of the JNCC website)

Note:

The existing iframe page on the root of the beta site http://beta-website.jncc.gov.uk/resource-redirector/mpa-mapper/ can be passed a URL parameter in this format http://beta-website.jncc.gov.uk/resource-redirector/mpa-mapper/?zoom=7&center=-4.826,54.559&layerIds=17,18,19&baseLayerId=-3&activeFilters= to change the display of the map

I have also created another iframe this for the new mapper http://beta-website.jncc.gov.uk/resource-redirector/mpa-mapper-new Which can also be passed a parameter http://beta-website.jncc.gov.uk/resource-redirector/mpa-mapper-new/?zoom=6&center=-3.814,48.240&layerIds=67,47&baseLayerId=-2&activeFilters= but the new mapping system has an issue at present and doesn’t display layers correctly

Thanks both for your time in bringing me up to speed – much appreciated

Let me know how you get on with the tasks

Jon

jonparsonsjncc commented 5 years ago

Hi @ulric-wilson it would be good to confirm the location in the new JNCC website for iframe pages My suggestion would be /iframe just to keep them tidy in one place and away from the root Please advise

Resolved - will be using /i/

jonparsonsjncc commented 5 years ago

Hi @mattdebont Could you let me know if you are ok to create a robots txt file for this domain https://mapper.mpa.jncc.gov.uk/ a help file here on best format https://www.hostinger.co.uk/tutorials/website/how-to-block-search-engines-using-robotstxt

also could you advise if it is possible to add no index to the page see below https://support.google.com/webmasters/answer/93710?hl=en

thanks

jonparsonsjncc commented 5 years ago

Hi @ulric-wilson There are two issues highlighted by Graeme on the MPA mapper

"The iframe is spilling off the bottom of the page"

"The permalink functionality isn’t working, as the permalink generates the link from the domain of the iframe content not the parent window. The “ifp” javascript fix implemented on the EMODnet Seabed Habitats Iframe page needs to be implemented here. Ulric and/or Paul should know what to do here I think."

Could you please advise on action to take

thanks

jonparsonsjncc commented 5 years ago

Diagram of the whole process provided by Graeme

MPA_dependencies (002).png