Comments (4)
Do you have the coordinates of those points or do you need a navigation routine?
Open source navigation is still somewhat immature, it is a very complex field with lots of quirks and a few large proprietary players
If you already have the points, you simply need to include a feature with them
from rlayers.
I think to simplify it, you can take an array of 10 prepared points and show an example of drawing a route between these 10 points. Not the construction, but the rendering of the prepared route. Here is an examples of implementation on pure OpenLayers. I would like to understand how to implement this through "RLayers"
Example:
https://github.com/kolosov-sergey/webgl_blog/tree/master/ol/Route
Article (in Russian)
https://devburn.ru/2016/06/26/%D0%BF%D0%BE%D1%81%D1%82%D1%80%D0%BE%D0%B5%D0%BD%D0%B8%D0%B5-%D0%BC%D0%B0%D1%80%D1%88%D1%80%D1%83%D1%82%D0%B0/
Full example from arcgis (build a route from A to B).
https://developers.arcgis.com/openlayers/route-and-directions/find-a-route-and-directions/
from rlayers.
The main question is how to draw a straight line through RLayers using the code now. I didn't find an example in your documentation. Just a straight line between two points
There is a ready-made example on pure "OpenLayers" based on OSRM-project. Is there any way to create an example of integration with their API via RLayers?
DEMO with openlayers:
https://map.project-osrm.org/
from rlayers.
@kibarik thank you for this excellent example, even if my Russian is somewhat rusty π
from rlayers.
Related Issues (20)
- is it possible to do layer pixel manipulation? HOT 1
- Using non-default projection with OSM and Next.js HOT 3
- RLayerWMTS fetches the wmts file twice HOT 4
- Popup fΓΆr vector tile layers HOT 1
- RStadiaLayer is not being exported HOT 2
- Is it possible to load tiles using the setTileLoadFunction ? HOT 2
- Unable to use `RPopup` with `RLayerCluster` HOT 10
- Snap doesn't work when use Rmodify HOT 4
- Can't set default rotation in the RView HOT 1
- map is undefined HOT 2
- Improvements for RLayerTileWMSProps HOT 1
- onDrawStart and onDrawEnd not working for RModify interaction HOT 4
- Calling an event only once HOT 3
- Setting tabindex HOT 2
- improve tile layer props HOT 1
- Google Maps Integration HOT 1
- RLayerTileWMS refresh unexpectly HOT 9
- Event Propagation in onPointerDrag HOT 3
- RDragZoom does not extend RDragBox and onChange appears not to work
- RLayerCluster url loading with react suspense
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rlayers.