Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

OpenStreetMap does not work on Wordpress.com

Aperta
#507 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
javascript
Ambito
frontend, web-dev

Direzione di ricerca

Inizia riproducendo una StoryMapJS con la mappa di base OpenStreetMap all'interno di un blocco embed di WordPress.com, dove l'iframe con sandbox genera richieste di tile 403. Decidi se StoryMapJS debba rilevare un'origine null, cambiare la mappa di base, informare gli utenti o non fare nulla; il lavoro è completo quando è stato concordato un comportamento ed è stato verificato che la mappa incorporata non fallisca più o informi chiaramente gli utenti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

We've had a series of reports from people who use Wordpress.com that their map is filled with 403 blocked tiles.

Image

Wordpress.com does not allow iframe tags in the Custom HTML block; instead, storymaps must be embedded using the embed block, which constructs an iframe with the storymap URL. The constructed iframe has sandbox="allow-scripts" which prevents the referrer from being sent with the tile request, which is against OpenStreetMap's policy.

We cannot change the way that Wordpress handles embeds. For now, the workaround is to use a different basemap. The only no-cost basemap directly supported by StoryMapJS is "Cooper-Hewitt: Watercolor".

Users could also consider using Mapbox Studio or Stadia Maps, each of which have some no-cost options. Mapbox Studio's pay-as-you-go plan might never get to the point of costing money; Stadia's no-cost option is only available for non-commercial use. Of course, if you have access to some other "slippy map" URL, you could use that with the "custom" map type.

To consider: should StoryMapJS be updated to recognize when self.origin === "null" and the basemap is set to OpenStreetMap and

  • switch to another map
  • message the viewer (who may not be the author)
  • both
  • neither
Lingua principale
JavaScript
Stelle
248
Fork
61
Merge medio
1m
PR unite (30g)
1

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NUKnightLab/StoryMapJS

Tutte le issue di NUKnightLab/StoryMapJS

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.