Re: geonode-devel Digest, Vol 18, Issue 22

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: geonode-devel Digest, Vol 18, Issue 22

Thomas Gertin-2
I'm having trouble switching the basemap to MapBox tiles.

@ Daniel Berry If the ability to add MapBox tiles was committed in Master, does this mean it is available when I install GeoNode following the instructions on the main GeoNode site? (sudo add-apt-repository ppa:geonode/stable)

If I already have GeoNode 2.4 installed, how can I get the new master version?

I tried switching out the basemap before, but I could never get it to work; but now with MapQuest disappearing I really need to.

Thanks,

Tom

On Tue, Jul 12, 2016 at 12:17 PM, <[hidden email]> wrote:
Send geonode-devel mailing list submissions to
        [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.osgeo.org/mailman/listinfo/geonode-devel
or, via email, send a message with subject or body 'help' to
        [hidden email]

You can reach the person managing the list at
        [hidden email]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of geonode-devel digest..."


Today's Topics:

   1. Re: MapQuest has discontinued direct tile access
      (Bart van den Eijnden)
   2. Re: MapQuest has discontinued direct tile access (Daniel Berry)


----------------------------------------------------------------------

Message: 1
Date: Tue, 12 Jul 2016 17:34:06 +0200
From: Bart van den Eijnden <[hidden email]>
To: Dimitris Karakostis <[hidden email]>
Cc: Eugenio Trumpy <[hidden email]>, Simone Dalmasso
        <[hidden email]>, geonode-devel
        <[hidden email]>
Subject: Re: [GeoNode-devel] MapQuest has discontinued direct tile
        access
Message-ID: <[hidden email]>
Content-Type: text/plain; charset="utf-8"

There is no apiKey param for MapBox sources in GXP, the MapBox source in GXP uses TMS access but this will likely only work for unprotected content:

https://github.com/boundlessgeo/gxp/blob/master/src/script/plugins/MapBoxSource.js <https://github.com/boundlessgeo/gxp/blob/master/src/script/plugins/MapBoxSource.js>

Best regards,
Bart

> On 12 Jul 2016, at 17:31, Dimitris Karakostis <[hidden email]> wrote:
>
> I also followed the guidelines provided here: http://docs.geonode.org/en/master/tutorials/advanced/geonode_production/production.html#production <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 <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 <[hidden email] <mailto:[hidden email]>> 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 <[hidden email] <mailto:[hidden email]>> 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 <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 <[hidden email] <mailto:[hidden email]>>
>> 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 <[hidden email] <mailto:[hidden email]>> 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 <[hidden email] <mailto:[hidden email]>>:
>>> 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 <https://github.com/openlayers/ol3/issues/5484#issuecomment-231988134>
>>>
>>> Best regards,
>>> Bart
>>>
>>>> On 12 Jul 2016, at 11:45, Simone Dalmasso <[hidden email] <mailto:[hidden email]>> 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 <[hidden email] <mailto:[hidden email]>>:
>>>> Hi, what about to use this workaround (at least temporary):
>>>>
>>>> http://docs.geonode.org/en/master/tutorials/advanced/geonode_production/production.html#production <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 <[hidden email] <mailto:[hidden email]>> per conto di Simone Dalmasso <[hidden email] <mailto:[hidden email]>>
>>>> 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 <[hidden email] <mailto:[hidden email]>>:
>>>>
>>>>
>>>> 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/ <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 <http://demo.geonode.org/layers/geonode%3Aentidad>
>>>>
>>>>
>>>> Dimitris
>>>>
>>>> _______________________________________________
>>>> geonode-devel mailing list
>>>> [hidden email] <mailto:[hidden email]>
>>>> http://lists.osgeo.org/mailman/listinfo/geonode-devel <http://lists.osgeo.org/mailman/listinfo/geonode-devel>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Simone
>>>>
>>>>
>>>>
>>>> --
>>>> Simone
>>>> _______________________________________________
>>>> geonode-devel mailing list
>>>> [hidden email] <mailto:[hidden email]>
>>>> http://lists.osgeo.org/mailman/listinfo/geonode-devel <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/f20fb7f9/attachment-0001.html>

------------------------------

Message: 2
Date: Tue, 12 Jul 2016 11:17:02 -0500
From: Daniel Berry <[hidden email]>
To: Dimitris Karakostis <[hidden email]>
Cc: Bart van den Eijnden <[hidden email]>, geonode-devel
        <[hidden email]>
Subject: Re: [GeoNode-devel] MapQuest has discontinued direct tile
        access
Message-ID:
        <CAHEpKprAo0fZnSTUNJcGjg-qjDZ_k+aZ6=[hidden email]>
Content-Type: text/plain; charset="utf-8"

Dimitris,

In GeoNode master Mapbox layer support has been added (XYZ). Mapbox layers
can be added by setting the value here
https://github.com/GeoNode/geonode/blob/master/geonode/settings.py#L623

README  -
https://github.com/GeoNode/geonode/blob/master/geonode/contrib/api_basemaps/README.md

Respectfully,

Daniel Berry



On Tue, Jul 12, 2016 at 10:31 AM, Dimitris Karakostis <
[hidden email]> wrote:

> 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 <
> [hidden email]> 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 <[hidden email]> 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 <[hidden email]>
>> *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 <[hidden email]>
>> 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 <[hidden email]
>> >:
>>
>>> 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 <[hidden email]>
>>> 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 <[hidden email]>:
>>>
>>>> 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 <[hidden email]> per conto
>>>> di Simone Dalmasso <[hidden email]>
>>>> *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 <
>>>> [hidden email]>:
>>>>
>>>>>
>>>>>
>>>>> 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
>>>>> [hidden email]
>>>>> http://lists.osgeo.org/mailman/listinfo/geonode-devel
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Simone
>>>>
>>>
>>>
>>>
>>> --
>>> Simone
>>> _______________________________________________
>>> geonode-devel mailing list
>>> [hidden email]
>>> http://lists.osgeo.org/mailman/listinfo/geonode-devel
>>>
>>>
>>>
>>
>>
>> --
>> Simone
>>
>>
>>
>
> _______________________________________________
> geonode-devel mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/geonode-devel
>
>


--
*Daniel Berry*
Senior Software Engineer | Boundless
[hidden email]
<a href="tel:512-468-3946" value="+15124683946">512-468-3946 (cell)
@boundlessgeo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20160712/7adf9980/attachment.html>

------------------------------

Subject: Digest Footer

_______________________________________________
geonode-devel mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/geonode-devel


------------------------------

End of geonode-devel Digest, Vol 18, Issue 22
*********************************************


_______________________________________________
geonode-devel mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/geonode-devel
Reply | Threaded
Open this post in threaded view
|

Re: geonode-devel Digest, Vol 18, Issue 22

Daniel Berry-2
Until you are ready to test out dev or the upcoming beta GeoNode 2.5 release you could replace https://github.com/GeoNode/geonode/blob/2.4.x/geonode/settings.py#L613 with the following:

MAPBOX_ACCESS_TOKEN = 'ADD_TOKEN_HERE'
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": True,
    "fixed": True,
    "group": "background"
}, {
    "source": {"ptype": "gxp_olsource"},
    "type": "OpenLayers.Layer.XYZ",
    "args": [
        'Mapbox Dark',
        ('<a href="https://api.mapbox.com/styles/v1/mapbox/streets-v9/tiles/256/${z}/">https://api.mapbox.com/styles/v1/mapbox/streets-v9/tiles/256/${z}/'
         '${x}/${y}?access_token=%s') % (MAPBOX_ACCESS_TOKEN),
        {
            'transitionEffect': 'resize',
            'attribution': '© Mapbox © OpenStreetMap'
        }
    ],
    "visibility": True,
    "fixed": True,
    "group": "background"
}]

