Support for additional map layer - OpenSeaMap

Plugin

Locations

Feature

Support for additional map layer - OpenSeaMap

Description

OpenSeaMap maps are done as additional layer on top of OpenStreetMaps.
http://map.openseamap.org/

You can check example from Leaflet preview:
https://leaflet-extras.github.io/leaflet-providers/preview/

var OpenStreetMap_Mapnik = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
	maxZoom: 19,
	attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
});
var OpenSeaMap = L.tileLayer('https://tiles.openseamap.org/seamark/{z}/{x}/{y}.png', {
	attribution: 'Map data: &copy; <a href="http://www.openseamap.org">OpenSeaMap</a> contributors'
});

Would be great if Locations plugin would support additional layer(s).

Use Case

pojalabanda.com is Slovenian sailing forum. We currently use Locations plugin with OpenStreetMap to show some location topics: Pojalabanda.com

With additional layer support, we would be able to show nautical features on the maps by using OpenSeaMap layer.

Nice! Thanks for filling out the wizard :slight_smile: It sounds like a good feature.

As a thank you for being the first person to do this, I’ll make it a bit easier to get this in the works. The current rule is 10 votes (or monetary support) is needed to get a feature on the agenda. For this, I’ll put it on the agenda if you can get at least 5 votes. I just voted for it, you can vote for it, then you just need 3 more. Maybe ask others in the Locations Plugin Topic on meta?

1 Like

Would love to have this feature as well to include weather data in my maps. We use the maps for showing of training locations and dates on the maps and having the aditional data would give the users extra data in a blink of an eye to decide on whether to join or not.

Kind regards

Since this feature is not implemented yet, one member of our community have implemented a small hack that puts additional OpenSeaMap layer on top of OpenStreetMap.

As you can see, adding layer is really simple, it would just need to get two configuration options to be added to plugin config. If you want to use it, add this to app.yml:

git clone https://github.com/stefanb/discourse-locations.git -b "openseamap"

You can check OpenSeaMap example on our forum.

1 Like