<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">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:<div class=""><br class=""></div><div class=""><a href="https://github.com/boundlessgeo/gxp/blob/master/src/script/plugins/MapBoxSource.js" class="">https://github.com/boundlessgeo/gxp/blob/master/src/script/plugins/MapBoxSource.js</a></div><div class=""><br class=""></div><div class="">Best regards,</div><div class="">Bart</div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On 12 Jul 2016, at 17:31, Dimitris Karakostis <<a href="mailto:karakostis.dimitris@gmail.com" class="">karakostis.dimitris@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">I also followed the guidelines provided here: <a href="http://docs.geonode.org/en/master/tutorials/advanced/geonode_production/production.html#production" target="_blank" style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px" class="">http://docs.geonode.org/en/master/tutorials/advanced/geonode_production/production.html#production</a><div class="">and based on the solution provided in this issue: <a href="https://github.com/MapStory/mapstory/issues/933" class="">https://github.com/MapStory/mapstory/issues/933</a></div><div class="">I tried with no success to set MapBox with an APIKey.</div><div class=""><br class=""></div><div class="">MAP_BOX_API_KEY = "my_api_key"<br class=""></div><div class="">MAP_BASELAYERS = [...,{<br class=""></div><div class="">    "source": {"ptype": "gxp_mapboxsource", "apiKey": MAP_BOX_API_KEY},</div><div class="">    'args': ['Satellite Imagery'],</div><div class="">    "name": "geography-class",</div><div class="">    "title": "Satellite MapBox",</div><div class="">    "fixed": True,</div><div class="">    "visibility": False,</div><div class="">    "group":"background"</div><div class="">}</div><div class="">]</div><div class=""><br class=""></div><div class="">Do I set some parameter wrong?</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Jul 12, 2016 at 4:49 PM, Bart van den Eijnden <span dir="ltr" class=""><<a href="mailto:bartvde@boundlessgeo.com" target="_blank" class="">bartvde@boundlessgeo.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">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.<div class=""><br class=""></div><div class="">Best regards,</div><div class="">Bart</div><div class=""><div class="h5"><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On 12 Jul 2016, at 16:46, Eugenio Trumpy <<a href="mailto:frippe12573@hotmail.com" target="_blank" class="">frippe12573@hotmail.com</a>> wrote:</div><br class=""><div class=""><div style="font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:12pt;background-color:rgb(255,255,255);font-family:Calibri,Arial,Helvetica,sans-serif" class=""><div style="margin-top:0px;margin-bottom:0px" class="">Hi,</div><div style="margin-top:0px;margin-bottom:0px" class=""><br class=""></div><div style="margin-top:0px;margin-bottom:0px" class="">I tried to arrange (and test) the config file local_setting following the guide: </div><div style="margin-top:0px;margin-bottom:0px" class=""><a href="http://docs.geonode.org/en/master/tutorials/advanced/geonode_production/production.html#production" target="_blank" class="">http://docs.geonode.org/en/master/tutorials/advanced/geonode_production/production.html#production</a></div><div style="margin-top:0px;margin-bottom:0px" class=""><br class=""></div><p style="margin-top:0px;margin-bottom:0px" class=""></p><div style="margin-top:0px;margin-bottom:0px" class="">after to have got the apikey from MapQuest.</div><div style="margin-top:0px;margin-bottom:0px" class=""><br class=""></div><div style="margin-top:0px;margin-bottom:0px" class="">However, it doesn't work...</div><div style="margin-top:0px;margin-bottom:0px" class=""><br class=""></div><div style="margin-top:0px;margin-bottom:0px" class="">Am I wrong in the local_setting?</div><div style="margin-top:0px;margin-bottom:0px" class="">I modified as follow:</div><p style="margin-top:0px;margin-bottom:0px" class=""></p><div class="">MAPQUEST_API_KEY="my_apikey"<br class=""><br class="">MAP_BASELAYERS = [{<br class="">    "source": {"ptype": "gxp_olsource"},<br class="">    "type": "OpenLayers.Layer",<br class="">    "args": ["No background"],<br class="">    "visibility": False,<br class="">    "fixed": True,<br class="">    "group":"background"<br class="">}, {<br class="">    "source": {"ptype": "gxp_osmsource"},<br class="">    "type": "OpenLayers.Layer.OSM",<br class="">    "name": "mapnik",<br class="">    "visibility": False,<br class="">    "fixed": True,<br class="">    "group": "background"<br class="">},# {<br class="">   # "source": {<br class="">   #      "ptype": "gxp_mapquestsource",<br class="">   #      "apiKey":MAPQUEST_API_KEY<br class="">   #      },<br class="">   # "name": "osm",<br class="">   # "group": "background",<br class="">   # "visibility": True,<br class="">   # "fixed":True<br class="">#}, {<br class="">   # "source": {<br class="">   #      "ptype": "gxp_mapquestsource",<br class="">   #      "apiKey":MAPQUEST_API_KEY<br class="">   #      },<br class="">   # "name": "naip",<br class="">   # "group": "background",<br class="">   # "visibility": False,<br class="">   # "fixed":True<br class="">#},<br class="">{<br class="">    "source": {"ptype": "gxp_mapboxsource"},<br class="">}]</div><br class=""><p style="margin-top:0px;margin-bottom:0px" class=""></p><div style="margin-top:0px;margin-bottom:0px" class=""><br class=""></div><div style="margin-top:0px;margin-bottom:0px" class="">E.<br class=""></div><div style="margin-top:0px;margin-bottom:0px" class=""><br class=""></div><br class=""><br class=""><div class=""><hr style="display:inline-block;width:1065.25px" class=""><div dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size:11pt" class=""><b class="">Da:</b><span class=""> </span>Bart van den Eijnden <<a href="mailto:bartvde@boundlessgeo.com" target="_blank" class="">bartvde@boundlessgeo.com</a>><br class=""><b class="">Inviato:</b><span class=""> </span>martedì 12 luglio 2016 11.55<br class=""><b class="">A:</b><span class=""> </span>Simone Dalmasso<br class=""><b class="">Cc:</b><span class=""> </span>Eugenio Trumpy; Dimitris Karakostis; geonode-devel<br class=""><b class="">Oggetto:</b><span class=""> </span>Re: [GeoNode-devel] MapQuest has discontinued direct tile access</font><div class=""> </div></div><div class="">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.<div class=""><br class=""></div><div class="">Bart</div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On 12 Jul 2016, at 11:50, Simone Dalmasso <<a href="mailto:simone.dalmasso@gmail.com" target="_blank" class="">simone.dalmasso@gmail.com</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class="">Thanks Bart,<div class="">interesting, so our gxp based viewers are unable to show mapquest tiles anymore....</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">2016-07-12 11:47 GMT+02:00 Bart van den Eijnden<span class=""> </span><span dir="ltr" class=""><<a href="mailto:bartvde@boundlessgeo.com" target="_blank" class="">bartvde@boundlessgeo.com</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Please note there doesn’t seem to be a legal way currently to do so, only for Leaflet:<div class=""><br class=""></div><div class=""><a href="https://github.com/openlayers/ol3/issues/5484#issuecomment-231988134" target="_blank" class="">https://github.com/openlayers/ol3/issues/5484#issuecomment-231988134</a></div><div class=""><br class=""></div><div class="">Best regards,</div><div class="">Bart<div class=""><div class=""><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On 12 Jul 2016, at 11:45, Simone Dalmasso <<a href="mailto:simone.dalmasso@gmail.com" target="_blank" class="">simone.dalmasso@gmail.com</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class="">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.</div><div class="gmail_extra"><br class=""><div class="gmail_quote">2016-07-12 11:41 GMT+02:00 Eugenio Trumpy<span class=""> </span><span dir="ltr" class=""><<a href="mailto:frippe12573@hotmail.com" target="_blank" class="">frippe12573@hotmail.com</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr" class=""><div style="font-size:12pt;background-color:rgb(255,255,255);font-family:Calibri,Arial,Helvetica,sans-serif" class=""><div style="margin-top:0px;margin-bottom:0px" class="">Hi, what about to use this workaround (at least temporary):</div><div style="margin-top:0px;margin-bottom:0px" class=""><br class=""></div><div style="margin-top:0px;margin-bottom:0px" class=""><a href="http://docs.geonode.org/en/master/tutorials/advanced/geonode_production/production.html#production" target="_blank" class="">http://docs.geonode.org/en/master/tutorials/advanced/geonode_production/production.html#production</a></div><div style="margin-top:0px;margin-bottom:0px" class=""><br class=""></div><div style="margin-top:0px;margin-bottom:0px" class="">to set apiKey after a registration to mapquest? They allow 15000 transaction for free...</div><div style="margin-top:0px;margin-bottom:0px" class="">actually I don't know if those are enough...</div><div style="margin-top:0px;margin-bottom:0px" class=""><br class=""></div><div style="margin-top:0px;margin-bottom:0px" class="">E.<br class=""></div><br class=""><br class=""><div class=""><hr style="display:inline-block;width:1017.359375px" class=""><div dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size:11pt" class=""><b class="">Da:</b><span class=""> </span>geonode-devel <<a href="mailto:geonode-devel-bounces@lists.osgeo.org" target="_blank" class="">geonode-devel-bounces@lists.osgeo.org</a>> per conto di Simone Dalmasso <<a href="mailto:simone.dalmasso@gmail.com" target="_blank" class="">simone.dalmasso@gmail.com</a>><br class=""><b class="">Inviato:</b><span class=""> </span>martedì 12 luglio 2016 11.00<br class=""><b class="">A:</b><span class=""> </span>Dimitris Karakostis<br class=""><b class="">Cc:</b><span class=""> </span>geonode-devel<br class=""><b class="">Oggetto:</b><span class=""> </span>Re: [GeoNode-devel] MapQuest has discontinued direct tile access</font><div class=""> </div></div><div class=""><div class=""><div class=""><div dir="ltr" class="">Hi, yes I think we have to remove those layers from base maps.</div><div class="gmail_extra"><br class=""><div class="gmail_quote">2016-07-12 10:49 GMT+02:00 Dimitris Karakostis<span class=""> </span><span dir="ltr" class=""><<a href="mailto:karakostis.dimitris@gmail.com" target="_blank" class="">karakostis.dimitris@gmail.com</a>></span>:<br class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr" class=""><br class=""><div class=""><br class=""></div><div class="">As of July 11 MapQuest has discontinued direct tile access.</div><div class="">More on the matter here: </div><div class=""><a href="http://devblog.mapquest.com/2016/06/15/modernization-of-mapquest-results-in-changes-to-open-tile-access/" target="_blank" class="">http://devblog.mapquest.com/2016/06/15/modernization-of-mapquest-results-in-changes-to-open-tile-access/</a><br class=""></div><div class=""><br class=""></div><div class="">Example of broken baselayer in Geonode Demo page:</div><div class=""><a href="http://demo.geonode.org/layers/geonode%3Aentidad" target="_blank" class="">http://demo.geonode.org/layers/geonode%3Aentidad</a><span class=""><font color="#888888" class=""><br class=""></font></span></div><span class=""><font color="#888888" class=""><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Dimitris</div></font></span></div><br class="">_______________________________________________<br class="">geonode-devel mailing list<br class=""><a href="mailto:geonode-devel@lists.osgeo.org" target="_blank" class="">geonode-devel@lists.osgeo.org</a><br class=""><a href="http://lists.osgeo.org/mailman/listinfo/geonode-devel" rel="noreferrer" target="_blank" class="">http://lists.osgeo.org/mailman/listinfo/geonode-devel</a><br class=""><br class=""></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>--<span class=""> </span><br class=""><div class="">Simone </div></div></div></div></div></div></div></div></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>--<span class=""> </span><br class=""><div class="">Simone </div></div>_______________________________________________<br class="">geonode-devel mailing list<br class=""><a href="mailto:geonode-devel@lists.osgeo.org" target="_blank" class="">geonode-devel@lists.osgeo.org</a><br class=""><a href="http://lists.osgeo.org/mailman/listinfo/geonode-devel" target="_blank" class="">http://lists.osgeo.org/mailman/listinfo/geonode-devel</a><br class=""></div></blockquote></div><br class=""></div></div></div></div></div></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>--<span class=""> </span><br class=""><div class="">Simone </div></div></div></blockquote></div></div></div></div></div></div></blockquote></div><br class=""></div></div></div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></body></html>