diff --git a/config/gmap.php b/config/gmap.php index e9a027a..fe82055 100644 --- a/config/gmap.php +++ b/config/gmap.php @@ -2,59 +2,59 @@ // Don't delete or rename any keys unless you know what you're doing! -return array ( // Default map-center. - 'default_lat' => 51.1731, - 'default_lng' => 6.8328, + $config['default_lat'] = 51.1731; + + + $config['default_lng'] = 6.8328; // Default zoom-level. - 'default_zoom' => 12, + $config['default_zoom'] = 12; // Default "sensor" setting - Used for mobile devices. - 'default_sensor' => FALSE, + $config['default_sensor'] = FALSE; // Default map-type. - 'default_maptype' => 'road', + $config['default_maptype'] = 'road'; // The instance will be set in the render method to a random string (if this value is empty). - 'instance' => '', + $config['instance'] = ''; // Default view-options. - 'default_view' => 'gmap', - 'default_gmap_size_x' => '100%', - 'default_gmap_size_y' => '100%', + $config['default_view'] = 'gmap'; + $config['default_gmap_size_x'] = '100%'; + $config['default_gmap_size_y'] = '100%'; // Default Google Maps controls. - 'default_gmap_controls' => array( - 'maptype' => array( - 'display' => TRUE, - 'style' => 'default', - 'position' => NULL, + $config['default_gmap_controls'] = array( + 'maptype' => array( + 'display' => TRUE, + 'style' => 'default', + 'position' => NULL, ), - 'navigation' => array( - 'display' => TRUE, - 'style' => 'default', - 'position' => NULL, + 'navigation' => array( + 'display' => TRUE, + 'style' => 'default', + 'position' => NULL, ), - 'scale' => array( - 'display' => TRUE, - 'position' => NULL, + 'scale' => array( + 'display' => TRUE, + 'position' => NULL, ), - ), + ); // Default options for polylines. - 'default_polyline_options' => array( - 'strokeColor' => '#000', - 'strokeOpacity' => 1, - 'strokeWeight' => 3, - ), + $config['default_polyline_options'] = array( + 'strokeColor' => '#000', + 'strokeOpacity' => 1, + 'strokeWeight' => 3, + ); // Default options for polygons. - 'default_polygon_options' => array( - 'strokeColor' => '#000', - 'strokeOpacity' => 1, - 'strokeWeight' => 3, - 'fillColor' => '#000', - 'fillOpacity' => .5, - ), -); \ No newline at end of file + $config['default_polygon_options'] = array( + 'strokeColor' => '#000', + 'strokeOpacity' => 1, + 'strokeWeight' => 3, + 'fillColor' => '#000', + 'fillOpacity' >= .5, + );