Closed hollburg closed 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; }
der Code oben müsste zur Problemlösung reichen
fixed