Skip to content

Commit 38bf7a9

Browse files
committed
layers in mapbbcfg
1 parent e868057 commit 38bf7a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

_includes/codegen.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
if( value('draw') )
128128
str += '<script type="text/javascript" src="' + pathFixed + 'leaflet.draw.js"><' + '/script>\n';
129129
str += '<script type="text/javascript" src="' + pathFixed + 'mapbbcode.js"><' + '/script>\n';
130-
if( !(config.options.layers.length == 1 && config.options.layers[0] == 'OpenStreetMap' ) )
130+
if( 'layers' in mapbbcfg )
131131
str += '<script type="text/javascript" src="' + pathFixed + 'LayerList.js"><' + '/script>\n';
132132
for( i = 0; i < proprietary.length; i++ )
133133
str += '<script type="text/javascript" src="' + pathFixed + 'proprietary/' + proprietary[i] + '.js"><' + '/script>\n';

0 commit comments

Comments
 (0)