stephangeorg / leaflet-routeboxer Goto Github PK
View Code? Open in Web Editor NEWGoogle RouteBoxer implementation for Leaflet
Home Page: https://stephangeorg.github.io/leaflet-routeboxer/example/
Google RouteBoxer implementation for Leaflet
Home Page: https://stephangeorg.github.io/leaflet-routeboxer/example/
Dear Stephan,
I was able to successfully integrate a routeboxer into my application. Now I have a question: I'm not able to remove a previously drawn routebox from the map. I could not find any hints in the code. How can I do this?
Any help is appreciated, thanks a lot...
Guido Hollenstein CH
I have this next example.
var distance = 0.1;
var route = [
[50.5, 30.5],
[50.4, 30.6],
[50.3, 30.7]
];
var boxes = L.RouteBoxer.box(route, distance);
When I run the example the console display the error.
Dear Stephan,
Quellübergreifende (Cross-Origin) Anfrage blockiert: Die Gleiche-Quelle-Regel verbietet das Lesen der externen Ressource auf http://router.project-osrm.org/viaroute?&loc=53.553406,9.992196&loc=48.139126,11.580186&instructions=false&alt=false. (Grund: CORS-Kopfzeile 'Access-Control-Allow-Origin' fehlt).(unbekannt)
Object { readyState: 0, getResponseHeader: .ajax/v.getResponseHeader(), getAllResponseHeaders: .ajax/v.getAllResponseHeaders(), setRequestHeader: .ajax/v.setRequestHeader(), overrideMimeType: .ajax/v.overrideMimeType(), statusCode: .ajax/v.statusCode(), abort: .ajax/v.abort(), state: .Deferred/d.state(), always: .Deferred/d.always(), then: .Deferred/d.then(), 11 weitere… }app.js:96:5
This error message I can see in the console. I don't now why? Could you pls. help me or correct this link. The same error message I have if I download all files.
Guido
Hi Stephan,
Can I use mapbox router instead of osrm router? If yes, do you have an example?
Guido
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.