Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Container

JMap.Application.UI.Container

You can access the info of the application dom container div.

Index

Functions

getHeight

  • getHeight(): number
  • JMap.Application.UI.Container.getHeight

    Returns the dom container height in pixel.

    example
    
    // return the dom container height, ex : 966
    JMap.Application.UI.Container.getHeight()

    Returns number

getId

  • getId(): string
  • JMap.Application.UI.Container.getId

    Returns the DOM div element id where application UI has been inserted.

    example
    
    // return the dom container id, ex : "jmap-app"
    JMap.Application.UI.Container.getId()

    Returns string

getVisiblePolygonGeometry

  • getVisiblePolygonGeometry(): Polygon
  • JMap.Application.UI.Container.getVisiblePolygonGeometry

    Returns a polygon geometry representing the visible coordinates on the map. Works fine even if the map is pitched or rotated.

    throws

    if map is not loaded

    example
    
    // returns the polygon geometry representing the visible coordinates on the map.
    // ex :
    // {
    //  "type": "Polygon",
    //  "coordinates": [
    //     [
    //       [ -57, 35],[-39, 23 ], [-36, 36 ], [-52, 45], [-57, 35 ]
    //     ]
    //   ]
    // }
    JMap.Application.UI.Container.getVisiblePolygonGeometry()

    Returns Polygon

getWidth

  • getWidth(): number
  • JMap.Application.UI.Container.getWidth

    Returns the dom container width in pixel.

    example
    
    // return the dom container width, ex : 1230
    JMap.Application.UI.Container.getWidth()

    Returns number