Maps examples/Google Maps with rotate control

From semantic-mediawiki.org
Jump to: navigation, search
Maps examplesMaps examples/Google Maps with rotate control
Table of Contents

This page shows examples of basic maps rendered with Google Maps providing a rotate control to manipulate the view of the current satelite map.

option / value
controls / "-/-" (default), "type, rotate" or "pan, zoom, type, scale, streetview, rotate"

If the controls option is not provided is will automatically be ignored.


Note Note: This works only in the two methods indicated for the examples and only if the option type is also set to "satellite". Additionally you need to set the option zoom to "18" or even higher.

Examples

Using the parser function

Method 1 / controls=type, rotate

{{#display_map:
 |controls=type, rotate
 |center=40.702764, -74.013383
 |type=satellite
 |zoom=18 
 |height=500
}}
Loading map...

Method 2 / controls=pan, zoom, type, scale, streetview, rotate

{{#display_map:
 |controls=pan, zoom, type, scale, streetview, rotate
 |center=40.702764, -74.013383
 |type=satellite
 |zoom=18 
 |height=500
}}
Loading map...

Using the tag

Method 1 / controls=type, rotate

<display_map center="40.702764, -74.013383" controls="type, rotate" type="satellite" zoom="18" height="500">
</display_map>
Loading map...

Method 2 / controls=pan, zoom, type, scale, streetview, rotate

<display_map center="40.702764, -74.013383" controls="pan, zoom, type, scale, streetview, rotate" type="satellite" zoom="18" height="500">
</display_map>
Loading map...

References