[GeoNode-devel] MapQuest has discontinued direct tile access

Dimitris Karakostis karakostis.dimitris at gmail.com
Tue Jul 12 08:31:22 PDT 2016


I also followed the guidelines provided here:
http://docs.geonode.org/en/master/tutorials/advanced/geonode_production/production.html#production
and based on the solution provided in this issue:
https://github.com/MapStory/mapstory/issues/933
I tried with no success to set MapBox with an APIKey.

MAP_BOX_API_KEY = "my_api_key"
MAP_BASELAYERS = [...,{
    "source": {"ptype": "gxp_mapboxsource", "apiKey": MAP_BOX_API_KEY},
    'args': ['Satellite Imagery'],
    "name": "geography-class",
    "title": "Satellite MapBox",
    "fixed": True,
    "visibility": False,
    "group":"background"
}
]

Do I set some parameter wrong?

On Tue, Jul 12, 2016 at 4:49 PM, Bart van den Eijnden <
bartvde at boundlessgeo.com> wrote:

> This will not work. GXP would need to be modified as well, but there is no
> way to do so since MapQuest only supports using a (closed) Leaflet plugin.
> There doesn’t seem to be an open API.
>
> Best regards,
> Bart
>
> On 12 Jul 2016, at 16:46, Eugenio Trumpy <frippe12573 at hotmail.com> wrote:
>
> Hi,
>
> I tried to arrange (and test) the config file local_setting following the
> guide:
>
> http://docs.geonode.org/en/master/tutorials/advanced/geonode_production/production.html#production
>
> after to have got the apikey from MapQuest.
>
> However, it doesn't work...
>
> Am I wrong in the local_setting?
> I modified as follow:
>
> MAPQUEST_API_KEY="my_apikey"
>
> MAP_BASELAYERS = [{
>     "source": {"ptype": "gxp_olsource"},
>     "type": "OpenLayers.Layer",
>     "args": ["No background"],
>     "visibility": False,
>     "fixed": True,
>     "group":"background"
> }, {
>     "source": {"ptype": "gxp_osmsource"},
>     "type": "OpenLayers.Layer.OSM",
>     "name": "mapnik",
>     "visibility": False,
>     "fixed": True,
>     "group": "background"
> },# {
>    # "source": {
>    #      "ptype": "gxp_mapquestsource",
>    #      "apiKey":MAPQUEST_API_KEY
>    #      },
>    # "name": "osm",
>    # "group": "background",
>    # "visibility": True,
>    # "fixed":True
> #}, {
>    # "source": {
>    #      "ptype": "gxp_mapquestsource",
>    #      "apiKey":MAPQUEST_API_KEY
>    #      },
>    # "name": "naip",
>    # "group": "background",
>    # "visibility": False,
>    # "fixed":True
> #},
> {
>     "source": {"ptype": "gxp_mapboxsource"},
> }]
>
>
> E.
>
>
>
> ------------------------------
> *Da:* Bart van den Eijnden <bartvde at boundlessgeo.com>
> *Inviato:* martedì 12 luglio 2016 11.55
> *A:* Simone Dalmasso
> *Cc:* Eugenio Trumpy; Dimitris Karakostis; geonode-devel
> *Oggetto:* Re: [GeoNode-devel] MapQuest has discontinued direct tile
> access
>
> It seems like that, unless MapQuest changes something but it doesn’t seem
> they have any intention to do so given our communication with them so far.
>
> Bart
>
> On 12 Jul 2016, at 11:50, Simone Dalmasso <simone.dalmasso at gmail.com>
> wrote:
>
> Thanks Bart,
> interesting, so our gxp based viewers are unable to show mapquest tiles
> anymore....
>
> 2016-07-12 11:47 GMT+02:00 Bart van den Eijnden <bartvde at boundlessgeo.com>
> :
>
>> Please note there doesn’t seem to be a legal way currently to do so, only
>> for Leaflet:
>>
>> https://github.com/openlayers/ol3/issues/5484#issuecomment-231988134
>>
>> Best regards,
>> Bart
>>
>> On 12 Jul 2016, at 11:45, Simone Dalmasso <simone.dalmasso at gmail.com>
>> wrote:
>>
>> Well everyone is still free to make their own mapquest purchase plans and
>> add it to geonode, like bing we would only comment out the code.
>>
>> 2016-07-12 11:41 GMT+02:00 Eugenio Trumpy <frippe12573 at hotmail.com>:
>>
>>> Hi, what about to use this workaround (at least temporary):
>>>
>>>
>>> http://docs.geonode.org/en/master/tutorials/advanced/geonode_production/production.html#production
>>>
>>> to set apiKey after a registration to mapquest? They allow 15000
>>> transaction for free...
>>> actually I don't know if those are enough...
>>>
>>> E.
>>>
>>>
>>> ------------------------------
>>> *Da:* geonode-devel <geonode-devel-bounces at lists.osgeo.org> per conto
>>> di Simone Dalmasso <simone.dalmasso at gmail.com>
>>> *Inviato:* martedì 12 luglio 2016 11.00
>>> *A:* Dimitris Karakostis
>>> *Cc:* geonode-devel
>>> *Oggetto:* Re: [GeoNode-devel] MapQuest has discontinued direct tile
>>> access
>>>
>>> Hi, yes I think we have to remove those layers from base maps.
>>>
>>> 2016-07-12 10:49 GMT+02:00 Dimitris Karakostis <
>>> karakostis.dimitris at gmail.com>:
>>>
>>>>
>>>>
>>>> As of July 11 MapQuest has discontinued direct tile access.
>>>> More on the matter here:
>>>>
>>>> http://devblog.mapquest.com/2016/06/15/modernization-of-mapquest-results-in-changes-to-open-tile-access/
>>>>
>>>> Example of broken baselayer in Geonode Demo page:
>>>> http://demo.geonode.org/layers/geonode%3Aentidad
>>>>
>>>>
>>>> Dimitris
>>>>
>>>> _______________________________________________
>>>> geonode-devel mailing list
>>>> geonode-devel at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/geonode-devel
>>>>
>>>>
>>>
>>>
>>> --
>>> Simone
>>>
>>
>>
>>
>> --
>> Simone
>> _______________________________________________
>> geonode-devel mailing list
>> geonode-devel at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/geonode-devel
>>
>>
>>
>
>
> --
> Simone
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20160712/b5622cbc/attachment-0001.html>


More information about the geonode-devel mailing list