This repository was archived by the owner on Nov 30, 2018. It is now read-only.
File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 316
316
markers : "=markers" , // optional
317
317
latitude : "=latitude" , // required
318
318
longitude : "=longitude" , // required
319
- zoom : "=zoom" , // optional, default 8
319
+ zoom : "=zoom" , // required
320
320
refresh : "&refresh" , // optional
321
321
windows : "=windows" // optional"
322
322
} ,
328
328
if ( ! angular . isDefined ( scope . center ) ||
329
329
( ! angular . isDefined ( scope . center . lat ) ||
330
330
! angular . isDefined ( scope . center . lng ) ) ) {
331
-
332
- $log . error ( "Could not find a valid center property" ) ;
333
-
331
+
332
+ $log . error ( "angular-google-maps: ould not find a valid center property" ) ;
334
333
return ;
335
334
}
336
335
336
+ if ( ! angular . isDefined ( scope . zoom ) ) {
337
+ $log . error ( "angular-google-maps: map zoom property not set" ) ;
338
+ return ;
339
+ }
340
+
337
341
angular . element ( element ) . addClass ( "angular-google-map" ) ;
338
342
339
343
// Create our model
340
344
var _m = new MapModel ( {
341
- container : element [ 0 ] ,
342
-
343
- center : new google . maps . LatLng ( scope . center . lat ,
344
- scope . center . lng ) ,
345
-
345
+ container : element [ 0 ] ,
346
+ center : new google . maps . LatLng ( scope . center . lat , scope . center . lng ) ,
346
347
draggable : attrs . draggable == "true" ,
347
-
348
348
zoom : scope . zoom
349
349
} ) ;
350
350
You can’t perform that action at this time.
0 commit comments