From 1281de82059db7007ad0f8e1a12549a5ee5d2092 Mon Sep 17 00:00:00 2001 From: Wildin Mota Date: Thu, 15 Aug 2019 06:46:42 -0400 Subject: [PATCH] Implement factory method systax (#942) - Delete unnecessary 'new' keyboard - Fix for methods name --- app/views/maps/index.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/maps/index.html.erb b/app/views/maps/index.html.erb index 6484f1854..6834ff68c 100644 --- a/app/views/maps/index.html.erb +++ b/app/views/maps/index.html.erb @@ -123,8 +123,8 @@ $(function(){ $("#loginModal").appendTo("body"); }); - var bounds = new L.LatLngBounds(new L.LatLng(84.67351257 , -172.96875) , new L.LatLng(-54.36775852 , 178.59375)) ; - var Mapknitterunique = new L.map('mapknitter-unique' , { + var bounds = L.latLngBounds(L.latLng(84.67351257 , -172.96875) , L.latLng(-54.36775852 , 178.59375)) ; + var Mapknitterunique = L.map('mapknitter-unique' , { maxBounds: bounds , maxBoundsViscosity: 0.75 }).setView([43, -83] , 2);