set provider global JS variable from Mapstraction

This commit is contained in:
Evan Prodromou 2009-11-18 08:33:48 -05:00
parent fc08a5c880
commit 1cc10aaef6

View File

@ -144,6 +144,9 @@ class MapstractionPlugin extends Plugin
common_path('plugins/Mapstraction/js/mxn.js'),
$this->provider));
$action->element('script', array('type' => 'text/javascript'),
sprintf('var _provider = "%s";', $this->provider));
return true;
}
}