Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (21 sloc) 609 Bytes
<?php
Director::addRules(100, array(
'Feature' => 'Feature_Controller',
'Proxy' => 'Proxy_Controller'
));
Proxy_Controller::set_allowed_host(array(
'localhost:8080','localhost'
));
Object::add_extension('MapPage', 'MapPageDecorator');
$file_extensions = File::$allowed_extensions;
$file_extensions[] = 'kml';
$file_extensions[] = 'kmz';
File::$allowed_extensions = $file_extensions;
MapPageDecorator::set_openlayers_path('/thirdparty/openlayers_dev_2.12/lib/OpenLayers.js');
/**
* Add to .htaccess file in assets following lines:
<FilesMatch "\.(kmz|kml)$">
Allow from all
</FilesMatch>
*
*/