mariusandra / pigeon-maps

ReactJS Maps without external dependencies
https://pigeon-maps.js.org/
MIT License
3.45k stars 143 forks source link

error 429, wikimedia throttling? #83

Closed DWMiller closed 4 years ago

DWMiller commented 4 years ago

This is repeatable on the official demos, seeing a lot of failed requests to wikimedia on loading the map images.

Did wikimedia change something that limits requests and potentially makes this unusable?

seratonik commented 4 years ago

Just started experiencing this as well, hopefully it's just temporary.

nickimola commented 4 years ago

Same here

mariusandra commented 4 years ago

Hi all, the wikimedia maps were never meant to be used by users of this library. I have no contract nor agreement with them. It's just an open tile server with maps that looked good enough, so I put them as default provider. Normally their maps are supposed to be only used on their properties, for example in Wikipedia.

You're instead supposed to have your own contract with a map tile provider and use those tiles.

Personally, we're currently using MapTiler in my company. Their free plan is generous enough for most needs.

So please change your tiles to something else and the problem will go away :).

There's a second question here regarding what should be the default tile layer for pigeon maps... and for the demo. I'm open to ideas and suggestions.

nickimola commented 4 years ago

Hi all, the wikimedia maps were never meant to be used by users of this library. I have no contract nor agreement with them. It's just an open tile server with maps that looked good enough, so I put them as default provider. Normally their maps are supposed to be only used on their properties, for example in Wikipedia.

You're instead supposed to have your own contract with a map tile provider and use those tiles.

Personally, we're currently using MapTiler in my company. Their free plan is generous enough for most needs.

So please change your tiles to something else and the problem will go away :).

There's a second question here regarding what should be the default tile layer for pigeon maps... and for the demo. I'm open to ideas and suggestions.

Thanks for clarifying How do we use a different tile? I couldn't see anything in the docs

mariusandra commented 4 years ago

Use the provider prop and see the demo page code for samples.

PabloSzx commented 4 years ago

I think this problem should be addressed better in the documentation and examples, since even the website https://pigeon-maps.js.org/ has this problem still

solegs commented 4 years ago

Same issue

beevelop commented 4 years ago

Is there an issue for switching the default tile provider? IMHO using a defunct default provider hurts this library a bit.

mariusandra commented 4 years ago

Hey, I changed the default provider to OSM and added more documentation on how to change your provider. The fix is in v0.15.0