Opened 7 years ago

Closed 7 years ago

#4291 closed defect (fixed)

embed.html does not handle Transport and MaqQuest base layers

Reported by: Andreas Bilger Owned by: rails-dev@…
Priority: minor Milestone:
Component: website Version:
Keywords: Cc:

Description

http://www.openstreetmap.org/export/embed.html
is lacking support for layer=transportmap and layer=mapquest arguments in the embedded javascript function init().

Suggested fix: See the attached patch file. The added map layer code is taken from the slippy map code.

Reproduction steps:

  1. Goto http://www.openstreetmap.org
  2. Open sidebar and choose either Transport Map or MapQuest Open as base layer
  3. Click on Export and select format Embeddable HTML
  4. Paste the generated HTML in some website and open it
  5. Result: The embedded map is empty

Attachments (1)

embed.patch (1.9 KB) - added by Andreas Bilger 7 years ago.
suggested patch for embed.html

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by Andreas Bilger

Attachment: embed.patch added

suggested patch for embed.html

comment:1 Changed 7 years ago by Tom Hughes

Resolution: fixed
Status: newclosed

Committed - will deploy shortly.

Note: See TracTickets for help on using tickets.