mapbox.js icon indicating copy to clipboard operation
mapbox.js copied to clipboard

noConflict method not working

Open amozes opened this issue 10 years ago • 1 comments

When using the documented noConflict method, it fails. The error reported in console is L is undefined.

See fiddle: http://jsfiddle.net/dhbtdsq7/

Please let me know if I'm doing something wrong and/or misinterpreted the doc.

amozes avatar Nov 30 '15 23:11 amozes

Yes, it looks like Mapbox.js is not compatible with L.noConflict(). It should be possible to make it compatible, but will require some internal work -- namely, not relying on the global L except at script load time.

jfirebaugh avatar Nov 30 '15 23:11 jfirebaugh