bobosch / ods_osm

TYPO3 Extension OpenStreetMap
10 stars 22 forks source link

Start and end marker im leaflet #35

Open labneu opened 6 years ago

labneu commented 6 years ago

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.

TomQv commented 3 years ago

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 commented 2 years ago

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>