X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/d5a765588f5818bf46575392fa7ccbd4af0de574..bb9f20710e851eb4943bfb8e63386680e359834a:/app/views/site/id.html.erb diff --git a/app/views/site/id.html.erb b/app/views/site/id.html.erb index 38f2e0d3d..80332e887 100644 --- a/app/views/site/id.html.erb +++ b/app/views/site/id.html.erb @@ -2,9 +2,9 @@ - <%= stylesheet_link_tag 'iD' %> + <%= stylesheet_link_tag 'id' %> - <%= javascript_include_tag 'iD' %> + <%= javascript_include_tag 'id' %> @@ -19,8 +19,11 @@ <% locale = select_locale(ID::LOCALES).to_s %> var id = iD() + .presets(iD.data.presets) + .imagery(iD.data.imagery) + .taginfo(iD.taginfo()) .embed(true) - .assetPath("/iD/") <%# Can't use asset_path('iD/') in production. %> + .assetPath("/iD/") <%# Cant use asset_path('iD/') in production. %> .assetMap(<%= assets("iD").to_json.html_safe %>) .locale("<%= locale %>", "<%= asset_path("iD/locales/#{locale}.json") %>") .preauth({ @@ -33,6 +36,7 @@ }); id.map().on('move.embed', parent.$.throttle(250, function() { + if (id.inIntro()) return; var zoom = ~~id.map().zoom(), center = id.map().center(), llz = { lon: center[0], lat: center[1], zoom: zoom };