Hi,
Only the first two map tile servers are hosted by OpenStreetMap – the others are free available servers. Basically any server can be added, but I want to keep the complete plugin free of charge. 😉
I did not include Stamen maps, because of the integration with Events Manager. The whole purpose of the map is to show how to get to the event location. The Stamen maps do not have street names etc, so I decided to leave those out.
A quick look at the link you provided, tells me that an additional js file needs to be loaded. If the is not downloadable I can not use it, as the WordPress rules are that all used assets are to be included in the downloadable plugin.
I will look into the option, but for now, I can not yet promise to include Stamen maps.
Hi Patrick,
Thank you for your super quick response! I see your point with some of the stamen maps… it is somehow useless without street names for event locations. But I discovered two versions of the “toner” map which include street names:
black & white: http://maps.stamen.com/toner/#14/53.5551/10.0305
greyscale: http://maps.stamen.com/toner-lite/#15/53.5567/10.0129
And the JS-files seem to be free to download (or you can use the JS provided by the stamen-server). Direct link to JS: http://maps.stamen.com/js/tile.stamen.js?v1.3.0
I did not check the script as I am not very into JS.
But I just had a look at the Section “JavaScript Libraries” on the Stamen-website where they exlain the use of the stamen JS-library with Leaflet.
Of course it would be wonderful to have this kind of styling option but there is no need to promise anything 😉
-
This reply was modified 6 years, 5 months ago by
vaid000.
Et voilà ! 😉
Please update to version 2.9.5 when prompted to use the four new Stamen map tiles.
Wow, I’m really impressed. That was super fast! Thank you so much for your help and quick support. It’s working like charm!
I will rate this 5 😉
Hi Patrick,
thank you for adding additional map styles. I really like the toner style, but some of the bigger city names are not visible on the map.
Would it be possible to add the simple map styles from here:
https://openmaptiles.org/styles/#positron
https://openmaptiles.org/styles/#dark-matter
Thanks again for providing this plugin in the first place.
Hi @binarybrothers,
I like those map styles as well, but they are not publicly available. You need to host the images on your own server. So I cannot add those.
Oh, I understand! Thank you for the quick answer.
I now simply use the standard OSM map and put a CSS filter over it. Maybe this is also interesting for others who are looking for a black and white solution.
.leaflet-tile-pane {
-webkit-filter: grayscale(1) brightness(1.1);
filter: grayscale(1) brightness(1.1);
}
That is actually a very creative solution! 🙂
Thanks for sharing 😀