WeAreFairphone / fprsmap

This is a Leaflet map of the local Fairphoners communities
https://map.fairphone.community
GNU General Public License v3.0
10 stars 7 forks source link

Change basemap tile server #20

Closed StefanBrand closed 7 years ago

StefanBrand commented 7 years ago

Since OpenStreetMaps' Tile usage policy forbids to build apps with tiles fetched from their tile server we should switch to a different provider.

What about Stamen Watercolour (with donation) or Carto Positron (the light basemap with 75,000 gratis map views)?

PS.: I'm of course very open for other suggestions!

Roboe commented 7 years ago

We can get some info from the recent GNOME/gnome-maps limits issue:

StefanBrand commented 7 years ago

Mapbox, which they use now, requires a log-in (in order to receive an access token).

On the other hand it has a lot of features, amongst them custom map designs, a Geocoding API, etc.: https://www.mapbox.com/help/how-mapbox-works/

Am 16.09.2016 um 20:01 schrieb Roberto M.F.:

We can get some info from the recent GNOME/gnome-maps limits issue:

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/WeAreFairphone/fprsmap/issues/20#issuecomment-247667041, or mute the thread https://github.com/notifications/unsubscribe-auth/AIiMgQFgbYqug7Av1rj3G9D4vuakmnCPks5qqtl1gaJpZM4J_KHf.

StefanBrand commented 7 years ago

For now I would go for Carto Positron (or Dark Matter??? :smiling_imp: ) because it goes best with our colorful markers.

StefanBrand commented 7 years ago

Ok, I ran into a problem. Carto Terms of Service - Free Basemaps (pdf) cites the following:

We grant you a non­exclusive, revocable, worldwide, non­transferable, non­sublicensable right and license to use the Services for non­commercial purposes. For purposes of these terms, a commercial purpose is one which is primarily intended for or directed toward private monetary compensation or other commercial advantage. If you have any question as to whether your intended use constitutes a commercial purpose, we request you contact us prior to such use.

Mapbox is less restrictive, allowing

commercial applications publicly accessible without charge

On the other hand they require a watermark with their logo.

@Roboe I'm pretty sure that our map counts as commercial as soon as it is incorporated into Fairphone's new webpage. Should I contact Carto nevertheless or do we go for Mapbox right away?

StefanBrand commented 7 years ago

So what about it? :) Actually I prefer the looks of Carto Positron over mapbox.light. See the other default Mapbox map styles. On the other hand mapbox maps can be customized very easily, I'm not sure about Carto's. We could for example use Radikal as a font, I guess.

Roboe commented 7 years ago

Sorry, I overlooked this issue.

Our map is not a comercial product, it's a community project not intended for earning money in any way. But with the vicissitude that we have some kind of official support from Fairphone: they'll lend us a subdomain and open up their data (although that'll be available for any other project, not only ours). They could be benefited by the existence of the map, of course, but that's not our "primarily intend" and we were born in the Community Forum for the community (Fairphone devices' owners).

So I think we should reach them. They are Spanish people (I meet one Carto developer on h4ckademy), so they must be kind people, ;) (ok, I'm not being impartial here, I'm Spanish, :laughing:)

Not needing any API key is very convenient for us, BTW. Our code is all public.

About the cutomization, AFAIK MapBox uses a fork of Leaflet and Carto tiles can be easily integrated with our current codebase.

Radikal is a proprietary and non-free-to-use font: https://www.myfonts.com/fonts/nootype/radikal/licensing.html

StefanBrand commented 7 years ago

Radikal is a proprietary and non-free-to-use font: https://www.myfonts.com/fonts/nootype/radikal/licensing.html

Yeah, that's what they were saying over at the Fairphone Forum.

So I think we should reach them.

I'm looking forward to the response of your contact person. It would be great if we could use CARTO Positron, it's simply the best basemap for our purpose, in my opinion. :)

Roboe commented 7 years ago

He has told me there shouldn't be any problem, but also advise us to contact support@carto.com for added certainty. I'll write tomorrow, I should sleep now, :sleeping:

StefanBrand commented 7 years ago

@Roboe Have you heard back from Carto support?

Roboe commented 7 years ago

Sorry for the delay.

I talked to Emilio from CARTO, and his response was affirmative.

Here is the legal part from CARTO's side Emilio kindly quoted to me:

Thanks for reaching us out! Emilio here, from CARTO. Our basemap service is delivered in two forms, as a free service and as a commercial service. The main difference between them are a number of restrictions on the free service [Terms of Service] and the extended capabilities that the commercial service provides. You will require our commercial service if any of the following applies to you:

  • The basemap is used inside an application or website that requires payment, is private or is used for asset-tracking.
  • You require a Service Level Agreement on the basemap service. We do not provide any SLA’s on our free offering.
  • You require more than 75,000 mapviews per month, which is the limit for our free service
  • You require a custom map design. On our free service we provide 2 map designs, Dark Matter and Positron.

When you get a commercial license you will get an api_key to attach to your tile requests. Our commercial basemap service starts at $600/year with 100,000 mapviews per month.

From the technical side, we offer the maps in raster format and in vector format in collaboration with Mapzen. To utilise the vector format you will need to use the Tangram library together with Leaflet.

Emilio said we fulfil all of the requisites if we don't expect to receive more than 75,000 mapviews each month. One mapview is defined as the loading of 15 tiles (256x256px). I feel like we won't exceed it for now. No problem embedding the map on Fairphone's website, either.

If at some point we exceed the mapviews/month limit, then we should talk to Fairphone for getting a commercial license.

StefanBrand commented 7 years ago

Sounds great! Maybe I'll have time to look into it next week, but you might as well do it, if you have the time. :)