Where can I find the a reference for the client-side API used in your samples?
I meant the SetDrawMode, ZoomIn, ZoomOut methods etc.
Where can I find the a reference for the client-side API used in your samples?
I meant the SetDrawMode, ZoomIn, ZoomOut methods etc.
I don’t think there is an official reference with the beta release. However I have proivded you with a list below in the interim.
Thanks
Clint
// Get Current Extent
GetCurrentExtent()
// Zoomin
ZoomIn()
// Zoomout
ZoomOut()
// ZoomToExtent
ZoomToExtent(extent)
// Pan By Screen Pixel
PanByScreenPixel(screenX, screenY)
// Pan By world coordinate
PanByWorldCoordinate(longitute, latitude)
// Zoom to previous Extent(if it’s the first extent, nothing happened)
ZoomToPreviousExtent()
// Toggle extents
ToggleMapExtents()
// Set current drawing mode
// drawMode is a String.
// drawMode can be Point, Line, Polygon, Square, Circle, Ellipse, Rectangel, Modify, Normal;
// See Detail in samples: Samples/mapShapes/DrawEditShapes.aspx
SetDrawMode(drawMode)
// Clear vector shapes you drawn
ClearFeatures()
// Remove the latest shape you drawn
CancelLatestFeature()
// Is in Draw mode or in normal mode
IsDrawMode : function()
// Get center of the map
GetCenter()