[GeoNode-devel] geonode-devel Digest, Vol 18, Issue 22

Thomas Gertin tgertin at vt.edu
Wed Jul 13 12:24:04 PDT 2016


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, <geonode-devel-request at lists.osgeo.org>
wrote:

> Send geonode-devel mailing list submissions to
>         geonode-devel at lists.osgeo.org
>
> 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
>         geonode-devel-request at lists.osgeo.org
>
> You can reach the person managing the list at
>         geonode-devel-owner at lists.osgeo.org
>
> 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 <bartvde at boundlessgeo.com>
> To: Dimitris Karakostis <karakostis.dimitris at gmail.com>
> Cc: Eugenio Trumpy <frippe12573 at hotmail.com>, Simone Dalmasso
>         <simone.dalmasso at gmail.com>, geonode-devel
>         <geonode-devel at lists.osgeo.org>
> Subject: Re: [GeoNode-devel] MapQuest has discontinued direct tile
>         access
> Message-ID: <AD3CEE09-EB4D-47E2-9E2E-5D647729E658 at boundlessgeo.com>
> 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 <
> karakostis.dimitris at gmail.com> 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 <
> bartvde at boundlessgeo.com <mailto: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
> <mailto: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
> <
> 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 <mailto:
> 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
> <mailto: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 <mailto: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 <
> 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
> <mailto: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
> <mailto: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
> <
> 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 <mailto:
> geonode-devel-bounces at lists.osgeo.org>> per conto di Simone Dalmasso <
> simone.dalmasso at gmail.com <mailto: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 <mailto: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/
> <
> 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
> >>>> geonode-devel at lists.osgeo.org <mailto:geonode-devel at lists.osgeo.org>
> >>>> http://lists.osgeo.org/mailman/listinfo/geonode-devel <
> http://lists.osgeo.org/mailman/listinfo/geonode-devel>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> Simone
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> Simone
> >>>> _______________________________________________
> >>>> geonode-devel mailing list
> >>>> geonode-devel at lists.osgeo.org <mailto:geonode-devel at lists.osgeo.org>
> >>>> 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 <dberry at boundlessgeo.com>
> To: Dimitris Karakostis <karakostis.dimitris at gmail.com>
> Cc: Bart van den Eijnden <bartvde at boundlessgeo.com>, geonode-devel
>         <geonode-devel at lists.osgeo.org>
> Subject: Re: [GeoNode-devel] MapQuest has discontinued direct tile
>         access
> Message-ID:
>         <CAHEpKprAo0fZnSTUNJcGjg-qjDZ_k+aZ6=
> Wh4Vr-svtsHQP0sg at mail.gmail.com>
> 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 <
> karakostis.dimitris at gmail.com> 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 <
> > 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
> >>
> >>
> >>
> >
> > _______________________________________________
> > geonode-devel mailing list
> > geonode-devel at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/geonode-devel
> >
> >
>
>
> --
> *Daniel Berry*
> Senior Software Engineer | Boundless
> dberry at boundlessgeo.com
> 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
> geonode-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geonode-devel
>
>
> ------------------------------
>
> End of geonode-devel Digest, Vol 18, Issue 22
> *********************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20160713/e3aa7cf4/attachment-0001.html>


More information about the geonode-devel mailing list