forked from leonardfischer/Kohana-Google-Maps-Module
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Leonard Fischer
committed
Feb 12, 2011
1 parent
a645bf1
commit 65b2ba1
Showing
2 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,6 @@ | |
* @package gmap | ||
* @author Leonard Fischer <[email protected]> | ||
* @copyright (c) 2011 Leonard Fischer | ||
* @version 1.1 | ||
* @version 1.3 | ||
*/ | ||
class Gmap extends Gmap_Core {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* @package gmap | ||
* @author Leonard Fischer <[email protected]> | ||
* @copyright (c) 2011 Leonard Fischer | ||
* @version 1.1 | ||
* @version 1.3 | ||
*/ | ||
class Gmap_Core | ||
{ | ||
|
@@ -342,7 +342,7 @@ public function render($view = '') | |
/** | ||
* Set some controls for your gmap. | ||
* You can specify how to display the map-type and navigation control. | ||
* For more information visit https://github.com/solidsnake/Kohana-Google-Maps-Module/wiki | ||
* For more information visit https://github.com/solidsnake/Kohana-Google-Maps-Module/wiki . | ||
* | ||
* @param array $options Set the options for the gmap-controls here. | ||
* @return Gmap | ||
|
@@ -369,7 +369,7 @@ public function set_gmap_controls(array $options) | |
|
||
/** | ||
* Set the maptype controls for your gmap. | ||
* For more information visit https://github.com/solidsnake/Kohana-Google-Maps-Module/wiki | ||
* For more information visit https://github.com/solidsnake/Kohana-Google-Maps-Module/wiki . | ||
* | ||
* @param array $options Set the options for the controls here. | ||
* @return Gmap | ||
|
@@ -396,7 +396,7 @@ public function set_gmap_controls_maptype(array $options) | |
|
||
/** | ||
* Set the navigation controls for your gmap. | ||
* For more information visit https://github.com/solidsnake/Kohana-Google-Maps-Module/wiki | ||
* For more information visit https://github.com/solidsnake/Kohana-Google-Maps-Module/wiki . | ||
* | ||
* @param array $options Set the options for the controls here. | ||
* @return Gmap | ||
|
@@ -464,8 +464,8 @@ public function set_gmap_options(array $values) | |
* You may set a CSS attribute like for example "500px", "50%" or "10em". | ||
* If you just set an integer, "px" will be used. | ||
* | ||
* @param mixed $x May be a CSS attribute ("500px", "50%", "10em") or an int | ||
* @param mixed $y May be a CSS attribute ("500px", "50%", "10em") or an int | ||
* @param mixed $x May be a CSS attribute ("500px", "50%", "10em") or an int. | ||
* @param mixed $y May be a CSS attribute ("500px", "50%", "10em") or an int. | ||
* @return Gmap | ||
*/ | ||
public function set_gmap_size($x = NULL, $y = NULL) | ||
|
@@ -596,7 +596,7 @@ protected static function validate_control_maptype($maptype) | |
if (array_key_exists($maptype, Gmap::$control_maptypes)) | ||
{ | ||
return Gmap::$control_maptypes[$maptype]; | ||
} // if | ||
} | ||
elseif (in_array($maptype, Gmap::$control_maptypes)) | ||
{ | ||
return $maptype; | ||
|
@@ -622,7 +622,7 @@ protected static function validate_control_navigation($navigation) | |
if (array_key_exists($navigation, Gmap::$control_navigation)) | ||
{ | ||
return Gmap::$control_navigation[$navigation]; | ||
} // if | ||
} | ||
elseif (in_array($navigation, Gmap::$control_navigation)) | ||
{ | ||
return $navigation; | ||
|
@@ -653,7 +653,7 @@ protected static function validate_control_position($position = NULL) | |
if (array_key_exists($position, Gmap::$control_positions)) | ||
{ | ||
return Gmap::$control_positions[$position]; | ||
} // if | ||
} | ||
elseif (in_array($position, Gmap::$control_positions)) | ||
{ | ||
return $position; | ||
|
@@ -713,7 +713,7 @@ protected static function validate_maptype($maptype) | |
if (array_key_exists($maptype, Gmap::$maptypes)) | ||
{ | ||
return Gmap::$maptypes[$maptype]; | ||
} // if | ||
} | ||
elseif (in_array($maptype, Gmap::$maptypes)) | ||
{ | ||
return $maptype; | ||
|