User Tools

Site Tools


modestmap

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

modestmap [2015/09/18 15:39] (current)
glass created
Line 1: Line 1:
 +====== ModestMap ======
  
 +The ModestMap uses the ModestMaps API to generate an interactive map that can be touched and zoomed.
 +
 +{| style="​float:​right;​margin:​0 0 30px 20px;"
 +|+ A map called from the ModestMaps API with a marker over the location of Stonehenge.
 +|-
 +|{{:​oemodestmap.jpg?​nolink&​400|ModestMap screenshot}}
 +|}
 +
 +{| class="​wikitable"​
 +!
 +Characteristic
 +!
 +Definition
 +|-
 +| Type || Interactive Display Object
 +|-
 +| Category || Element
 +|-
 +| Scope || Local
 +|-
 +| Position || *
 +|-
 +| Parents || Container
 +|-
 +| Children || *
 +|-
 +| Gestures || Drag
 +|-
 +| Requirements || none
 +|}
 +
 +
 +{| class="​wikitable"​
 +!
 +Attribute
 +!
 +Type
 +!
 +Description
 +|-
 +| draggable || true/fasle || sets the draggable property of the map
 +|-
 +| latitude || number || sets and retrieves the latitude of the starting location
 +|-
 +| longitude || number || sets and retrieves the latitude of the starting location
 +|-
 +|mapprovider || text || sets and retrieves the type of map the user will see
 +|-
 +|zoom || number || sets and retrieves the zoom at which the map will start
 +|}
 +
 +See Also: [[Display Attributes]]
 +
 +<​code:​csharp linenums:​1>​
 +<​ModestMap x="​500"​ y="​50"​ height="​600"​ width="​600"​ latitude="​51.1789"​ longitude="​-1.8264"​ zoom="​7"​ mapprovider="​MicrosoftRoadMapProvider">​
 +    <​ModestMapMarker longitude="​-1.8264"​ latitude="​51.1789">​
 +    <Graphic fill="​color"​ color="​0x594D37"​ shape="​roundRectangle"​ width="​81"​ height="​25"​ cornerWidth="​10"​ cornerHeight="​10"​ lineStroke="​2"​ lineColor="​0x293033"/>​
 +    <Text text="​Stone Henge" color="​0xFAFAC0"​ fontSize="​12"​ width="​81"/>​
 +    </​ModestMapMarker>​
 +</​ModestMap>​
 +</​code>​
modestmap.txt · Last modified: 2015/09/18 15:39 by glass