new GoBuffer(paramService, dataBuffer, distance, style, lookingForDataNames, pipeLayerName, stylePoint)
Interactions/geoTools/buffer/index.ts, line 17
Creates an instance of GoBuffer.
| Name | Type | Description |
|---|---|---|
paramService |
bufferParams |
The parameters for the buffer service. |
dataBuffer |
Array.<unknown> |
The data to be buffered. |
distance |
number |
The distance for the buffer. |
style |
Style | styleFromUser |
The style for the buffer. |
lookingForDataNames |
Array.<string> |
The names of the data to look for. |
pipeLayerName |
string |
The name of the pipe layer. |
stylePoint |
ISVGIcon |
The style for the points. |
Members
-
bufferLayer
-
Gets the buffer layer.
Methods
-
getLayerBufferData(){VectorLayer.<VectorSource>|undefined}
Interactions/geoTools/buffer/index.ts, line 169 -
Get the layer of buffer
Returns:
Type Description VectorLayer.<VectorSource> | undefined Vector layer of the buffer -
getLayerParams(){bufferParams}
Interactions/geoTools/buffer/index.ts, line 212 -
Gets the parameters for the buffer layer.
Returns:
Type Description bufferParams The parameters of the buffer layer. -
init(idBuffer, dataBuffer, styleFromUser, map){CancelablePromise.<(GeoJSON|undefined)>}
Interactions/geoTools/buffer/index.ts, line 126 -
Initializes the buffer with the given parameters.
Name Type Description idBufferstring The ID of the buffer layer.
dataBufferbufferParams The data for the buffer.
styleFromUserstyleFromUser The style from the user.
mapGOStagingMap The map instance.
Returns:
Type Description CancelablePromise.<(GeoJSON|undefined)> The promise that resolves to the buffer data. -
staticGoBuffer.is_json(str){boolean}
Interactions/geoTools/buffer/index.ts, line 28 -
Checks if a string is valid JSON.
Name Type Description strstring The string to check.
Returns:
Type Description boolean True if the string is valid JSON, otherwise false.
