Completer URL

This commit is contained in:
Robin van der Linde 2022-07-12 07:42:26 +00:00 committed by GitHub
parent e01ad24bd2
commit a2a49d5d7d

View file

@ -84,7 +84,7 @@ export default class GeoJsonSource implements FeatureSourceForLayer, Tiled {
self.state.setData("loaded")
// TODO: move somewhere else, just for testing
// Check for maproulette data
if (url.startsWith("https://maproulette.org/api/v2/")) {
if (url.startsWith("https://maproulette.org/api/v2/tasks/box/")) {
console.log("MapRoulette data detected")
const data = json;
let maprouletteFeatures: any[] = [];