Skip to content

arlas-web-contributors > "contributors/TopoMapContributor" > TopoMapContributor

Class: TopoMapContributor

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

MapContributor

↳ TopoMapContributor

Index

Constructors

Properties

Methods

Object literals


Constructors

constructor

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

Overrides MapContributor.constructor

Defined in contributors/TopoMapContributor.ts:57

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: TopoMapContributor


Properties

aggregation

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

Inherited from MapContributor.aggregation

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 MapContributor.collaborativeSearcheService

Defined in contributors/TopoMapContributor.ts:70

Instance of CollaborativesearchService from Arlas-web-core.


configService

● configService: ConfigService

Overrides MapContributor.configService

Defined in contributors/TopoMapContributor.ts:71

Instance of ConfigService from Arlas-web-core.


countExtendBus

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

Inherited from MapContributor.countExtendBus

Defined in contributors/MapContributor.ts:102


currentGeohashList

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

Inherited from MapContributor.currentGeohashList

Defined in contributors/MapContributor.ts:89


currentStringedTilesList

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

Inherited from MapContributor.currentStringedTilesList

Defined in contributors/MapContributor.ts:90


fetchType

● fetchType: fetchType = fetchType.geohash

Inherited from MapContributor.fetchType

Defined in contributors/MapContributor.ts:81


geohashList

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

Inherited from MapContributor.geohashList

Defined in contributors/MapContributor.ts:88


geojsonbbox

● geojsonbbox: object

Inherited from MapContributor.geojsonbbox

Defined in contributors/MapContributor.ts:77

Type declaration

features: Array<any>

type: string


geomStrategy

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

Inherited from MapContributor.geomStrategy

Defined in contributors/MapContributor.ts:97


idFieldName

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

Inherited from MapContributor.idFieldName

Defined in contributors/MapContributor.ts:96


identifier

● identifier: any

Overrides MapContributor.identifier

Defined in contributors/TopoMapContributor.ts:67

Identifier of contributor.


includeFeaturesFields

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

Inherited from MapContributor.includeFeaturesFields

Defined in contributors/MapContributor.ts:79


isBbox

● isBbox: boolean = false

Inherited from MapContributor.isBbox

Defined in contributors/MapContributor.ts:91


isFlat

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

Inherited from MapContributor.isFlat

Defined in contributors/MapContributor.ts:98


isGIntersect

● isGIntersect: boolean = false

Inherited from MapContributor.isGIntersect

Defined in contributors/MapContributor.ts:99


isGeoaggregateCluster

● isGeoaggregateCluster: boolean = true

Inherited from MapContributor.isGeoaggregateCluster

Defined in contributors/MapContributor.ts:80


mapExtend

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

Inherited from MapContributor.mapExtend

Defined in contributors/MapContributor.ts:92


maxPrecision

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

Inherited from MapContributor.maxPrecision

Defined in contributors/MapContributor.ts:83


maxValueGeoHash

● maxValueGeoHash: number = 0

Inherited from MapContributor.maxValueGeoHash

Defined in contributors/MapContributor.ts:85


nbMaxFeatureForCluster

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

Inherited from MapContributor.nbMaxFeatureForCluster

Defined in contributors/MapContributor.ts:95


onRemoveBboxBus

● onRemoveBboxBus: Subject<boolean>

Overrides MapContributor.onRemoveBboxBus

Defined in contributors/TopoMapContributor.ts:68

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


precision

● precision: any

Inherited from MapContributor.precision

Defined in contributors/MapContributor.ts:109


redrawTile

● redrawTile: Subject<boolean>

Overrides MapContributor.redrawTile

Defined in contributors/TopoMapContributor.ts:69


strategyEnum

● strategyEnum: geomStrategyEnum = geomStrategyEnum

Inherited from MapContributor.strategyEnum

Defined in contributors/MapContributor.ts:100


tiles

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

Inherited from MapContributor.tiles

Defined in contributors/MapContributor.ts:87


zoom

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

Inherited from MapContributor.zoom

Defined in contributors/MapContributor.ts:86


zoomLevelForTestCount

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

Inherited from MapContributor.zoomLevelForTestCount

Defined in contributors/MapContributor.ts:94


zoomLevelFullData

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

Inherited from MapContributor.zoomLevelFullData

Defined in contributors/MapContributor.ts:93


zoomToPrecisionCluster

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

Inherited from MapContributor.zoomToPrecisionCluster

Defined in contributors/MapContributor.ts:82


Methods

computeData

computeData(data: any): any[]

Overrides MapContributor.computeData

Defined in contributors/TopoMapContributor.ts:121

Parameters:

Name Type
data any

Returns: any[]


computeDataGeohashGeoaggregate

computeDataGeohashGeoaggregate(featureCollection: FeatureCollection): Array<any>

Overrides MapContributor.computeDataGeohashGeoaggregate

Defined in contributors/TopoMapContributor.ts:269

Parameters:

Name Type
featureCollection FeatureCollection

Returns: Array<any>


computeDataTileSearch

computeDataTileSearch(featureCollection: FeatureCollection): Array<any>

Inherited from MapContributor.computeDataTileSearch

Defined in contributors/MapContributor.ts:584

Parameters:

Name Type
featureCollection FeatureCollection

Returns: Array<any>


drawGeoaggregateGeohash

drawGeoaggregateGeohash(geohashList: Array<string>): void

Inherited from MapContributor.drawGeoaggregateGeohash

Defined in contributors/MapContributor.ts:493

Parameters:

Name Type
geohashList Array<string>

Returns: void


