generated from ajturner/ajturner-prototype-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
192 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# hub-compass-map | ||
|
||
|
||
|
||
<!-- Auto Generated Below --> | ||
|
||
|
||
## Properties | ||
|
||
| Property | Attribute | Description | Type | Default | | ||
| ------------------- | -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ------------------ | -------------------- | | ||
| `center` | -- | Optional [longitude, latitude] map center | `[number, number]` | `[0,0]` | | ||
| `datasetIds` | -- | Optional array of datasets to add to map | `string[]` | `[]` | | ||
| `mapId` | `map-id` | Optional Map id to display | `string` | `null` | | ||
| `serviceAreaBreaks` | -- | Service area distances in kilomenters Default to 1,5,10 minute based on 4.54km/hr speed | `number[]` | `[0.07, 0.37, 0.75]` | | ||
| `serviceAreaPoint` | `service-area-point` | Optional location to calculate service center. Changing this will update the point | `any` | `null` | | ||
| `session` | `session` | OAuth2 session information https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#registerToken | `any` | `null` | | ||
| `showBasemaps` | `show-basemaps` | Option to show basemap selection | `boolean` | `false` | | ||
| `showLayers` | `show-layers` | Option to show layers | `boolean` | `false` | | ||
| `showLegend` | `show-legend` | Option to show legend | `boolean` | `true` | | ||
| `showSearch` | `show-search` | Option to show search input | `boolean` | `true` | | ||
| `showServiceAreas` | `show-service-areas` | Option to show service areas on map click | `boolean` | `false` | | ||
| `showTable` | `show-table` | Option to show data table | `boolean` | `true` | | ||
| `travelMode` | `travel-mode` | Optional travel mode: walking, etc. TODO fix travel mode type and values | `any` | `null` | | ||
| `zoom` | `zoom` | Optional map zoom level | `number` | `10` | | ||
|
||
|
||
## Events | ||
|
||
| Event | Description | Type | | ||
| ---------- | ----------- | ------------------ | | ||
| `mapSaved` | | `CustomEvent<any>` | | ||
|
||
|
||
## Methods | ||
|
||
### `addDatasetToMap(datasetId: any) => Promise<void>` | ||
|
||
|
||
|
||
#### Returns | ||
|
||
Type: `Promise<void>` | ||
|
||
|
||
|
||
### `filterTables(geometry: any) => Promise<void>` | ||
|
||
|
||
|
||
#### Returns | ||
|
||
Type: `Promise<void>` | ||
|
||
|
||
|
||
### `saveMap(title?: string, snippet?: string) => Promise<{ id: string; url: string; }>` | ||
|
||
|
||
|
||
#### Returns | ||
|
||
Type: `Promise<{ id: string; url: string; }>` | ||
|
||
|
||
|
||
|
||
---------------------------------------------- | ||
|
||
*Built with [StencilJS](https://stenciljs.com/)* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters