break;
case 'openlayers':
// Use our included stripped & minified OpenLayers.
- $action->script(common_path('plugins/Mapstraction/OpenLayers/OpenLayers.js'));
+ $action->script($this->path('OpenLayers/OpenLayers.js'));
break;
case 'yahoo':
$action->script(sprintf('http://api.maps.yahoo.com/ajaxymap?v=3.8&appid=%s',
//
// Note that OpenLayers.js needs to be separate, or it won't
// be able to find its UI images and styles.
- $action->script(common_path('plugins/Mapstraction/usermap-mxn-openlayers.min.js'));
+ $action->script($this->path('usermap-mxn-openlayers.min.js'));
} else {
$action->script(sprintf('%s?(%s)',
- common_path('plugins/Mapstraction/js/mxn.js'),
+ $this->path('js/mxn.js'),
$this->provider));
- $action->script(common_path('plugins/Mapstraction/usermap.js'));
+ $action->script($this->path('usermap.js'));
}
$action->inlineScript(sprintf('var _provider = "%s";', $this->provider));