Announcing the winners & finalists of the Dataiku Frontrunner Awards 2021! Read their inspiring stories

Is there an alternative to MapQuest tiles?

Solved!
UserBird
Dataiker
Dataiker
Is there an alternative to MapQuest tiles?
I was following a tutorial on Drawing the San Francisco Crime Map, and the output for the web app is displaying that MapQuest discontinued direct tile access. Is there an alternative already in place for this?
1 Solution
jrouquie
Dataiker Alumni

Yes, Mapbox should work, and should be the default in a soon to be released new version of DSS.



You can also register an API key on Mapquest and use this template:



in the html tab of the webapp:




<script src="https://www.mapquestapi.com/sdk/leaflet/v2.2/mq-map.js?key=YOUR_MAPQUEST_KEY"></script>


in the JS tab:




// instead of
//var map = ...
// (...)
//map.addLayer(omq);
// use:

var map = L.map('map', {
layers: MQ.mapLayer(),
center: [ 42, 2 ],
zoom: 13,
opacity: 0.5
});


 

View solution in original post

2 Replies
jrouquie
Dataiker Alumni

Yes, Mapbox should work, and should be the default in a soon to be released new version of DSS.



You can also register an API key on Mapquest and use this template:



in the html tab of the webapp:




<script src="https://www.mapquestapi.com/sdk/leaflet/v2.2/mq-map.js?key=YOUR_MAPQUEST_KEY"></script>


in the JS tab:




// instead of
//var map = ...
// (...)
//map.addLayer(omq);
// use:

var map = L.map('map', {
layers: MQ.mapLayer(),
center: [ 42, 2 ],
zoom: 13,
opacity: 0.5
});


 

View solution in original post

UserBird
Dataiker
Dataiker
Author
Thank you! It worked perfectly 🙂
0 Kudos
Labels (3)
A banner prompting to get Dataiku DSS