This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Start/end icons, mark some segments from measured route by mouse

0

OpenLayers 3+: 1. How to create markers/icons at the startpoint and end point automatically? 2. I'm using ol.layer.Vector with ol.style.Style and ol.style.Text and I wanna to set some HTML title for this text. I searched everywhere but without result. Information about it is here: https://openlayers.org/en/latest/apidoc/module-ol_layer_Vector-VectorLayer.html but it doesn't work. So how can I add HTML title (something like this Some text) for layer/marker? 3. Can I mark/highlight every kilometer of measured route (GPX)? 4. I wanna create the segment from measured GPX: Click the mouse to start of the segment and the end of the segment (for example: the way to the store). And I want to save all these measured points of this segment to MySQL or file (for example export these lon+lat to html tag input - and submit).

Does anyone know anything?

asked 10 Jun '20, 18:32

djlj's gravatar image

djlj
11112
accept rate: 0%


One Answer:

2

This sounds like a question that should be asked on stackoverflow.com or it's sister StackExchange—GIS

To post there you'll generally need to post the code that you've got that doesn't work.

Here's a sample question on Stack Overflow

As a rank beginner with OL, I'd guess you're going to have to do the manipulation with JavaScript or developing the page in a framework like Ruby on Rails. I hope there is an easier answer.

answered 10 Jun '20, 19:23

MtnBiker's gravatar image

MtnBiker
116227
accept rate: 0%

Source code available on GitHub .