Yoga Map is a fully-featured jQuery Plugin integrated with Google Maps API v3 plug-in that allows you to quickly and easily place map on your site in the style of site design
Designed by the best web experts and created with the utmost attention to design, usability, UX, and UI
Yoga Map Plugin is the perfect choice to simplify and accelerate the customization of your map
- Multiple Markers
- Info window
- Scrollwheel
- Custom Style
- Custom Marker
- Clustering Marker
- Custom cluster icon
- And much more
INCLUDE FILES <head> ...[THIS CODE]... </head>
PLUGINS INITIALIZATION <head> ...[THIS CODE]... </head>
Инициализацию можно прописать тоже между <head> и </head> или в отдельном js-файле но уже без тега <script>
HTML <body> ...[THIS CODE]... ></body>
OPTIONS
Option | Default value | Datatype | Description |
---|---|---|---|
width |
|
Number | Sets width of the Map. It may take the values: any positive number in px ar persent |
height |
|
Number | Sets height of the Map. It may take the values: any positive number in px ar persent |
center |
|
Array | Coordinates of the center of the map (Latitude and Longitude) Value of the array may take the values:any positive number |
zoom |
|
Number | Value of the zoom It may take the values: any positive number |
scrollwheel |
|
Boolean | The trigger on / off scroll wheel It may take the values: true, false |
addmarkers |
|
Array | This paramet add an array of markers on map. |
addmarkers / obj / title |
|
String | The information pops up when you hover over the marker |
addmarkers / obj / latlng |
|
Array | Coordinates of the marker (Latitude and Longitude) Value of the array may take the values:any positive number |
addmarkers / obj / icon |
|
String or Null | Path to the custom marker image e.g. icon: 'pic/m_4_white_s.png' |
addmarkers / obj / address |
|
String or Null | Adress of marker. It need to display in popup window e.g. address: '121 King Street, Melbourne, Victoria 3000, Australia' |
addmarkers / obj / contentstringAuto |
|
Boolean | If True, the pop-up window filled in automatically, based on the information: "Title" and "Adress" It may take the values: true, false |
addmarkers / obj / contentstring |
'<h2>Marker Title</h2> <p>Address and other contacts</p>' |
String | The information you want to see in the pop-up window |
addmarkers / obj / infowindowOpen |
|
Boolean | If True, the pop-up window will open when the map is loaded It may take the values: true, false |
stylesEnable |
|
Boolean | The trigger on / off styling of map It may take the values: true, false |
styles |
|
Array | This array should contain the parameters of stylization: obj_1, obj_2, obj_n |
clusterEnable |
|
Boolean | The trigger on / off clustering of markers of map It may take the values: true, false |
customClusterEnable |
|
Boolean | The trigger on / off customization of icons of cluster It may take the values: true, false |
customCluster | default GM API |
Array | This array should contain the parameters of clustering: obj_1, obj_2, obj_n e.q.
|
customCluster / obj / height |
default GM API |
Number |
The height of the cluster image It may take the values: any positive number |
customCluster / obj / width |
default GM API |
Number |
The width of the cluster image It may take the values: any positive number |
customCluster / obj / url |
default GM API |
String |
Path to the custom cluster icon e.g. url: 'pic/c_7_white_m.png' |
customCluster / obj / textColor |
default GM API |
String |
The text color in the icon cluster
It may take the values: Hex Color Codes e.g. textColor: '#fff' |
customCluster / obj / textSize |
default GM API |
Number |
Font size in the cluster icons It may take the values: any positive number in px |
disableDefaultUI |
|
Boolean |
turn off the default controls. It may take the values: true, false |
METHODS
setOptions(options) |
Change options of the map. options Type: object
|
clearMarkers() |
Removes all markers from the map. This method does not accept any arguments
|
addMarkers(markers) |
Add markers to the map. options Type: array
|
disableCluster() |
Disable clustering of markers. This method does not accept any arguments
|
enableCluster() |
Enable clustering of markers. This method does not accept any arguments
|
changeStyle(style) |
Change style of the map. options Type: array
|
destroy() |
Removes all the functionality of the plugin. This method does not accept any arguments
|
EVENTS
create() |
This function is called when the plug is fully loaded and running
|
centerChanged() |
This function is called when the coordinates of the center of the map have been changed
|
zoomChanged() |
This function is called when the value of zoom have been changed
|
infowindowOpen() |
This function is called when pop-up window have been opened
|
infowindowClose() |
This function is called when pop-up window have been closed
|
addMarkerEvent() |
This function is called when new marker have been added
|
markerDrag() |
This function is called when marker have been dragged
|
disableClusterEvent() |
This function is called when clustering have been disabled
|
enableClusterEvent() |
This function is called when clustering have been enabled
|