map29.setOptions({
panControl: true,
panControlOptions: {position: google.maps.ControlPosition.TOP_LEFT}
});
change the 'map29' to the indicated object variable in your content part.\\You can set the position of the control by changing the 'TOP_LEFT' to any valid value, [[https://developers.google.com/maps/documentation/javascript/reference#ControlPosition|see here]]|
|{{:3rd-party-modules:googlemaps:googlemaps-docu:gm_109.jpg|}}|By default the streetviev control is enabled on the top left corner of the map. To disable it use additional api script like:\\ map29.setOptions({streetViewControl: false});
|
== More Controls ==
Two more controls can be enabled in the content part: scale (left-bottom on default) and overview (right-bottom on default).\\
For further behavior of these controls use additional API Script.
=== ===
----
=== More Button / Layers ===
{{:3rd-party-modules:googlemaps:googlemaps-docu:gm_110.jpg|}}\\
Panoramio and other layers are combined in the new More-Button.\\
On default the button appears top-right on the map and opens on mouseover.\\
All expressions used in the More Button can/should be translated in the language section of the module!\\
^ Layer ^ Notes ^ added ^
| Fotos (Panoramio) | You may restrict the set of photos to display on a PanoramioLayer to those matching a particular user by entering the user ID or a certain textual tag by entering additional API Script like:''layers["pano"].setTag("tower");'' | V.3.5 |
| TRAFFIC | The Google Maps API allows you to add real-time traffic information (where supported) to your maps using the TrafficLayer object. Traffic information is provided for the time at which the request is made. Consult [[http://gmaps-samples.googlecode.com/svn/trunk/mapcoverage_filtered.html|this spreadsheet]] to determine traffic coverage support. | V.3.5 |
| TRANSIT | The Google Maps API allows you to display the public transit network of a city on your map using the TransitLayer object. When the Transit Layer is enabled, and the map is centered on a city that supports transit information, the map will display major transit lines as thick, colored lines. The color of the line is set based upon information from the transit line operator. Enabling the Transit Layer will alter the style of the base map to better emphasize transit routes. Transit information is only available in select locations. To see a list of cities where public transit information is currently available, please consult [[http://www.google.com/intl/en/landing/transit/text.html|this list]]. | V.3.5 |
| BIKING | The Google Maps API allows you to add bicycle information to your maps using the BicyclingLayer object. The BicyclingLayer renders a layer of bike paths, suggested bike routes and other overlays specific to bicycling usage on top of the given map. Additionally, the layer alters the style of the base map itself to emphasize streets supporting bicycle routes and de-emphasize streets inappropriate for bicycles. | V.3.5 |
| WEATHER | You can enable the display of weather data on your map via the WeatherLayer classes of the google.maps.weather library. Enabling the weather layer will show current weather conditions from [[http://www.weather.com/|weather.com]] on your map, including icons that denote sun, clouds, rain and so on. Clicking on the weather icon for a particular area will open an info window with detailed data such as current humidity and wind conditions, as well as a four-day forecast. When the weather layer is enabled and the zoom level is set to 12 or lower, administrative labels, such as the names of streets or regions, will be disabled on your map. At zoom level 13 the weather layer is automatically disabled and administrative labels are restored. | V.3.5 |
| CLOUDS | You can enable the display of cloud imagery on your map via the CloudLayer classes of the google.maps.weather library. Enabling the cloud layer will add cloud coverage imagery to your map, visible at zoom levels 0 through 6. | V.3.5 |
More layers may be added in the future.
----
=== Map Styles ===
##**New in GoogleMaps Module V3.5**##\\
{{:3rd-party-modules:googlemaps:googlemaps-docu:gm_112.jpg|}}\\
{{:3rd-party-modules:googlemaps:googlemaps-docu:gm_113.jpg|}}\\
You can style your maps now, almost any layer can be changed to get eyecatching effects. Just follow the link in the backend and use the Styled Maps Wizard, copy+paste the JSON code to the field in the content part and enjoy your own personal map!
===== Marker =====
{{:3rd-party-modules:googlemaps:googlemaps-docu:gm_114.jpg|}}\\
Activate/Deactivate the markers in the map and define whether the info window should appear in the map.\\
Note that info windows can only be activated with visible markers.\\
When you deactivate the markers, the map is still displayed with all other settings.
This can be just what you want when you want to show an empty map on your website, the
selected point will then be the initial point for the map (e.g. your address).
=== XML Loader ===
##**New in GoogleMaps Module V3.5!**##\\
{{:3rd-party-modules:googlemaps:googlemaps-docu:gm_115.jpg|}}\\
With lots of markers the default loading of the markers can become slowly (slows down the loading of the entire page), therefore we added a xml-loader function.\\
{{:3rd-party-modules:googlemaps:googlemaps-docu:gm_117.jpg |progress-bar on loading}}The loading of the markers starts when everything else is loaded, in the upper right corner of the map a progress-bar shows the loading progress.\\
----
==== Categorize ====
{{:3rd-party-modules:googlemaps:googlemaps-docu:gm_122.jpg|}}\\
With the module it's pretty easy to create a map that has groups of markers that are toggled by checkboxes in the sidebar.
Add categories to your points in backend (how to) and activate the tab 'categorize'. If you want just one category (or none) preselected you can tell the script by select the category.\\
This has no effect to the map behaviour what so ever, it just tells Google, that the map was loaded in a browser somewhere and adds the loading to the report in the corresponding Google account.\\
var ctaLayer = new google.maps.KmlLayer('http://gmaps-samples.googlecode.com/svn/trunk/ggeoxml/cta.kml');
ctaLayer.setMap(map[CP_ID]);
[[https://developers.google.com/maps/documentation/javascript/layers#KMLLayers|See here]] for more infos to KML Layers
== Structure ==
The structure of the rendered document is basically as follows:\\
...
... load all external API's
... load all js and css files from the module directory
...
...
...