Class: arcGisSearcher

arcGisSearcher

Searches an arcGIS service.

new arcGisSearcher(options)

Parameters:
Name Type Description
options Object arcGisSearcher expects these properties:
Properties
Name Type Description
host string "Service endpoint (SpatialSuite Url) eg.: [http:]//sps-demo.septima.dk[:80]. Protocol and port are optional"
datasources string Comma separated list of indexed data sources to search. Default: "*"
Source:
  • searchers/arcGisSearcher.js, line 24
Example
 
var arcGisSearcherOptions = {
    catalogUrl : http:// " eg: "http://kortservice.vejle.dk/gis/rest/services",
    serviceName: "[folder/]service" eg: "GISWEB2/FamilieSocial",
    onSelect : function(result) {
         jQuery('#log').prepend(''+ ArcGIS objekt + ': '+ result.title + '
'); }, layers : "*" or ["layer1Name", "layer2Name"], matchesPhrase: "Begynder med ", searchDelay: 200 }; searchers.push({title : '', searcher : new Septima.Search.arcGisSearcher(arcGisSearcherOptions)});

Extends

Methods

addCustomButtonDef(customButtonDef)

Displays an icon next to each result.
Parameters:
Name Type Description
customButtonDef Septima.Search.Searcher.CustomButtonDef
Inherited From:
Source:
  • searchers/searcher.js, line 362

createQueryResult() → {Septima.Search.QueryResult}

Create a {Septima.Search.QueryResult}.
Inherited From:
Source:
  • searchers/searcher.js, line 180
Returns:
Type
Septima.Search.QueryResult

getCentroid(geoJsonObject) → {GeoJsonObject}

Find the centroid
Parameters:
Name Type Description
geoJsonObject geoJsonObject
Inherited From:
Source:
  • searchers/searcher.js, line 212
Returns:
Type
GeoJsonObject

getPointOnSurface(geoJsonObject) → {GeoJsonObject}

Find a point guaranteed to lie on the surface
Parameters:
Name Type Description
geoJsonObject geoJsonObject
Inherited From:
Source:
  • searchers/searcher.js, line 200
Returns:
Type
GeoJsonObject

registerTarget(target)

Register a target.
Parameters:
Name Type Description
target string
Inherited From:
Source:
  • searchers/searcher.js, line 165

translateWktToGeoJsonObject(wkt) → {GeoJsonObject}

Convert a wkt string to a geojson object
Parameters:
Name Type Description
wkt string
Inherited From:
Source:
  • searchers/searcher.js, line 189
Returns:
Type
GeoJsonObject

Type Definitions

selectCallback(result)

This function is called when a result is selected.
Parameters:
Name Type Description
result Object
Properties
Name Type Description
title string
description string
data object arcGIS feature
Properties
Name Type Description
heading string title
Source:
  • searchers/arcGisSearcher.js, line 32