Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add info on tile layers & fair use somewhere, allow to add own tile provider #83

Open
jancborchardt opened this issue Aug 29, 2019 · 7 comments

Comments

@jancborchardt
Copy link
Member

As far as I know, all the tile providers we have are kind of "fair use", that is if you have a big instance and use it a lot you should actually not use them and add your own tile provider. Right?

We should probably:

  • Clarify this info about the tile servers and thank them somewhere
  • Link how to add a custom Mapbox/other provider url for tile layer (we only have that for routing atm)
  • Link an easy guide how to host your own tile server, probably with https://openmaptiles.org ?

What do you think @nextcloud/maps?

@julien-nc
Copy link
Member

There is no way to easily add a tile layer for now. It's definitely a feature coming in further versions.

Yep about the tile server setup guidelines and yep about thanking the amazing public servers we use.

@km6lslf
Copy link

km6lslf commented Mar 19, 2023

Adding an option to specify the URL for the tile server, and potentially a back up tile server, similar as is currently done for the routing server, would be very helpful.

I was able to go into the coding and hard code in my own tile server, but it made it impossible to update the map application.

@km6lslf
Copy link

km6lslf commented Mar 19, 2023

Could this be as easy as adding a way to incorporate nextcloud admin input into mapLayers.js?

@tacruc
Copy link
Collaborator

tacruc commented Mar 19, 2023

Adding an option to specify the URL for the tile server, and potentially a back up tile server, similar as is currently done for the routing server, would be very helpful.

I was able to go into the coding and hard code in my own tile server, but it made it impossible to update the map application.

Could you send a patch of the changes you did?
It would be a good basis for a fix.

@km6lslf
Copy link

km6lslf commented Mar 19, 2023 via email

@Siedlerchr
Copy link

At first it would help to add an option or to select a different osm provider for a basemap, for example default OSM map renders for example Japanese or Chinese letters which I can't read. In constrast openstreetmap.de has German translations and at least latin transliteration.

@km6lslf
Copy link

km6lslf commented Mar 19, 2024

I did it over a year ago so I'm not sure I'm remembering correctly, but I think I made the changes below in my src/data/map Layers.js Original line 54 to 65: { id: LayerIds.OSM, name: 'Street map', type: LayerTypes.Base, url: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', attribution: '© OpenStreetMap contributors, CC-BY-SA', options: { id: 'Open Street Map', noWrap: false, detectRetina: false, maxZoom: 19, }, }, Changed to access the tile server I set up on the emergency data network: { id: LayerIds.OSM, name: 'Street map', type: LayerTypes.Base, url: 'http://km6slfmap.local.mesh/{z}/{x}/{y}.png', attribution: '© OpenStreetMap contributors, CC-BY-SA', options: { id: 'Open Street Map', noWrap: false, detectRetina: false, maxZoom: 19, }, },

On Sun, Mar 19, 2023, 12:47 AM Arne Hamann @.> wrote: Adding an option to specify the URL for the tile server, and potentially a back up tile server, similar as is currently done for the routing server, would be very helpful. I was able to go into the coding and hard code in my own tile server, but it made it impossible to update the map application. Could you send a patch of the changes you did? It would be a good basis for a fix. — Reply to this email directly, view it on GitHub <#83 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARKNSMWPMBGWZNSHS2W7J7LW422ZVANCNFSM4ISAW55A . You are receiving this because you commented.Message ID: @.>

Is this an upgrade that can be added soon? I'm now leading the organization that supports emergency data network equipment and services for 3 cities. It would be great if we could specify a URL for the tile server.

BTW, I met Daphne at the SoCal Linux Expo and the new features coming to Nextcloud are super exciting! She said the Nextcloud staff person who maintains maps is on her team. Thanks for all your work1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants