August 28Aug 28 Hi,Recently, the CARTO POSITRON map has started displaying "API KEY REQUIRED" as a watermark.I obtained an API key from the CARTO website, but I don't know how to enter it in TOOLS - OPTIONS - MAP KEYS.Do you think you could fix this?Thank you.
August 28Aug 28 49 minutes ago, jlheyden said:Recently, the CARTO POSITRON map has started displaying "API KEY REQUIRED" as a watermark.I obtained an API key from the CARTO website, but I don't know how to enter it in TOOLS - OPTIONS - MAP KEYS.Sigh ... yet another service ... ☹️I have to adapt the DGML file for this. Gimme a few days. Too busy with all kind of stuff now.Thanks for the information!Alex Alex' Projects: Little Navmap
August 29Aug 29 See my next post.Sorry, but I'll remove the Carto maps from the next release since I see no way to create a free account there. Only a trial is available.Alex Edited August 29Aug 29 by albar965 Alex' Projects: Little Navmap
August 29Aug 29 Author Thanks for your quick reply.Oh, that's a shame because I use it all the time.Thanks and good luck with everything.Jean-Luc
August 29Aug 29 Alright. I noticed that you do not need an account but can register for an API key for their basemaps right here: https://carto.com/basemaps/apikey/Replace the content of the two DGML files in your installation folder with the ones below.You'll find a new field "Carto API Key" in LNM options on page "Map Keys". Enter the API key from the email they sent you and restart LNM.Now go to LNM menu "Tools" -> "File and Directories" -> "Show Map Cache". This will open Windows Explorer or whatever file manager your OS uses. Delete the folders "cartolight" and "cartodark" to clear the map tiles with the watermark out.That's it. Next LNM version will include the change.Carto mentions phasing out these maps in the future, BTW. No idea how long they will be available.AlexCARTO Positron in .../Little Navmap/data/maps/earth/cartolight:<?xml version="1.0" encoding="UTF-8"?> <!-- This xml file is free software licensed under the GNU LGPL. You can find a copy of this license in LICENSE.txt in the top directory of the source code. --> <dgml xmlns="http://edu.kde.org/marble/dgml/2.0"> <document> <head> <!-- The license here applies to the actual map content, not this dgml file. See the license header above for the dgml file license --> <!-- The content that this license refers to is not distributed with this package --> <license short="© CARTO and OpenStreetMap contributors">Source: © OpenStreetMap contributors, License: Creative Commons Attribution-ShareAlike 2.0 (CC BY-SA)</license> <name>CARTO Positron</name> <target>earth</target> <theme>cartolight</theme> <icon pixmap="cartolight-preview.png"/> <shortcut>Ctrl+Alt+1</shortcut> <visible>true</visible> <description><![CDATA[<p>A <i>global roadmap</i> created by the OpenStreetMap (OSM) project.</p><p>OSM is an open community which creates free editable maps. The OSM data was rendered using Mapnik.</p>]]></description> <zoom> <minimum> 900 </minimum> <maximum> 3328 </maximum> <discrete> true </discrete> </zoom> <url href="https://www.carto.com">CARTO</url> </head> <map bgcolor="#000000"> <canvas/> <target/> <layer name="cartolight" backend="texture"> <!-- Tiles expire after 14 days --> <texture name="mapnik_data" expire="1209600"> <sourcedir format="PNG"> earth/cartolight </sourcedir> <tileSize width="256" height="256"/> <storageLayout levelZeroColumns="1" levelZeroRows="1" maximumTileLevel="19" mode="Custom"/> <projection name="Mercator"/> <downloadUrl protocol="https" host="basemaps.cartocdn.com" path="/rastertiles/light_all/{z}/{x}/{y}.png?key={Carto API Key}"/> <downloadPolicy usage="Browse" maximumConnections="2"/> </texture> </layer> </map> <settings> <property name="coordinate-grid"> <value>false</value> <available>true</available> </property> </settings> </document> </dgml>CARTO Dark Matter in .../Little Navmap/data/maps/earth/cartodark:<?xml version="1.0" encoding="UTF-8"?> <!-- This xml file is free software licensed under the GNU LGPL. You can find a copy of this license in LICENSE.txt in the top directory of the source code. --> <dgml xmlns="http://edu.kde.org/marble/dgml/2.0"> <document> <head> <!-- The license here applies to the actual map content, not this dgml file. See the license header above for the dgml file license --> <!-- The content that this license refers to is not distributed with this package --> <license short="© CARTO and OpenStreetMap contributors">Source: © OpenStreetMap contributors, License: Creative Commons Attribution-ShareAlike 2.0 (CC BY-SA)</license> <name>CARTO Dark Matter</name> <target>earth</target> <theme>cartodark</theme> <icon pixmap="cartodark-preview.png"/> <shortcut>Ctrl+Alt+0</shortcut> <visible>true</visible> <description><![CDATA[<p>A <i>global roadmap</i> created by the OpenStreetMap (OSM) project.</p><p>OSM is an open community which creates free editable maps. The OSM data was rendered using Mapnik.</p>]]></description> <zoom> <minimum> 900 </minimum> <maximum> 3328 </maximum> <discrete> true </discrete> </zoom> <url href="https://www.carto.com">CARTO</url> </head> <map bgcolor="#000000"> <canvas/> <target/> <layer name="cartodark" backend="texture"> <!-- Tiles expire after 14 days --> <texture name="mapnik_data" expire="1209600"> <sourcedir format="PNG"> earth/cartodark</sourcedir> <tileSize width="256" height="256"/> <storageLayout levelZeroColumns="1" levelZeroRows="1" maximumTileLevel="19" mode="Custom"/> <projection name="Mercator"/> <downloadUrl protocol="https" host="basemaps.cartocdn.com" path="/rastertiles/dark_all/{z}/{x}/{y}.png?key={Carto API Key}"/> <downloadPolicy usage="Browse" maximumConnections="2"/> </texture> </layer> </map> <settings> <property name="coordinate-grid"> <value>false</value> <available>true</available> </property> </settings> </document> </dgml> Alex' Projects: Little Navmap
August 30Aug 30 You can download the fixed maps here: https://k00.fr/lnmdownloadJust overwrite the folders "cartodark" and "cartolight" in ".../Little Navmap/data/maps/earth/".Alex Alex' Projects: Little Navmap
Create an account or sign in to comment