Skip to content

arlas-web-contributors > "contributors/MapContributor" > MapContributor

Class: MapContributor

This contributor works with the Angular MapComponent of the Arlas-web-components project. This class make the brigde between the component which displays the data and the collaborativeSearchService of the Arlas-web-core which retrieve the data from the server.

Hierarchy

Contributor

↳ MapContributor

TopoMapContributor

Index

Constructors

Properties

Methods

Object literals


Constructors

constructor

new MapContributor(identifier: any, onRemoveBboxBus: Subject<boolean>, redrawTile: Subject<boolean>, collaborativeSearcheService: CollaborativesearchService, configService: ConfigService, gIntersect?: boolean): MapContributor

Overrides Contributor.__constructor

Defined in contributors/MapContributor.ts:109

Build a new contributor.

Parameters:

Name Type Description
identifier any Identifier of contributor.
onRemoveBboxBus Subject<boolean> @Output of Angular MapComponent, send true when the rectangle of selection is removed.
redrawTile Subject<boolean>
collaborativeSearcheService CollaborativesearchService Instance of CollaborativesearchService from Arlas-web-core.
configService ConfigService Instance of ConfigService from Arlas-web-core.
Optional gIntersect boolean

Returns: MapContributor


Properties

aggregation

● aggregation: Array<Aggregation> = this.getConfigValue('aggregationmodels')

Defined in contributors/MapContributor.ts:108

