hupe13
hupe13
Hi Raruto, I changed this: https://github.com/Raruto/leaflet-elevation/blob/bd9316bd1b7e7784b3bf3d812960eaa808ad94d6/src/control.js#L913 [to](https://github.com/hupe13/extensions-leaflet-map-github/blob/c74401b5a692ae1e59ed7cd2e983bf9261cfdea6/leaflet-plugins/leaflet-elevation-2.5.0/dist/leaflet-elevation.js#L1244) ````js this._layers.eachLayer(layer => layer.getElement && this._chartEnabled && this.options.polyline.className && _.toggleClass(layer.getElement && layer.getElement(), this.options.polyline.className + ' ' + this.options.theme, this._chartEnabled)); ```` I tested it...
https://github.com/Raruto/leaflet-elevation/blob/868179234d8e9b8f7beaea57d0e34d8bd79a2622/src/components/d3.js#L613 This line must be ```js if(/Mac|iPod|iPhone|iPad/.test(navigator.platform) && /AppleWebkit/i.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent)) { ``` then Chrome works. In Safari whithout any transformation `console.log(canvas)` shows, that canvas on the right position and...
- Macs with **MacOS Catalina** and **MacOs Ventura** - Maps with **Leaflet v1.9.3** and **leaflet-elevation v2.2.8** (actual). You can see the problem on my [page](https://leafext.de/elevation/truefalse/?testing=preferCanvas). I have an error handler...
You are right, it is my problem, your [example](https://raruto.github.io/leaflet-elevation//examples/leaflet-elevation.html) works. It could be that it is related to leaflet-ui, I don't use that. I am looking and will report. Sorry...
I have been able to narrow down the problem further but have not yet solved it. Your [leaflet-elevation_extended-ui.html](https://github.com/Raruto/leaflet-elevation/blob/868179234d8e9b8f7beaea57d0e34d8bd79a2622/examples/leaflet-elevation_extended-ui.html ) has this as well: 
The reason was a css, I don't remember why I configured that. Probably updates from leaflet-elevation made it obsolete. I don't know. But the above problem still exists. And you...
[hupe13/extensions-leaflet-map-github/css/leafext.css#L38-L40](https://github.com/hupe13/extensions-leaflet-map-github/blob/6bdffad5f7d2d1916bf04edd5f99e04b2b11933f/css/leafext.css#L38-L40)
```js console.log(navigator.userAgent); ``` ### Safari logs: ``` Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15 ``` ### Chrome logs: ``` Mozilla/5.0 (Macintosh; Intel Mac OS...
I don't have an iPhone also. I do not invest any more time at the moment, with the change of the line 613 and set preferCanvas to false on Safari...
There is an [old issue](https://github.com/bozdoz/wp-plugin-leaflet-map/issues/232#issuecomment-1666075258). But I don't know if my pull request still fits. The problem with the current leafletjs urls and other have [been fixed](https://github.com/bozdoz/wp-plugin-leaflet-map/blob/5f43c6e04c9fc2a92a3d5b80ec0d5919a8e9cf9d/readme.txt#L163C1-L168C85).