Available styles:

replace the styles name in the xyz url, adjust the name and attribution.

streets-v9
    - Name: Mapbox Streetmap
    - Attribution: © Mapbox © OpenStreetMap

outdoors-v9
    - Name: Mapbox Outdoors
    - Attribution: © Mapbox © OpenStreetMap

dark-v9
    - Name: Mapbox Dark
    - Attribution: © Mapbox © OpenStreetMap

light-v9
    - Name: Mapbox Light
    - Attribution: © Mapbox © OpenStreetMap

satellite-v9
    - Name: Mapbox Satellite
    - Attribution: © Mapbox © DigitalGlobe

satellite-streets-v9
    - Name: Mapbox Satellite Streets
    - Attribution: © Mapbox © OpenStreetMap © DigitalGlobe

Hope that helps you out!

Dan


On Wed, Jul 13, 2016 at 2:24 PM, Thomas Gertin <[hidden email]> wrote:
I'm having trouble switching the basemap to MapBox tiles.

@ Daniel Berry If the ability to add MapBox tiles was committed in Master, does this mean it is available when I install GeoNode following the instructions on the main GeoNode site? (sudo add-apt-repository ppa:geonode/stable)

If I already have GeoNode 2.4 installed, how can I get the new master version?

I tried switching out the basemap before, but I could never get it to work; but now with MapQuest disappearing I really need to.

