I am working on a project with Vue and Leaflet that for now just shows a map and I want that when you give the start and end coordinates it colours the route from between those points (or many points and a route than goes through all of them). Unfortunately, I found that the plugin for Leaflet that uses OSRM for automating routing "will not work unless you configure a routing backend yourself". Is there an alternative to that? Any other open-source plugin for Vue Leaflet (or alternatively for OpenLayers(VueLayers) that can auto-track existing routes? Thank you in advance.
Show a route on a map with Vue
1.1k Views Asked by coffee-and-code At
1
There are 1 best solutions below
Related Questions in VUE.JS
- jqBootstrapValidation() is not a function
- In Vue.js, change value of specific attribute for all items in a data array
- Vue.js - How to handle all elements with the same selector?
- How can I use Elixir + Vueify?
- Bind function on newly created element
- Vue.js Passing data to content scope
- Updating the DOM with change in an object (vue.js) - binding not working?
- websocket + vuejs: screen flickering, visible mustache code
- Vue.js nested v-repeat: How to access parent $index inside child?
- VueJS - trouble understanding .$set and .$add
- Difference between two similar functions, why is one working and the other not
- Display unescaped HTML in Vue.js
- Mouseover or hover vue.js
- vuejs: Trying to focus the input using v-el directive
- Vue.js component issue
Related Questions in DICTIONARY
- Difference between list() and dict() with generators
- Python program to produce dictionary of file extensions and sizes
- How to sort a nested dictionary by the a nested value?
- Renaming the keys of a dictionary
- VB.NET KeyNotFoundException from String()
- Numpy Vs nested dictionaries, which one is more efficient in terms of runtime and memory?
- Multiple parameters in a Dictionary
- ComboBox Not Being Filled With Unique Field Values Via Dictionary Learning
- Batch file: map a FTP server
- How to put objects into a dictionary using Dapper in C#?
- Pyparsing - Trouble parsing file to dictionary structure
- convert tuple keys of dict into a new dict
- Change the values of a list without using index
- Dictionary values missing
- How to create and add values to Dictionary in swift
Related Questions in LEAFLET
- Leaflet map legend in R Shiny app has doesn't show colors
- mapbox/leaflet: block zoom if tiles are not available
- Color transition effect in Leaflet.js?
- Rebind Mapbox popups after filtering
- Prevent plotting scaled point with zero value, Mapbox, leaflet
- Unable to Display GeoJSON data Using Leaflet and Marker Cluster
- ESRI tile service not loading correctly in web maps
- In leaflet/mapbox, why can't I set the duration of `map.fitBounds`?
- How to remove a layerGroup in leaflet?
- How to keep the marker size constant in leaflet
- Load GeoJSON into layer from a URL?
- D3 bar chart from geojson
- ionic & LeafletJS set marker
- Newbe help on getting from polygon shape file to Leaflet polygon
- Trouble Creating Mapbox Popups with External GeoJSON
Related Questions in OPENLAYERS
- How to easily create a heatmap layer from a pre-existing vector layer of points in OpenLayers 3?
- OpenLayers print function not working
- Geolocation with openlayers limits
- Temporary tiles cache for Mapserver
- Visibility of layers in OL 3.6.0
- Selenium Web Driver and OpenLayers 2.x: how to do a identify on a map?
- Openlayers with google map layer - points zoom before the map?
- How to create a pdf file with openlayers div
- source clear BUG in OpenLayers 3
- Add custom wms layer to codename one Mapcontainer
- Handling slow internet connection with Openlayers 2
- Open Layers doesn't show the label in the given lat, lon
- Openlayers, javascript
- SAXParseException Geoserevr SLD error
- Can Tableau send the WMS GetFeatureInfo request back to WMS server?
Related Questions in VUELAYERS
- Displaying Vector Tiles in EPSG:25832 in OpenLayers
- How to export vuelayers map to png or jpeg?
- Getting error while testing with Jest: Vue and Typescript
- use JS bind operator (::) with Nuxt.js and typescript
- How to draw all countries boundaries according to GeoJSON in Vuelayer?
- Vuelayers vl-style-icon syntax
- Vuelayers "projection.getCode is not a function" when using ol/proj module
- Display static map with VueLayers
- Loading WMS in Vuejs with OpenLayers
- Show a route on a map with Vue
- Vuelayers projection problem (inexistant in OpenLayers)
- VueLayers - Using webpack externals for internal files
- How do I interact with WMS tile layer served by GeoServer using Vuelayers?
- Vue Layers Map not showing on Vuetify dialog
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You could interface Openlayers directly with a service such as OpenRouteService https://openrouteservice.org/dev/#/api-docs/v2/directions/{profile}/json/post This code assumes a map
routesMapwith a vector layerorsRoute, and arrayrouteCompleteof coordinate pairs in view projection for start, optional waypoint, and end, and API keyorsKey