File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ CHANGELOG
6
6
-------------------
7
7
8
8
* Fix GeoJSON serialization when creating new MultiPoint records
9
+ * Make the only layer match the map max/min_zoom (fixes #67) (thanks Manuel Clos)
10
+ * Added widget attribute to edit several fields on the same map
9
11
10
12
11
13
0.13.7 (2014-06-26)
Original file line number Diff line number Diff line change @@ -105,11 +105,11 @@ L.Map.DjangoMap = L.Map.extend({
105
105
106
106
if ( layers . length == 1 ) {
107
107
var layer = l2d ( layers [ 0 ] ) ;
108
- // make the only layer match the map max/min_zoom
108
+ // Make the only layer match the map max/min_zoom
109
109
layer . options = L . Util . extend ( layer . options , {
110
- ' minZoom' : this . options [ ' minZoom' ] ,
111
- ' maxZoom' : this . options [ ' maxZoom' ]
112
- } ) ;
110
+ minZoom : this . options . minZoom ,
111
+ maxZoom : this . options . maxZoom
112
+ } ) ;
113
113
L . tileLayer ( layer . url , layer . options ) . addTo ( this ) ;
114
114
return ;
115
115
}
You can’t perform that action at this time.
0 commit comments