Map Basic Options

GoogleMap control basic options usage sample.

Set different values to options below the map and click on "Apply" to see the result.

Options

Here is the list of map options you can test.

  •     DefaultAddress - The address to geocode and set as initial map center, when the provided Address is not valid or failed to geocode.
  • Center - The initial LatLng map center.
    •       Latitude
    •       Longitude
  •     Address - The address to geocode and set the initial map center.
  • DisableClear - If true, do not clear the contents of the Map div.
  • DisableDefaultUI - Enables/disables all default UI. May be overridden individually.
  • DisableDoubleClickZoom - Enables/disables zoom and center on double click. Enabled by default.
  • DisableKeyboardShortcuts - If false, prevents the map from being controlled by the keyboard. Keyboard shortcuts are enabled by default.
  • Draggable - If false, prevents the map from being dragged. Dragging is enabled by default.
  •     DraggableCursor - The name or url of the cursor to display on a draggable object.
  •     DraggingCursor - The name or url of the cursor to display when an object is dragging.
  • EnableMapTypeControl - The initial enabled/disabled state of the Map type control. By default it is set to true and map type control is visible.
  • EnableOverviewMapControl - The enabled/disabled state of the Overview Map control.
  • EnablePanControl - The enabled/disabled state of the Pan control.
  • EnableReverseGeocoding - Gets or sets a value indicating whether reverse geocoding (address lookup) is enabled.
  • EnableRotateControl - The enabled/disabled state of the Rotate control.
  • EnableScaleControl - The initial enabled/disabled state of the Scale control.
  • EnableScrollWheelZoom - If false, disables scrollwheel zooming on the map. The scrollwheel is enabled by default.
  • EnableSearchBoxControl - The enabled/disabled state of the search box control.
  • EnableStreetViewControl - The initial enabled/disabled state of the Street View Pegman control.
  • EnableZoomControl - The enabled/disabled state of the Zoom control.
  • FullscreenControl - Enables/disables the control that opens the map in fullscreen mode.
  •     Language - The Google Maps API uses the browser's preferred language setting when displaying textual information such as the names for controls, copyright notices, driving directions and labels on maps.
  • MapType - The initial Map mapTypeId. Required. You must specifically set an initial map type to see appropriate tiles.
  •       MaxZoom - The maximum zoom level which will be displayed on the map.
  •       MinZoom - The minimum zoom level which will be displayed on the map.
  •     Region - The Maps API serves map tiles and biases application behavior, by default, using the country of the host domain from which the API is loaded (which is the USA for maps.google.com).
  • ShowTraffic - Gets or sets a value indicating whether [show traffic].
  •       StaticScale - Scale (zoom) value used to multiply the static map image size to define the output size in pixels.
  •       Tilt - The angle of incidence of the map as measured in degrees from the viewport plane to the map plane (0 or 45).
  •       Zoom - The initial Map zoom level. Required.