File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change 190
190
} ,
191
191
attached : function ( ) {
192
192
this . async ( function ( ) {
193
- console . log ( this . localName + '#' + this . id + ' was attached' ) ;
194
193
195
194
// the dimension attributes win, if they're there. A map does not
196
195
// have an intrinsic size, unlike an image or video, and so must
219
218
}
220
219
221
220
// create the Leaflet map if this is the first time attached is called
222
- if ( typeof this . _map === "undefined" ) {
221
+ if ( ! this . _map ) {
223
222
this . _map = L . map ( this . $ . map , {
224
223
center : new L . LatLng ( this . lat , this . lon ) ,
225
224
projection : this . projection ,
258
257
this . poster . style . display = 'none' ;
259
258
}
260
259
}
261
- // log map dimensions. If things go wrong with setup, this may be useful
262
- console . log ( "map center: " + this . _map . getCenter ( ) ) ;
263
- var west = this . _map . getBounds ( ) . getWest ( ) ,
264
- south = this . _map . getBounds ( ) . getSouth ( ) ,
265
- east = this . _map . getBounds ( ) . getEast ( ) ,
266
- north = this . _map . getBounds ( ) . getNorth ( ) ;
267
-
268
- if ( west === east || south === north ) {
269
- console . log ( 'ERROR: BAD EXTENT' ) ;
270
- }
271
- console . log ( "map bounds bbox=" + this . _map . getBounds ( ) . toBBoxString ( ) ) ;
272
260
this . _setUpEvents ( ) ;
273
261
}
274
262
You can’t perform that action at this time.
0 commit comments