Restore templating to embed.js
The embed.js file is special because it is used standalone without the rest of our javascript environment. Closes #909.
This commit is contained in:
parent
6d124f8012
commit
781e80181e
1 changed files with 2 additions and 2 deletions
|
@ -28,10 +28,10 @@ window.onload = function () {
|
|||
|
||||
if (args.marker) {
|
||||
L.marker(args.marker.split(','), {icon: L.icon({
|
||||
iconUrl: OSM.MARKER_ICON,
|
||||
iconUrl: <%= asset_path('images/marker-icon.png').to_json %>,
|
||||
iconSize: new L.Point(25, 41),
|
||||
iconAnchor: new L.Point(12, 41),
|
||||
shadowUrl: OSM.MARKER_SHADOW,
|
||||
shadowUrl: <%= asset_path('images/marker-shadow.png').to_json %>,
|
||||
shadowSize: new L.Point(41, 41)
|
||||
})}).addTo(map);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue