tComposant Delphi / Google Maps / CloudMade / OpenMapQuest / Leaflet  / Bing Maps
Google Maps
Google Earth
CloudMade
OpenMapQuest
LeafLet

Controls

Summary

Fig. 25 Google maps controls

With maps CloudMade and OpenMapQuest only zoom control and scale are available

You can suppress the display of all controls by flipping the EnableUIControl property to false

// Delphi map component ECMap
// hide all controls
map.EnableUIControl := false;

NavigationControl manages the display of the navigation bar, MapTypeControl map type, ZoomControl zoom and ScaleControl scale.

NavigationPosition, MapTypeControlPosition, ZoomPosition ScalePosition manage the position of controls on the map, these properties can take the following values:

  • cpTopLeft
  • cpTopCenter
  • cpTopRight,
  • cpRightTop
  • cpRightCenter
  • cpRightBottom
  • cpBottomRight
  • cpBottomCenter
  • cpBottomLeft
  • cpLeftBottom
  • cpLeftCenter
  • cpLeftTop

Under CloudMade only positions cpTopLeft,cpTopRight, cpBottomLeft and cpBottomRight are functional

11

Menu

TECMap property has a menu that allows you to associate a TPopupMenu that opens when you right click on the map.

The event is still triggered OnMapRightClick if a menu is attached, it comes just after the opening of TPopupMenu

go to page
© 2012 ESCOT-SEP Christophe - Made width Help&Web - RSS
Site Meter