Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start and end marker im leaflet #35

Open
labneu opened this issue Jan 2, 2018 · 2 comments
Open

Start and end marker im leaflet #35

labneu opened this issue Jan 2, 2018 · 2 comments
Labels

Comments

@labneu
Copy link

labneu commented Jan 2, 2018

Help!
how can i disable the start and end Marker Icon in leaflet Gpx:
By default gpx.js will use pin-icon-start.png, pin-icon-end.png and pin-shadow.png as the marker icons URLs for, respectively, the start marker, the end marker and their drop shadow. Since it might not be convenient that these images have to reside under the same directory as your HTML page, it is possible to override the marker icon URLs and sizes by passing a marker_options object to the GPX options object.

@albig albig added the feature label Mar 25, 2021
@TomQv
Copy link

TomQv commented May 8, 2021

Yes, I also ran in that issue now. I don't want these start and end markers in the map. Workaround for me is to replace them by small, empty bitmap in typo3conf/ext/ods_osm/Resources/Public/JavaScript/Leaflet/leaflet-gpx/
But I believe, with the next update of ods_osm the originals will be back

@artus70
Copy link

artus70 commented Jan 18, 2022

Workaround: You may hide those icons by adding this CSS code to your page or stylesheet:

<style>
img[src$="leaflet-gpx/pin-icon-end.png"],
img[src$="leaflet-gpx/pin-icon-start.png"],
img[src$="leaflet-gpx/pin-shadow.png"]
{
    display: none;
}
</style>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants