route360 / r360-demo

Demo Application for the Route 360 API
1 stars 4 forks source link

US Service needs to distinguish between tiles. Using the demo only works in Northeast #10

Closed hollburg closed 8 years ago

hollburg commented 8 years ago

function setServiceUrl() {

        var lat = sourceMarker.getLatLng().lat;

        var lng = sourceMarker.getLatLng().lng;

        var context = "";

        if ( lng <= -100 && lat <= 36 ) context = 'southwest';

        else if ( lng <= -100 && lat >= 36 ) context = 'northwest';

        else if ( lng >= -100 && lat >= 36 ) context = 'northeast';

        else if ( lng >= -100 && lat <= 36 ) context = 'southeast';

        else 

            return false;

        r360.config.serviceUrl = 'https://service.route360.net/na_'+context+'/';

        return true;
}
hollburg commented 8 years ago

der Code oben müsste zur Problemlösung reichen

gerbsen commented 8 years ago

fixed