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:
Tom Hughes 2015-02-24 12:42:18 +00:00
parent 6d124f8012
commit 781e80181e

View file

@ -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);
}