Categories

.externalcontentGadgetMaps()

Categories: UI

.externalcontentGadgetMaps( [ options ] )

Subclass: de_epages

Inherit: (Subclass: de_epages) .widget()

Plugin: de_epages.externalcontent.gadget.maps

Description: Create a Google, bing or klickTel Map.

  • .externalcontentGadgetMaps( [ options ] )

    version added: 6.15.0

    options   A map of additional options to pass to the method.

The Widget inserts a Google, bing or klickTel Map into the target element on which the widget is executed on.

  • The Widget is executed on a pageelement and is called with passing the chosen options. In this example a Google Map is implemented. Zoom factor is 5, controls are shown and the map area is not draggable.

    Code:
    
    jQuery.ready({
    		plugin: [ 'de_epages.externalcontent.gadget.maps' ],
    		DOM:    true
    	}, function($){
    		var widget = de_epages('<div>').externalcontentGadgetMaps({
    			type: "google",
    			width: 300,
    			height: 200,
    			zoom: 5,
    			title: "Milestones GmbH",
    			controls: true,
    			fixedView: true,
    			lat: 50.65531,
    			lng: 11.715550000000007
    		});
    });
    
    
  • type

    version added: 6.15.0

    Specifies from which provider the map should be shown. Values: 'google', 'bing', 'klicktel'

    Default: google

  • width

    version added: 6.15.0

    Defines the width of the map in pixels.

    Default: 300

  • height

    version added: 6.15.0

    Defines the height of the map in pixels.

    Default: 200

  • zoom

    version added: 6.15.0

    Defines the zoom factor of the shown place on the map.

    Default: 5

  • title

    version added: 6.15.0

    Defines the title of the map widget, e.g. the name and adress of the company.

  • controls

    version added: 6.15.0

    Specifies whether to display the control elements of the embedded map.

    Default: true

  • fixedView

    version added: 6.15.0

    Prevents the map from being dragged, if false.

    Default: false

  • lat

    version added: 6.15.0

    Specifies the latitude (geographic coordinate) of the shown place on the map.

    Default: 50.9287910

  • lng

    version added: 6.15.0

    Specifies the longitude (geographic coordinate) of the shown place on the map.

    Default: 11.5846220

  • destroy

    • .externatcontentGadgetMaps('destroy')

      version added: 6.15.0

    This method removes the container on which the map gadget has been appended to.