Thanks,

Tom

On Tue, Jul 12, 2016 at 12:17 PM, <[hidden email]> wrote:
Send geonode-devel mailing list submissions to
        [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.osgeo.org/mailman/listinfo/geonode-devel
or, via email, send a message with subject or body 'help' to
        [hidden email]

You can reach the person managing the list at
        [hidden email]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of geonode-devel digest..."


Today's Topics:

   1. Re: MapQuest has discontinued direct tile access
      (Bart van den Eijnden)
   2. Re: MapQuest has discontinued direct tile access (Daniel Berry)


----------------------------------------------------------------------

Message: 1
Date: Tue, 12 Jul 2016 17:34:06 +0200
From: Bart van den Eijnden <[hidden email]>
To: Dimitris Karakostis <[hidden email]>
Cc: Eugenio Trumpy <[hidden email]>, Simone Dalmasso
        <[hidden email]>, geonode-devel
        <[hidden email]>
Subject: Re: [GeoNode-devel] MapQuest has discontinued direct tile
        access
Message-ID: <[hidden email]>
Content-Type: text/plain; charset="utf-8"

There is no apiKey param for MapBox sources in GXP, the MapBox source in GXP uses TMS access but this will likely only work for unprotected content:

https://github.com/boundlessgeo/gxp/blob/master/src/script/plugins/MapBoxSource.js <https://github.com/boundlessgeo/gxp/blob/master/src/script/plugins/MapBoxSource.js>

Best regards,
Bart

> On 12 Jul 2016, at 17:31, Dimitris Karakostis <[hidden email]> wrote:
>
> I also followed the guidelines provided here: http://docs.geonode.org/en/master/tutorials/advanced/geonode_production/production.html#production <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 <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 <[hidden email] <mailto:[hidden email]>> 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 <[hidden email] <mailto:[hidden email]>> 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 <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 <[hidden email] <mailto:[hidden email]>>
>> 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 <[hidden email] <mailto:[hidden email]>> 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 <[hidden email] <mailto:[hidden email]>>:
>>> 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 <https://github.com/openlayers/ol3/issues/5484#issuecomment-231988134>
>>>
>>> Best regards,
>>> Bart
>>>
>>>> On 12 Jul 2016, at 11:45, Simone Dalmasso <[hidden email] <mailto:[hidden email]>> 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 <[hidden email] <mailto:[hidden email]>>:
>>>> Hi, what about to use this workaround (at least temporary):
>>>>
>>>> http://docs.geonode.org/en/master/tutorials/advanced/geonode_production/production.html#production <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 <[hidden email] <mailto:[hidden email]>> per conto di Simone Dalmasso <[hidden email] <mailto:[hidden email]>>
>>>> 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 <[hidden email] <mailto:[hidden email]>>:
>>>>
>>>>
>>>> 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/ <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 <http://demo.geonode.org/layers/geonode%3Aentidad>
>>>>
>>>>
>>>> Dimitris
>>>>
>>>> _______________________________________________
>>>> geonode-devel mailing list
>>>> [hidden email] <mailto:[hidden email]>
>>>> http://lists.osgeo.org/mailman/listinfo/geonode-devel <http://lists.osgeo.org/mailman/listinfo/geonode-devel>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Simone
>>>>
>>>>
>>>>
>>>> --
>>>> Simone
>>>> _______________________________________________
>>>> geonode-devel mailing list
>>>> [hidden email] <mailto:[hidden email]>
>>>> http://lists.osgeo.org/mailman/listinfo/geonode-devel <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/f20fb7f9/attachment-0001.html>

------------------------------

Message: 2
Date: Tue, 12 Jul 2016 11:17:02 -0500
From: Daniel Berry <[hidden email]>
To: Dimitris Karakostis <[hidden email]>
Cc: Bart van den Eijnden <[hidden email]>, geonode-devel
        <[hidden email]>
Subject: Re: [GeoNode-devel] MapQuest has discontinued direct tile
        access
Message-ID:
        <CAHEpKprAo0fZnSTUNJcGjg-qjDZ_k+aZ6=[hidden email]>
Content-Type: text/plain; charset="utf-8"

Dimitris,

In GeoNode master Mapbox layer support has been added (XYZ). Mapbox layers
can be added by setting the value here
https://github.com/GeoNode/geonode/blob/master/geonode/settings.py#L623

README  -
https://github.com/GeoNode/geonode/blob/master/geonode/contrib/api_basemaps/README.md

Respectfully,

Daniel Berry



On Tue, Jul 12, 2016 at 10:31 AM, Dimitris Karakostis <
[hidden email]> wrote:

> 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 <
> [hidden email]> 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 <[hidden email]> 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 <[hidden email]>
>> *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 <[hidden email]>
>> 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 <[hidden email]
>> >:
>>
>>> 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 <[hidden email]>
>>> 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 <[hidden email]>:
>>>
>>>> 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 <[hidden email]> per conto
>>>> di Simone Dalmasso <[hidden email]>
>>>> *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 <
>>>> [hidden email]>:
>>>>
>>>>>
>>>>>
>>>>> 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
>>>>> [hidden email]
>>>>> http://lists.osgeo.org/mailman/listinfo/geonode-devel
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Simone
>>>>
>>>
>>>
>>>
>>> --
>>> Simone
>>> _______________________________________________
>>> geonode-devel mailing list
>>> [hidden email]
>>> http://lists.osgeo.org/mailman/listinfo/geonode-devel
>>>
>>>
>>>
>>
>>
>> --
>> Simone
>>
>>
>>
>
> _______________________________________________
> geonode-devel mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/geonode-devel
>
>


--
*Daniel Berry*
Senior Software Engineer | Boundless
[hidden email]
<a href="tel:512-468-3946" value="+15124683946" target="_blank">512-468-3946 (cell)
@boundlessgeo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20160712/7adf9980/attachment.html>

------------------------------

Subject: Digest Footer

_______________________________________________
geonode-devel mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/geonode-devel


------------------------------

End of geonode-devel Digest, Vol 18, Issue 22
*********************************************


_______________________________________________
geonode-devel mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/geonode-devel




--
Daniel Berry
Senior Software Engineer | Boundless
512-468-3946 (cell)
@boundlessgeo



_______________________________________________
geonode-devel mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/geonode-devel