/** ARLAS Server Aggregation used to draw the data on small zoom level, define in configuration


collaborativeSearcheService

● collaborativeSearcheService: CollaborativesearchService

Overrides Contributor.collaborativeSearcheService

Defined in contributors/MapContributor.ts:122

Instance of CollaborativesearchService from Arlas-web-core.


configService

● configService: ConfigService

Overrides Contributor.configService

Defined in contributors/MapContributor.ts:123

Instance of ConfigService from Arlas-web-core.


countExtendBus

● countExtendBus: Subject<object> = new Subject<{ count: number, threshold: number }>()

Defined in contributors/MapContributor.ts:102


currentGeohashList

● currentGeohashList: Array<string> = new Array()

Defined in contributors/MapContributor.ts:89


currentStringedTilesList

● currentStringedTilesList: Array<string> = new Array()

Defined in contributors/MapContributor.ts:90


fetchType

● fetchType: fetchType = fetchType.geohash

Defined in contributors/MapContributor.ts:81


geohashList

● geohashList: Array<string> = bboxes(-90, -180, 90, 180, 1)

Defined in contributors/MapContributor.ts:88


geojsonbbox

● geojsonbbox: object

Defined in contributors/MapContributor.ts:77

Type declaration

features: Array<any>

type: string


geomStrategy

● geomStrategy: any = this.getConfigValue('geomStrategy')

Defined in contributors/MapContributor.ts:97


idFieldName

● idFieldName: any = this.getConfigValue('idFieldName')

Defined in contributors/MapContributor.ts:96


identifier

● identifier: any

Overrides Contributor.identifier

Defined in contributors/MapContributor.ts:119

Identifier of contributor.


includeFeaturesFields

● includeFeaturesFields: Array<string> = this.getConfigValue('includeFeaturesFields')

Defined in contributors/MapContributor.ts:79


isBbox

● isBbox: boolean = false

Defined in contributors/MapContributor.ts:91


isFlat

● isFlat: any = this.getConfigValue('isFlat') !== undefined ? this.getConfigValue('isFlat') : true

Defined in contributors/MapContributor.ts:98


isGIntersect

● isGIntersect: boolean = false

Defined in contributors/MapContributor.ts:99


isGeoaggregateCluster

● isGeoaggregateCluster: boolean = true

Defined in contributors/MapContributor.ts:80


mapExtend

● mapExtend: number[] = [90, -180, -90, 180]

Defined in contributors/MapContributor.ts:92


maxPrecision

● maxPrecision: Array<number> = this.getConfigValue('maxPrecision')

Defined in contributors/MapContributor.ts:83


maxValueGeoHash

● maxValueGeoHash: number = 0

Defined in contributors/MapContributor.ts:85


nbMaxFeatureForCluster

● nbMaxFeatureForCluster: any = this.getConfigValue('nbMaxDefautFeatureForCluster')

Defined in contributors/MapContributor.ts:95


onRemoveBboxBus

● onRemoveBboxBus: Subject<boolean>

Defined in contributors/MapContributor.ts:120

@Output of Angular MapComponent, send true when the rectangle of selection is removed.


precision

● precision: any

Defined in contributors/MapContributor.ts:109


redrawTile

● redrawTile: Subject<boolean>

Defined in contributors/MapContributor.ts:121


strategyEnum

● strategyEnum: geomStrategyEnum = geomStrategyEnum

Defined in contributors/MapContributor.ts:100


tiles

● tiles: Array<object> = new Array<{ x: number, y: number, z: number }>()

Defined in contributors/MapContributor.ts:87


zoom

● zoom: any = this.getConfigValue('initZoom')

Defined in contributors/MapContributor.ts:86


zoomLevelForTestCount

● zoomLevelForTestCount: any = this.getConfigValue('zoomLevelForTestCount')

Defined in contributors/MapContributor.ts:94


zoomLevelFullData

● zoomLevelFullData: any = this.getConfigValue('zoomLevelFullData')

Defined in contributors/MapContributor.ts:93


zoomToPrecisionCluster

● zoomToPrecisionCluster: Array<Array<number>> = this.getConfigValue('zoomToPrecisionCluster')

Defined in contributors/MapContributor.ts:82


Methods

computeData

computeData(data: any): any[]

Overrides Contributor.computeData

Defined in contributors/MapContributor.ts:177

Parameters:

Name Type
data any

Returns: any[]


computeDataGeohashGeoaggregate

computeDataGeohashGeoaggregate(featureCollection: FeatureCollection): Array<any>

Defined in contributors/MapContributor.ts:529

Parameters:

Name Type
featureCollection FeatureCollection

Returns: Array<any>


computeDataTileSearch

computeDataTileSearch(featureCollection: FeatureCollection): Array<any>

Defined in contributors/MapContributor.ts:584

Parameters:

Name Type
featureCollection FeatureCollection

Returns: Array<any>


drawGeoaggregateGeohash

drawGeoaggregateGeohash(geohashList: Array<string>): void

Defined in contributors/MapContributor.ts:493

Parameters:

Name Type
geohashList Array<string>

Returns: void


drawSearchTiles

drawSearchTiles(tiles: Array<object>): void

Defined in contributors/MapContributor.ts:480

Parameters:

Name Type
tiles Array<object>

Returns: void


fetchData

fetchData(collaborationEvent: CollaborationEvent): Observable<FeatureCollection>

Overrides Contributor.fetchData

Defined in contributors/MapContributor.ts:135

Parameters:

Name Type
collaborationEvent CollaborationEvent

Returns: Observable<FeatureCollection>


fetchDataGeohashGeoaggregate

fetchDataGeohashGeoaggregate(geohashList: Array<string>): Observable<FeatureCollection>

Defined in contributors/MapContributor.ts:507

Parameters:

Name Type
geohashList Array<string>

Returns: Observable<FeatureCollection>


fetchDataTileSearch

fetchDataTileSearch(tiles: Array<object>): Observable<FeatureCollection>

Defined in contributors/MapContributor.ts:552

Parameters:

Name Type
tiles Array<object>

Returns: Observable<FeatureCollection>


getBoundsToFit

getBoundsToFit(elementidentifier: ElementIdentifier): Observable<Array<Array<number>>>

Defined in contributors/MapContributor.ts:269

Parameters:

Name Type
elementidentifier ElementIdentifier

Returns: Observable<Array<Array<number>>>


getConfigValue

getConfigValue(key: string): any

Inherited from Contributor.getConfigValue

Defined in /docs/node_modules/arlas-web-core/models/contributor.d.ts:24

Parameters:

Name Type Description
key string a `key` defined in configuration.

Returns: any value of the key in configuration.


getFeatureToHightLight

getFeatureToHightLight(elementidentifier: ElementIdentifier): object

Defined in contributors/MapContributor.ts:284

Parameters:

Name Type
elementidentifier ElementIdentifier

Returns: object


getFilterDisplayName

getFilterDisplayName(): string

Overrides Contributor.getFilterDisplayName

Defined in contributors/MapContributor.ts:309

Returns: string Pretty name of contribution.


getFilterForCount

getFilterForCount(pwithin: string): object

Defined in contributors/MapContributor.ts:636

Parameters:

Name Type
pwithin string

Returns: object


getName

getName(): string

Inherited from Contributor.getName

Defined in /docs/node_modules/arlas-web-core/models/contributor.d.ts:28

Returns: string name of contributor set in configuration.


getNbMaxFeatureFromZoom

getNbMaxFeatureFromZoom(zoom: number): void

Defined in contributors/MapContributor.ts:624

Parameters:

Name Type
zoom number

Returns: void


getPackageName

getPackageName(): string

Overrides Contributor.getPackageName

Defined in contributors/MapContributor.ts:303

Returns: string Package name for the configuration service.


getPrecisionFromZoom

getPrecisionFromZoom(zoom: number): number

Defined in contributors/MapContributor.ts:605

Parameters:

Name Type
zoom number

Returns: number


onChangeBbox

onChangeBbox(newBbox: Array<Object>): void

Defined in contributors/MapContributor.ts:319

Parameters:

Name Type
newBbox Array<Object>

Returns: void


onMove

onMove(newMove: OnMoveResult): void

Defined in contributors/MapContributor.ts:367

Function call on onMove event output component

Parameters:

Name Type
newMove OnMoveResult

Returns: void


onRemoveBbox

onRemoveBbox(isBboxRemoved: boolean): void

Defined in contributors/MapContributor.ts:471

Parameters:

Name Type
isBboxRemoved boolean

Returns: void


setData

setData(data: any): any

Overrides Contributor.setData

Defined in contributors/MapContributor.ts:195

Parameters:

Name Type
data any

Returns: any


setDataGeohashGeoaggregate

setDataGeohashGeoaggregate(features: Array<any>): any

Defined in contributors/MapContributor.ts:545

Parameters:

Name Type
features Array<any>

Returns: any


setDataTileSearch

setDataTileSearch(features: Array<any>): any

Defined in contributors/MapContributor.ts:600

Parameters:

Name Type
features Array<any>

Returns: any


setGIntersect

setGIntersect(active: boolean): void

Defined in contributors/MapContributor.ts:188

Parameters:

Name Type
active boolean

Returns: void


setGeomStrategy

setGeomStrategy(geomStrategy: string): void

Defined in contributors/MapContributor.ts:191

Parameters:

Name Type
geomStrategy string

Returns: void


setSelection

setSelection(data: any, collaboration: Collaboration): any

Overrides Contributor.setSelection

Defined in contributors/MapContributor.ts:207

Parameters:

Name Type
data any
collaboration Collaboration

Returns: any


switchLayerCluster

switchLayerCluster(style: Style): void

Defined in contributors/MapContributor.ts:274

Parameters:

Name Type
style Style

Returns: void


wrap

wrap(n: number, min: number, max: number): number

Defined in contributors/MapContributor.ts:313

Parameters:

Name Type
n number
min number
max number

Returns: number


<Static> getJsonSchema

getJsonSchema(): Object

Defined in contributors/MapContributor.ts:132

Returns: Object


Object literals

geojsondata

geojsondata: object

Defined in contributors/MapContributor.ts:73

Data to display geoaggregate data or search Data, use in MapComponent @Input

features

● features: undefined[] = []

Defined in contributors/MapContributor.ts:75


type

● type: string = "FeatureCollection"

Defined in contributors/MapContributor.ts:74