hupe13

Results 65 comments of hupe13

New approach: https://github.com/bozdoz/wp-plugin-leaflet-map/blob/b6bafe8f4fd1373776201768f5a179d55fcdc845/shortcodes/class.map-shortcode.php#L193-L201 We need some more options. There is a repository [leaflet-providers](https://github.com/leaflet-extras/leaflet-providers) and here are the options for many [tileservers](https://github.com/leaflet-extras/leaflet-providers/blob/master/leaflet-providers.js). Is there a convenient way to consider many different...

This I have done now. I prepared a [pull request](https://github.com/bozdoz/wp-plugin-leaflet-map/compare/master...hupe13:wp-plugin-leaflet-map:master). Sorry about the removed spaces, this makes my editor automatically. class.leaflet-map.php: - leafletjs version 1.9.4 class.plugin-settings.php - changed default max_zoom...

I read this in [german OSM forum](https://community.openstreetmap.org/t/a-b-c-tile-openstreetmap-de-subdomains-von-tile-openstreetmap-de-werden-aufgehoben/100830). There is a link to an [issue](https://github.com/openstreetmap/operations/issues/737). And in leaflet-providers.js are the [tiles without subdomain](https://github.com/leaflet-extras/leaflet-providers/blob/176e603a7eeb155b754541e96fd9ef53c0241e6f/leaflet-providers.js#L80C30-L80C30).

max_zoom and map_tile_maxzoom do not work yet together, and it takes time to test. If I write `[leaflet-map zoom=18 max_zoom=23 map_tile_maxzoom="20" tileurl=https://....]` I get grey tiles if I zoom to...

I made a [commit](https://github.com/hupe13/wp-plugin-leaflet-map/commit/b1aad92631dd24f128f01120729022c4c6b5ccb2). Now it works as I expect. But it does not work, if detect-retina is true and it is a retina display. Then the maxZoom should be...

I think, I found the solution, it works with Retina also now. The differences to your reposiitory are: - changed default max_zoom to 18, because https://leafletjs.com/reference.html#map-maxzoom and https://leafletjs.com/reference.html#tilelayer-maxzoom - removed...

I thought about including this issue in PR, but I'm not sure if that's a good idea for everyone. Maybe you should introduce an option.

Hi Raruto, after setting `map.options.preferCanvas = true;` it works now. Thank you very much.

There are many (other) problems with setting `map.options.preferCanvas = true;` in my WordPress plugin. > Actually, the following should be the real cause: > > https://github.com/Raruto/leaflet-elevation/blob/ea155564475c44941cb81a9df3eaf8d633ed90fc/src/control.js#L912-L913 Yes, it should be:...

The problem in my first post was about the black polyline when all legend filters are turned off. You told me two possibilities to solve the problem: - setting preferCanvas:...