GoogleMap plugin for CMSimple |
version: 1.0.0
|
The GoogleMap plugin is used to insert a map using Google global map, which can be integrated into any CMSimple page by means of the CMSimple scripting command or it can also be integrated into CMSimple template.
Disclaimer : No warranties
whatsoever, use at your own risk !
Requirements : The CMSimple plugin
loader must be installed and operational !
folder name chmod config 755 help 755 languages 755 map 777 change all files in the root of the googlemap folder to 444 (chmod 444)
- config folder: contains the configuration file (config.php) which holds all plugin related configuration settings
Set the config.php file permissions to 666 (chmod 666)
Set google.html file permissions to 777 (chmod 777)
If your native language isn't included in
this language
list, you are encouraged to contribute to this plugin by translating
the plugin messages into your language and sending them to: mmgprojektas@gmail.com.
The translation will be included in the googlemap plugin package.
Your effort is much appreciated...
Set the language file permissions to 755 (chmod 755)
The GoogleMap plugin is installed now
Before you can use the Googlemap plugin, it's necessary to
The configuration settings of the GoogleMap plugin are integrated into the CMSimple administrative module. So, first login into this module.
Select Googlemap from the list of available plugins.
Select Configuration from the dropdown list.
- APIkey: [string]
- here You need to enter Your generated APIkey from http://www.google.com/apis/maps/signup.html
- align: [string]
- used to set googlemap alignment
- possible values:
- center
- left
- right
- controls:
- mapmovement:[true|false] -enables or disables movement menu on the map
- maptype: [true|false] - enables or disables map type menu on the map (map, sattelite, hybrid)
- mapsize: [pixels|percents]
- height: height of the map
- width: width of the map
- messagebox:
- enable: shows the message box for Your point on the map
- text: text that is shown on the message box
- position:
- latitude: set the latitude of Your map
- longitude: set the longitude of Your map
- zoomlevel: [number]
- type in the zoom level of Your map
The language settings of the Googlemap plugin are integrated into
the CMSimple administrative module.
So, first login into this module.
Integration into a CMSimple pageSelect Googlemap from the list of available plugins.
Select Language from the dropdown list.
Change the language settings according to your needs and use the save button to save the modifications you make.
Show GoogleMaps on a CMSimple page
The googlemap is called by means of a special function named : googlemap().
This function has no required parameters
If you want to show your googlemap on a CMSimple page, please follow the steps listed below:
#cmsimple $output.=googlemap();#
Put the googlemap into the site template
To display a googlemap within your template, please follow the steps listed below:
<?php echo googlemap();?>