Extends
Methods
-
Clear all painted overlays on the map related to this control
-
Closes address UI address element
-
Set current address to routing destination. If there is navbar enabled destination route is assigned with current opened address
-
Returns
cercaliaMap objectReturns:
Cercalia map.
-
Get class name.
Returns:
Class name.
-
Return geoentity data
module:cercaliagl/servers~GeEntityfrom current address. Returnsnullif this control isn't showing anyReturns:
ge GeEntity.
-
Get direction giving position and shows response in UI address component. Optionally, you can provide addition callback function.
Name Type Description lonLatmodule:cercaliagl/LonLat~LonLat Position
hideMarkerboolean Disables the default option to create a marker on the position
hidePopUpboolean Disables the default option to show a popup with the position information
callbackFnfunction Optional callback function
-
Get control HTML Element
Returns:
HTML Element
-
Get control id.
Returns:
Id.
-
Returns
mapboxglMap object -
Get control name. Null if control has not defined name.
Returns:
Class name.
-
Center map to coordinates and draw a marker with a label with position coordinates. It doesn't obtain reverse geocoding data.
Name Type Description lonLatmodule:cercaliagl/LonLat~LonLat Position.
panToboolean Pan Zoom to position.
-
Open a direction using GeEntity from server response. Then it shows addres UI with filled data about address components
Name Type Description gemodule:cercaliagl/servers~GeEntity GeEntity.
panToboolean (defaults to true) Pan Zoom to position.
ge.articlestring | null | undefined ge.citymodule:cercaliagl/servers~ObjectJSON | null | undefined ge.coordmodule:cercaliagl/servers~Coord | null | undefined ge.countrymodule:cercaliagl/servers~ObjectJSON | null | undefined ge.diststring | null | undefined ge.frcstring | null | undefined ge.housenumbermodule:cercaliagl/servers~ObjectJSON | null | undefined ge.idstring | null | undefined ge.intersectionmodule:cercaliagl/servers~Intersection | null | undefined ge.kmmodule:cercaliagl/servers~ObjectJSON | null | undefined ge.kmhstring | null | undefined ge.labelstring | null | undefined ge.geometrymodule:cercaliagl/servers~GeEntityGeometry | null | undefined ge.municipalitymodule:cercaliagl/servers~ObjectJSON | null | undefined ge.namemodule:cercaliagl/servers~ObjectJSON | string | undefined ge.posstring | null | undefined ge.postalcodemodule:cercaliagl/servers~ObjectJSON | module:cercaliagl/servers~PostalCode | null | undefined ge.prefixstring | null | undefined ge.regionmodule:cercaliagl/servers~ObjectJSON | null | undefined ge.snamemodule:cercaliagl/servers~ObjectJSON | string | null | undefined ge.subcategory_idmodule:cercaliagl/servers~ObjectJSON | string | null | undefined ge.subregionmodule:cercaliagl/servers~ObjectJSON | null | undefined ge.typestring | null | undefined ge.zonenamestring | null | undefined ge.zonetypestring | null | undefined ge.heightstring | null | undefined ge.pc2string | null | undefined ge.poi_datamodule:cercaliagl/servers~PoiData | undefined -
Make a geocoding request to obtain postal code by country. It shows a marker and draw a polygon with its extension. Once postal code data is returned this function pan to postal code centroid. Optionally is possible to disable this pan.
Name Type Description countryIdstring Country Id. For example:
ESPorFRA.pcodestring Postal code.
panToboolean (defaults to true) Optional pan to location.
-
Hide control.
-
Add a custom callback function called when a address is searched via context menu map. This function will receive
LonLatandProximityResultName Type Description callbackFnfunction | null Callback function
-
Show control.