Problem migrating to MQ Leaflet plugin from direct tile access

4 posts / 0 new
Last post
egmobile
Problem migrating to MQ Leaflet plugin from direct tile access

Dear Sirs, we saw yesterday that direct tile access was discontinued! We have now to go back and update all our apps for both iOS and Android versions. This is really amazing. The biggest problem is that we went back and followed the guidelines but nothing worked. We are using Leaflet plugin 0.7.3 and cordova 4.1.1 for iOS. Our code looked like this:

var map = new L.map('map',{

        zoomControl: false,
        attributionControl: false
    });

var ter = new L.tileLayer('http://otile1.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpeg',{
            attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
        });

ter.addTo(map);

map.addControl(new L.Control.Layers( { 'Terrain': ter}, {}));

 

We just changed it to:

var map = new L.map('map',{

        zoomControl: false,
        attributionControl: false
    });

MQ.MapLayer.addTo(map);

map.addControl(new L.Control.Layers( { 'Terrain': ter}, {}));

But the apps gets stucked when we select the map button. We have included in the start html the links to leaflet js css amd map-quest js with are API key set.

Please provide us with a solution asap, since our apps are now off sale.

Thanks in advance,

--Dimitris


MQBrianCoakley
The tileLayer above is using
The tileLayer above is using direct tile access which is no longer offered. You can change that to use the MQ.mapLayer() as shown here.

egmobile
Problem migrating to MQ Leaflet plugin in Cordova

It seems that the proposed solution works only when called from a desktop computer and not from an android or ios appliance (with internet access). We tried all source of solutions but none worked. Unfortunately, we had to change the maptile source.

Regards,

 

--Dimitris


AhmadKhattabw
Hey Dimitris, which maptile

Hey Dimitris, which maptile source did you end up getting? did it support Flex or Flash ?