You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saw a report on help.openstreetmap.org and thought I should investigate.
The embedded maps are no longer working for the Transport and Cycle layers, since the JavaScript code that generates the embedding output does not included the JavaScript code that sets the API Keys. Using an embedded map on a test site, I see the following in the console:
Error: No value provided for variable {apikey}
...unction(e,n){var o=a[n];if(o===t)throw new Error("No value provided for variable...
I'm assuming that the app/assets/javascripts/embed.js.erb file isn't including the correct file (i.e. app/assets/javascripts/osm.js.erb where the API Key is transferred into the javascript code).
Unfortunately I haven't figured out the javascript dependencies for embed.js.erb so I can't see what should be fixed and where the dependency should be added. I don't see any of the files referenced at the top of that file ( "leaflet", "leaflet.osm", "i18n/translations") so there's some magic somewhere.
The text was updated successfully, but these errors were encountered:
I saw a report on help.openstreetmap.org and thought I should investigate.
The embedded maps are no longer working for the Transport and Cycle layers, since the JavaScript code that generates the embedding output does not included the JavaScript code that sets the API Keys. Using an embedded map on a test site, I see the following in the console:
http://www.openstreetmap.org/export/embed.html?layer=cyclemap
http://www.openstreetmap.org/export/embed.html
I'm assuming that the
app/assets/javascripts/embed.js.erb
file isn't including the correct file (i.e.app/assets/javascripts/osm.js.erb
where the API Key is transferred into the javascript code).Unfortunately I haven't figured out the javascript dependencies for
embed.js.erb
so I can't see what should be fixed and where the dependency should be added. I don't see any of the files referenced at the top of that file ( "leaflet", "leaflet.osm", "i18n/translations") so there's some magic somewhere.The text was updated successfully, but these errors were encountered: