[ckan-dev] Mapquest and recline_view

McDonaldR McDonaldR at angus.gov.uk
Thu Aug 18 09:35:36 UTC 2016


Actually, the latest version of CKAN on Github has fixed this already:

https://github.com/ckan/ckan/blob/5694d09546f875fc29e7dd541e3b77af5d145241/ckanext/reclineview/theme/public/vendor/recline/recline.js#L2301
Roll on the next release!


From: ckan-dev [mailto:ckan-dev-bounces at lists.okfn.org] On Behalf Of McDonaldR
Sent: 18 August 2016 10:31
To: 'CKAN Development Discussions'
Subject: Re: [ckan-dev] Mapquest and recline_view

Ah, yes, I see.

I set this in recline.js which works and I get the Stamen maps in my recline view Map.  Comment out the old lines //.

// var mapUrl = "//otile{s}-s.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png";
    var mapUrl = "//tile.stamen.com/terrain/{z}/{x}/{y}.png";

// var osmAttribution = 'Map data © 2011 OpenStreetMap contributors, Tiles Courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a> <img $
    var osmAttribution = 'Map tiles by Stamen Design, under CC-BY 3.0 Data by OpenStreetMap contributors';

// var bg = new L.TileLayer(mapUrl, {maxZoom: 18, attribution: osmAttribution ,subdomains: '1234'});
    var bg = new L.TileLayer(mapUrl, {maxZoom: 18, attribution: osmAttribution});

However, I guess these changes will be over written when you upgrade CKAN so these fixes should probably be sorted at source.

Ross

From: ckan-dev [mailto:ckan-dev-bounces at lists.okfn.org] On Behalf Of Bois Francois-Xavier
Sent: 18 August 2016 09:57
To: CKAN Development Discussions
Subject: Re: [ckan-dev] Mapquest and recline_view

Hi Ross,

In fact I do not use "spatial". The map view is in the recline_view.



On Thu, Aug 18, 2016 at 10:21 AM, McDonaldR <McDonaldR at angus.gov.uk<mailto:McDonaldR at angus.gov.uk>> wrote:
Hello

You can add the following lines to your development.ini or production.ini file and this will overrule any other settings you may have for background mapping:

ckanext.spatial.common_map.type = custom
ckanext.spatial.common_map.custom.url = http://tile.stamen.com/terrain/{z}/{x}/{y}.png<http://tile.stamen.com/terrain/%7Bz%7D/%7Bx%7D/%7By%7D.png>
ckanext.spatial.common_map.attribution = Map tiles by Stamen Design, under CC BY 3.0 Data by OpenStreetMap contributors.

From http://docs.ckan.org/projects/ckanext-spatial/en/latest/map-widgets.html#custom

Hope that helps

Ross

From: ckan-dev [mailto:ckan-dev-bounces at lists.okfn.org<mailto:ckan-dev-bounces at lists.okfn.org>] On Behalf Of Bois Francois-Xavier
Sent: 17 August 2016 17:45
To: ckan-dev at lists.okfn.org<mailto:ckan-dev at lists.okfn.org>
Subject: [ckan-dev] Mapquest and recline_view

Hi

I am quite new to CKAN and am wondering if it is possible to avoid the issue with the mapping (cf mapquest discontinued service).

I saw a reference to "//otile{s}-s.mqcdn.com/tiles/1.0.0/osm/{z}/{x}/{y}.png<http://s.mqcdn.com/tiles/1.0.0/osm/%7bz%7d/%7bx%7d/%7by%7d.png>" in ckanext/reclineview/theme/public/vendor/recline/recline.js but I do not know how I should modify this file.

Best

This message is strictly confidential. If you have received this in error, please inform the sender and remove it from your system. If received in error you may not copy, print, forward or use it or any attachment in any way. This message is not capable of creating a legal contract or a binding representation and does not represent the views of Angus Council. Emails may be monitored for security and network management reasons. Messages containing inappropriate content may be intercepted. Angus Council does not accept any liability for any harm that may be caused to the recipient system or data on it by this message or any attachment.

_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org<mailto:ckan-dev at lists.okfn.org>
https://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev



--
François-Xavier Bois
Kernix - 15 rue Cels - 75014 PARIS
Tel. +33 1 53 98 73 43

This message is strictly confidential. If you have received this in error, please inform the sender and remove it from your system. If received in error you may not copy, print, forward or use it or any attachment in any way. This message is not capable of creating a legal contract or a binding representation and does not represent the views of Angus Council. Emails may be monitored for security and network management reasons. Messages containing inappropriate content may be intercepted. Angus Council does not accept any liability for any harm that may be caused to the recipient system or data on it by this message or any attachment.

This message is strictly confidential. If you have received this in error, please inform the sender and remove it from your system. If received in error you may not copy, print, forward or use it or any attachment in any way. This message is not capable of creating a legal contract or a binding representation and does not represent the views of Angus Council. Emails may be monitored for security and network management reasons. Messages containing inappropriate content may be intercepted. Angus Council does not accept any liability for any harm that may be caused to the recipient system or data on it by this message or any attachment.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160818/53ca27e7/attachment-0003.html>


More information about the ckan-dev mailing list