Skip to content

Commit

Permalink
Use class factory syntax (#909)
Browse files Browse the repository at this point in the history
  • Loading branch information
sriddbs authored and sashadev-sky committed Aug 11, 2019
1 parent d5c9565 commit 204dd5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/map/_leaflet.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
var label = "Main"
var zoom = <%= @map.zoom %>
var google = new L.Google("SATELLITE",{opacity:0.5});
var main = new L.TileLayer(tms, {minZoom: minZoom, maxZoom: maxZoom, scheme:"tms", tms:true});
var main = L.tileLayer(tms, {minZoom: minZoom, maxZoom: maxZoom, scheme:"tms", tms:true});

// add an OpenStreetMap tile layer
var osm = new L.tileLayer('https://{s}.tile.osm.org/{z}/{x}/{y}.png', {
var osm = L.tileLayer('https://{s}.tile.osm.org/{z}/{x}/{y}.png', {
attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
})

Expand Down

0 comments on commit 204dd5e

Please sign in to comment.