drawSearchTiles

drawSearchTiles(tiles: Array<object>): void

Inherited from MapContributor.drawSearchTiles

Defined in contributors/MapContributor.ts:480

Parameters:

Name Type
tiles Array<object>

Returns: void


drawTopoGeoaggregateGeohash

drawTopoGeoaggregateGeohash(geohashList: Array<string>, filter: Filter): void

Defined in contributors/TopoMapContributor.ts:255

Parameters:

Name Type
geohashList Array<string>
filter Filter

Returns: void


fetchData

fetchData(collaborationEvent: CollaborationEvent): Observable<any>

Overrides MapContributor.fetchData

Defined in contributors/TopoMapContributor.ts:84

Parameters:

Name Type
collaborationEvent CollaborationEvent

Returns: Observable<any>


fetchDataGeohashGeoaggregate

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

Overrides MapContributor.fetchDataGeohashGeoaggregate

Defined in contributors/TopoMapContributor.ts:129

Parameters:

Name Type
geohashList Array<string>

Returns: Observable<FeatureCollection>


fetchDataTileSearch

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

Inherited from MapContributor.fetchDataTileSearch

Defined in contributors/MapContributor.ts:552

Parameters:

Name Type
tiles Array<object>

Returns: Observable<FeatureCollection>


fetchTopoDataGeohashGeoaggregate

fetchTopoDataGeohashGeoaggregate(geohashList: Array<string>, filter: Filter): Observable<FeatureCollection>

Defined in contributors/TopoMapContributor.ts:133

Parameters:

Name Type
geohashList Array<string>
filter Filter

Returns: Observable<FeatureCollection>


getBoundsToFit

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

Inherited from MapContributor.getBoundsToFit

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

Inherited from MapContributor.getFeatureToHightLight

Defined in contributors/MapContributor.ts:284

Parameters:

Name Type
elementidentifier ElementIdentifier

Returns: object


getFilterDisplayName

getFilterDisplayName(): string

Inherited from MapContributor.getFilterDisplayName

Overrides Contributor.getFilterDisplayName

Defined in contributors/MapContributor.ts:309

Returns: string Pretty name of contribution.


getFilterForCount

getFilterForCount(pwithin: string): object

Inherited from MapContributor.getFilterForCount

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

Inherited from MapContributor.getNbMaxFeatureFromZoom

Defined in contributors/MapContributor.ts:624

Parameters:

Name Type
zoom number

Returns: void


getPackageName

getPackageName(): string

Overrides MapContributor.getPackageName

Defined in contributors/TopoMapContributor.ts:77

Returns: string


getPrecisionFromZoom

getPrecisionFromZoom(zoom: number): number

Inherited from MapContributor.getPrecisionFromZoom

Defined in contributors/MapContributor.ts:605

Parameters:

Name Type
zoom number

Returns: number


onChangeBbox

onChangeBbox(newBbox: Array<Object>): void

Inherited from MapContributor.onChangeBbox

Defined in contributors/MapContributor.ts:319

Parameters:

Name Type
newBbox Array<Object>

Returns: void


onMove

onMove(newMove: OnMoveResult): void

Overrides MapContributor.onMove

Defined in contributors/TopoMapContributor.ts:160

Function called on onMove event emitted by the mapcomponent output

Parameters:

Name Type
newMove OnMoveResult

Returns: void


onRemoveBbox

onRemoveBbox(isBboxRemoved: boolean): void

Inherited from MapContributor.onRemoveBbox

Defined in contributors/MapContributor.ts:471

Parameters:

Name Type
isBboxRemoved boolean

Returns: void


setData

setData(data: any): any

Overrides MapContributor.setData

Defined in contributors/TopoMapContributor.ts:125

Parameters:

Name Type
data any

Returns: any


setDataGeohashGeoaggregate

setDataGeohashGeoaggregate(features: Array<any>): any

Overrides MapContributor.setDataGeohashGeoaggregate

Defined in contributors/TopoMapContributor.ts:286

Parameters:

Name Type
features Array<any>

Returns: any


setDataTileSearch

setDataTileSearch(features: Array<any>): any

Inherited from MapContributor.setDataTileSearch

Defined in contributors/MapContributor.ts:600

Parameters:

Name Type
features Array<any>

Returns: any


setGIntersect

setGIntersect(active: boolean): void

Inherited from MapContributor.setGIntersect

Defined in contributors/MapContributor.ts:188

Parameters:

Name Type
active boolean

Returns: void


setGeomStrategy

setGeomStrategy(geomStrategy: string): void

Inherited from MapContributor.setGeomStrategy

Defined in contributors/MapContributor.ts:191

Parameters:

Name Type
geomStrategy string

Returns: void


setSelection

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

Inherited from MapContributor.setSelection

Overrides Contributor.setSelection

Defined in contributors/MapContributor.ts:207

Parameters:

Name Type
data any
collaboration Collaboration

Returns: any


switchLayerCluster

switchLayerCluster(style: Style): void

Inherited from MapContributor.switchLayerCluster

Defined in contributors/MapContributor.ts:274

Parameters:

Name Type
style Style

Returns: void


wrap

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

Inherited from MapContributor.wrap

Defined in contributors/MapContributor.ts:313

Parameters:

Name Type
n number
min number
max number

Returns: number


<Static> getJsonSchema

getJsonSchema(): Object

Overrides MapContributor.getJsonSchema

Defined in contributors/TopoMapContributor.ts:80

Returns: Object


Object literals

geojsondata

geojsondata: object

Inherited from MapContributor.geojsondata

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