mbxEnumLayerState

mbxEnumLayerState
Static Members
▸ Normal
▸ Loading
▸ Pending

mbxEnumLayerType

mbxEnumLayerType
Static Members
▸ Base
▸ Overlay

mbxEnumGroupType

mbxEnumGroupType
Static Members
▸ Check
▸ Radio

mbxEnumControlType

mbxEnumControlType
Static Members
▸ Normal
▸ Command

mbxEnumQueryResult

mbxEnumQueryResult
Static Members
▸ Ok
▸ Error

mbxEnumQueryMode

mbxEnumQueryMode
Static Members
▸ Catalog
▸ Street
▸ Coord
▸ RefCad

mbxEnumLinkType

mbxEnumLinkType
Static Members
▸ Info
▸ Func

mbxMap

MapiaBox web map class. Main map on which user can add mbxControls and mbxLayers.

mbxMap(sAuthenticateKey: string)
Parameters
sAuthenticateKey (string)
Instance Members
▸ VERSION
▸ BUILT
▸ UPDATED
▸ MBXPATH
▸ MODULES
▸ Name
▸ Description
▸ Id
▸ Properties
▸ LMap
▸ ActiveZoneCode
▸ Zones
▸ PublicLayers
▸ DrawLayer
▸ MapControls
▸ Groups
▸ Layers
▸ Views
▸ OnChangeZone()
▸ CreateNewMap(sMapDivID, sPanelControlDivID, sModalDivID, bFullScreenControl, oMapOptions)
▸ InitializeMapFromParams(paramsString, closeOverlays)
▸ InitializeMapFromGetRequest()
▸ UpdateMap(bCenterMap)
▸ InvalidateSize()
▸ CreateLinkToShareCurrentViewMap(latitude?, longitude?)
▸ ShowInformation(nTimeOut?)
▸ ShowAboutUs()
▸ ShowMessage(sType?, sTitle, sMessage, sNotes, sImg?)
▸ ShowFeatureInformation(bPopUp, feature, layer, null)
▸ DeactivateCommands(sActiveCode)
▸ ControlIsDefined(sCode)
▸ ControlIsAdded(sCode)
▸ ControlGetFromCode(sCode)
▸ ControlRemove(sCode, bCleanAll)
▸ ControlAddMapTitle(sCode, sHTMLTitle)
▸ ControlAddQuickButton(sCode, sTooltip, sSize, sIconImage, sPosition, oFunction)
▸ ControlAddQuickButtonWithOptions(sCode, oOptions, oFunction)
▸ ControlQuickButtonChangeFunction(oButton, oNewFunction)
▸ ControlAddCompareApp()
▸ ControlAddViewer3DApp()
▸ ControlAddSideBar(sCode, sTargetDivId, sPosition, bAddCloseButton, bAutoPan, nTimeOut)
▸ ControlAddLayers()
▸ ControlAddLayersSelector(sCode, options)
▸ ControlAddBaseMapSwitch(options)
▸ ControlAddBaseMapSwitchMultiple(options)
▸ ControlLayersSelectorChangeValue(sCode, sValue)
▸ ControlAddMapiaBox()
▸ ControlAddRestoreView()
▸ ControlAddMeasure()
▸ ControlAddShareMap()
▸ ControlAddShareMapPoint()
▸ ControlAddScale(options)
▸ ControlAddMinimap(oMiniMapLayer, bStartOpened)
▸ ControlAddICCHeight5x5(bPopUp)
▸ ControlAddGoogleStreeView(bOpenDirectly)
▸ ControlAddLocatePosition(oOptions?)
▸ ControlAddCustomLegend(sControlCode, sLegendDivId, options)
▸ ControlAddRouting()
▸ ControlAddVideoLayer(options)

Query

Query
Returns
object: (mbxQuery) To handle queries on MapiaBox. Automatically created on map creation

PanelControl

PanelControl
Returns
string: To show information in a div. Created on map creation.

ModalDiv

ModalDiv
Returns
html: To show modal dialogs

mbxControl

mbxControl class.

mbxControl(sCode: string, oControl: object, sType: string)
Parameters
sCode (string) control code
oControl (object) control object
sType (string) control type

mbxGroup

mbxGroup class.

mbxGroup(sCode: string, sName: string, options: object)
Parameters
sCode (string) group code
sName (string) group name
options (object) group options object

mbxLayer

mbxLayer class.

mbxLayer(oLayer: string, sName: string, options: object)
Parameters
oLayer (string) layer code
sName (string) layer name
options (object) layer options object
Instance Members
▸ AddToMap(oMap, options)
▸ RemoveFromMap(oMap, bForceNoVisible)
▸ CloneLayer()

mbxView

Class to define new views with active layers

mbxView(sCode: string, sName: string, options: object)
Parameters
sCode (string) View code
sName (string) View name
options (object) mbxView options
Instance Members
▸ AddLayerByName(sLayerName)
▸ CloneView()

Class to define a new mbxLink

mbxLink(sCode: string, sName: string, options: object)
Parameters
sCode (string) Link code
sName (string) Link name
options (object) mbxLink options
Instance Members

mbxZone

Class to define a new mbxZone

mbxZone(sZoneCode: string, options: object)
Parameters
sZoneCode (string) Zone code
options (object) mbxZone options
Instance Members
▸ AddView(oMbxView)
▸ AddLayer(oMbxLayer)
▸ RemoveAllLayersFromMap(oMap, bForceNoVisible)
▸ GetMapOptions()
▸ CloneZone()

mbxConfigurations

mbxConfigurations object to configure MapiaBoxWeb map

mbxConfigurations(oMbxParent: object, oMbxConfigs: object)
Parameters
oMbxParent (object) MapiaBoxWeb map to configure
oMbxConfigs (object)
Instance Members
▸ UpdateOnMbx(sConfigType)
▸ SetMainProperties(mbxConfig)
▸ LoadControl(mbxConfig)
▸ GetZone(mbxConfig, bAdd)
▸ GetGroup(mbxConfig, bAdd)
▸ GetLayer(mbxConfig, bAdd)

mbxUtils

mbxUtils class

mbxUtils()
Instance Members
▸ gup(name)
▸ gupString(string, name)
▸ gupMultiple(name)
▸ CloneLeafletLayer(layer)
▸ IsFullPathURL(sURL)
▸ GetICC5x5Elevation(xmin, ymin, xmax, ymax, callback)
▸ GetRefCadFromXY(sSRS, x, y, sRc, callback)
▸ GetProvMunFromRefCad(sCadRef, callback)
▸ MapiaClassicsFeatureStyle(feature)
▸ MapiaClassicsFeatureStyleClick(feature)
▸ MapiaClassicsFeatureStyleNoClick(feature)
▸ CreateTextMarker(sText, oPosition, oAddToLayer, sClassName?)
▸ GoogleShortUrlLoad()
▸ GoogleShortUrlMakeShort(sLongURL, CallBackFunction)
▸ GoogleShortUrlGetShortInfo(sShortURL)
▸ PopupWindow(url, title, w, h)
▸ CalculateArea(latLngs)
▸ CalculateDistance(latLngs)
▸ CopyToClipboard(jQuerySelector, elem)
▸ CalculateCenterPoint(latLng1, latLng2)
▸ ReadCSV(csvUrl, latField, lonField, delimiterChar?, callback)

mbxPublicLayers

Gives easy access to default MapiaBox Public Layers

mbxPublicLayers()
Instance Members
▸ EmptyGrey()
▸ ICCDelim()
▸ ICCTopo()
▸ ICCOrto()
▸ ICCOrtoGrey(bUtm)
▸ ICCTopoGrey(bUtm)
▸ ICCOmbresClar()
▸ ICCOmbresFosc()
▸ ICCOmbresMoltFosc()
▸ ICCTopoSimple()
▸ ICCNomsCarrers()
▸ ICCVertexs()
▸ ICCGeo()
▸ ICCHistName(nYear, nScale?, sOutput?)
▸ ICCHistExistByName(sLayerName)
▸ ICCHistExist(nYear, nScale)
▸ ICCHistoric(nYear, nScale)
▸ AMBHistoric1965()
▸ AMBHistoric1961()
▸ PNOA()
▸ PNOAMosaico()
▸ PNOA2004()
▸ PNOA2005()
▸ PNOA2006()
▸ PNOA2007()
▸ PNOA2008()
▸ PNOA2009()
▸ PNOA2010()
▸ IGNUnidadAdministrativa()
▸ IGNMapasraster()
▸ IGNMapaBase()
▸ IGNMDTElevaciones()
▸ IGNMDTOrientaciones()
▸ IGNMDTPendientes()
▸ OSM()
▸ OSMGrey()
▸ DGC()
▸ DGCTransparent()
▸ DGCNoTiles()
▸ DGCNoTilesOpaque()
▸ CartoDB()
▸ CartoDBLight()
▸ CartoDBDark()
▸ CartoDBLightNoLabels()
▸ CartoDBDarkNoLabels()
▸ ESRIWorldImagery()

mbxGeographic

MapiaBox geographic utilities.

mbxGeographic()
Instance Members
▸ DegToRad(deg)
▸ RadToDeg(rad)
▸ CalculateUTMZone(lon)
▸ ArcLengthOfMeridian(phi)
▸ UTMCentralMeridian(zone)
▸ FootpointLatitude(y)
▸ MapLatLonToXY(phi, lambda, lambda0, xy)
▸ MapXYToLatLon(x, y, lambda0, philambda)
▸ LatLonToUTMXY(lat, lon, zone, xy)
▸ UTMXYToLatLon(x, y, zone, southhemi, latlon)