var newdiv,
i = 1;
- // insert openlayers api script once
- if ( !window.OpenLayers ) {
- Popcorn.getScript( "http://openlayers.org/api/OpenLayers.js", function() {});
- }
-
function toggle( container, display ) {
if ( container.map ) {
*/
_setup: function( options ) {
+ // insert openlayers api script once
+ if ( !window.OpenLayers ) {
+ Popcorn.getScript( "http://openlayers.org/api/OpenLayers.js", function() {});
+ }
+
var isReady = function() {
// wait until OpenLayers has been loaded, and the start function is run, before adding map
if ( !options.map ) {