Changeset 3209 for trunk/modules
- Timestamp:
- 07/27/2008 03:55:43 AM (4 months ago)
- Location:
- trunk/modules
- Files:
-
- 3 modified
-
gmaps/controllers/gmaps_demo.php (modified) (4 diffs)
-
media/controllers/media.php (modified) (2 diffs)
-
user_guide/controllers/user_guide.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/gmaps/controllers/gmaps_demo.php
r3206 r3209 26 26 // Set the map center point 27 27 $map->center(0, 0, 1)->controls('large')->types('G_PHYSICAL_MAP', 'add'); 28 28 29 29 // Add a custom marker icon 30 $map->add_icon('tinyIcon', array31 (30 $map->add_icon('tinyIcon', array 31 ( 32 32 'image' => 'http://labs.google.com/ridefinder/images/mm_20_red.png', 33 33 'shadow' => 'http://labs.google.com/ridefinder/images/mm_20_shadow.png', … … 43 43 View::factory('gmaps/api_demo')->set(array('api_url' => Gmap::api_url(), 'map' => $map->render()))->render(TRUE); 44 44 } 45 45 46 46 public function image_map() 47 47 { 48 48 $points = array('-37.814251' => '144.963169', '-33.867139' => '151.207114', '-27.467580' => '153.027892'); 49 49 50 50 View::factory('gmaps/static_demo')->set(array('simple' => Gmap::static_map(44.9801, -93.2519),'multi' => Gmap::static_map($points)))->render(TRUE); 51 51 } … … 67 67 // Add a new marker 68 68 $map->add_marker($location->lat, $location->lon, 69 69 70 70 // Get the info window HTML 71 71 View::factory('gmaps/info_window')->bind('location', $location)->render()); 72 72 } 73 73 74 header('Content- type: text/javascript');74 header('Content-Type: text/javascript'); 75 75 echo $map->render(); 76 76 } … … 138 138 { 139 139 $map = new Gmap('map'); 140 140 141 141 $map->center(0, 35, 16)->controls('large'); 142 142 -
trunk/modules/media/controllers/media.php
r3163 r3209 82 82 } 83 83 84 $mimetype AND header('Content- type: '.$mimetype);84 $mimetype AND header('Content-Type: '.$mimetype); 85 85 echo $output; 86 86 } … … 116 116 } 117 117 118 $mimetype AND header('Content- type: '.$mimetype);118 $mimetype AND header('Content-Type: '.$mimetype); 119 119 echo $output; 120 120 } 121 122 121 123 122 public function _default() -
trunk/modules/user_guide/controllers/user_guide.php
r3163 r3209 119 119 public function js($filename) 120 120 { 121 header('Content- type: text/javascript');121 header('Content-Type: text/javascript'); 122 122 123 123 $this->_media('js', $filename); … … 126 126 public function css($filename) 127 127 { 128 header('Content- type: text/css');128 header('Content-Type: text/css'); 129 129 130 130 $this->_media('css', $filename);
