Googlemap

Overview

GOOGLEMAP view is a component which is used for integration Google map. It inherits from view.


Related sample: 11_others/06_google_map.html

Initialization

To init the component you need to perform 2 steps:

  1. Add special map library file in addition to the already included files.

    <script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script> 
  2. Call initialization code.
    The following is an example of initialization with the commonly used parameters (to see a full list of GOOGLEMAP's parameters, please refer to the corresponding chapter of the manual):

    dhx.ui({
           view:"googlemap",
           id:"map",
           zoom:6,
           center:{
                  x:48.724,
                  y: 8.215},
           mapType:"ROADMAP"         
    })

    Specify id if you're going to refer to GOOGLEMAP later.

API Reference

Related articles

A full list of articles.

To use ui functionality, touchui.css and touchui.js files must be included.