Properties Methods Events Config Options Direct Link
Observable
  Component
    Component
      Map

Class Ext.Map

Package:Ext
Defined In:Map.js
Class:Map
Extends:Component

Wraps a Google Map in an Ext.Component.
http://code.google.com/apis/maps/documentation/v3/introduction.html

To use this component you must include an additional JavaScript file from Google:

<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>

Screenshot:

Example code:

var pnl = new Ext.Panel({
    fullscreen: true,
    items     : [
        {
            xtype             : 'map',
            useCurrentLocation: true
        }
    ]
});

Config Options

Config OptionsDefined By
 baseCls : String
The base CSS class to apply to the Maps's element (defaults to 'x-map').
Map
 centered : Boolean
Center the Component. Defaults to false.
Component
 componentCls : String
CSS Class to be added to a components root level element to give distinction to it via styling.
Component
 data : Mixed
The initial set of data to apply to the tpl to update the content area of the Component.
Component
 disabled : Boolean
Defaults to false.
Component
 disabledCls : String
CSS class to add when the Component is disabled. Defaults to 'x-item-disabled'.
Component
 draggable : Boolean
Allows the component to be dragged via the touch event.
Component
 floating : Boolean
Create the Component as a floating and use absolute positioning. Defaults to false.
Component
 floatingCls : Boolean
The class that is being added to this component when its floating. (defaults to x-floating)
Component
 height : Number
The height of this component in pixels.
Component
 hidden : Boolean
Defaults to false.
Component
 mapOptions : Object
MapOptions as specified by the Google Documentation: http://code.google.com/apis/maps/documentation/v3/reference.html
Map
 maskMap : Boolean
Masks the map (Defaults to false)
Map
 maskMapCls : Strng
CSS class to add to the map when maskMap is set to true.
Map
 monitorOrientation : Boolean
Monitor Orientation change
Component
 stopMaskTapEvent : Boolean
True to stop the event that fires when you click outside the floating component. Defalts to true.
Component
 styleHtmlCls : String
The class that is added to the content target when you set styleHtmlContent to true. Defaults to 'x-html'
Component
 useCurrentLocation : Boolean
Pass in true to center the map based on the geolocation coordinates.
Map
 width : Number
The width of this component in pixels.
Component

Public Properties

PropertyDefined By
 draggable : Boolean
Read-only property indicating whether or not the component can be dragged
Component
 geo : Ext.util.GeoLocation
Map
 map : google.maps.Map} The wrapped map.
Map
 rendered : Boolean
Read-only property indicating whether or not the component has been rendered.
Component

Public Methods

MethodDefined By

Public Events

EventDefined By