expo-arcgis 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/android/src/main/java/expo/modules/arcgis/ExpoArcgisModule.kt +9 -0
- package/build/ExpoArcgisModule.d.ts +6 -0
- package/build/ExpoArcgisModule.d.ts.map +1 -1
- package/build/ExpoArcgisModule.js.map +1 -1
- package/build/MapSettings.d.ts +8 -3
- package/build/MapSettings.d.ts.map +1 -1
- package/build/MapSettings.js +8 -3
- package/build/MapSettings.js.map +1 -1
- package/ios/ExpoArcgisModule.swift +14 -0
- package/package.json +2 -2
- package/src/ExpoArcgisModule.ts +6 -0
- package/src/MapSettings.tsx +14 -3
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ SDK-faithful component API to JS/TS — `<MapView>` / `<SceneView>` with layers,
|
|
|
6
6
|
editing, query, analysis, geocoding, routing, geoprocessing, utility networks, offline, real-time and
|
|
7
7
|
authentication.
|
|
8
8
|
|
|
9
|
-
📖 **[Documentation & samples →](https://
|
|
9
|
+
📖 **[Documentation & samples →](https://mapforge.dev/expo-arcgis)**
|
|
10
10
|
|
|
11
11
|
## Features
|
|
12
12
|
|
|
@@ -3,6 +3,7 @@ package expo.modules.arcgis
|
|
|
3
3
|
import android.content.Context
|
|
4
4
|
import com.arcgismaps.ApiKey
|
|
5
5
|
import com.arcgismaps.ArcGISEnvironment
|
|
6
|
+
import com.arcgismaps.LicenseKey
|
|
6
7
|
import com.arcgismaps.httpcore.authentication.OAuthApplicationCredential
|
|
7
8
|
import com.arcgismaps.httpcore.authentication.OAuthUserCredential
|
|
8
9
|
import com.arcgismaps.httpcore.authentication.TokenCredential
|
|
@@ -33,6 +34,14 @@ class ExpoArcgisModule : Module() {
|
|
|
33
34
|
ArcGISEnvironment.apiKey = ApiKey.create(apiKey)
|
|
34
35
|
}
|
|
35
36
|
|
|
37
|
+
// Apply a deployment license string to remove the "Licensed for Developer Use Only" watermark.
|
|
38
|
+
// Returns the license status: "valid" / "invalid" / "expired" / "loginRequired".
|
|
39
|
+
Function("setLicense") { licenseKey: String ->
|
|
40
|
+
val key = LicenseKey.create(licenseKey)
|
|
41
|
+
val status = if (key != null) ArcGISEnvironment.setLicense(key)?.licenseStatus else null
|
|
42
|
+
status?.javaClass?.simpleName?.replaceFirstChar { it.lowercase() } ?: "invalid"
|
|
43
|
+
}
|
|
44
|
+
|
|
36
45
|
// Token auth for secured services (e.g. utility-network feature services) — store the login;
|
|
37
46
|
// the challenge handler mints a TokenCredential for the exact challenged resource on demand.
|
|
38
47
|
// `tokenExpirationMinutes` is optional; the server's default expiry is used when omitted.
|
|
@@ -252,6 +252,12 @@ export type GeoModelRef = MapRef | SceneRef;
|
|
|
252
252
|
declare class ExpoArcgisModule extends NativeModule {
|
|
253
253
|
/** Sets the ArcGIS API key (access token) used to authenticate with ArcGIS services. */
|
|
254
254
|
setApiKey(apiKey: string): void;
|
|
255
|
+
/**
|
|
256
|
+
* Applies a deployment license string, removing the "Licensed for Developer Use Only" watermark.
|
|
257
|
+
* Returns the resulting license status (`"valid"`, `"invalid"`, `"expired"` or `"loginRequired"`).
|
|
258
|
+
* Separate from {@link setApiKey}: the key authenticates services, the license unlocks deployment.
|
|
259
|
+
*/
|
|
260
|
+
setLicense(licenseKey: string): string;
|
|
255
261
|
/**
|
|
256
262
|
* Stores a login used to authenticate token-secured services (e.g. a utility-network feature
|
|
257
263
|
* service). The challenge handler mints a `TokenCredential` for the exact resource the SDK
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpoArcgisModule.d.ts","sourceRoot":"","sources":["../src/ExpoArcgisModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAuB,MAAM,MAAM,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,EACnB,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,EAAE,KAAK,KAAK,EAAE,aAAa,KAAK,QAAQ,CAAC;IACpD,kBAAkB,EAAE,KAAK,KAAK,EAAE,oBAAoB,KAAK,QAAQ,CAAC;IAClE,qBAAqB,EAAE,KAAK,KAAK,EAAE,uBAAuB,KAAK,qBAAqB,CAAC;IACrF,kBAAkB,EAAE,UAAU,kBAAkB,CAAC;IACjD,UAAU,EAAE,KAAK,KAAK,EAAE,YAAY,KAAK,UAAU,CAAC;IACpD,iBAAiB,EAAE,UAAU,iBAAiB,CAAC;IAC/C,kBAAkB,EAAE,UAAU,kBAAkB,CAAC;IACjD,WAAW,EAAE,KAAK,KAAK,EAAE,aAAa,KAAK,WAAW,CAAC;IACvD,qBAAqB,EAAE,KAAK,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,uBAAuB,KAAK,qBAAqB,CAAC;IAC1G,cAAc,EAAE,KAAK,KAAK,EAAE,IAAI,CAAC,gBAAgB,EAAE,UAAU,GAAG,QAAQ,CAAC,KAAK,cAAc,CAAC;IAC7F,wBAAwB,EAAE,KAAK,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,KAAK,wBAAwB,CAAC;IACrG,sBAAsB,EAAE,KACtB,KAAK,EAAE,IAAI,CAAC,wBAAwB,EAAE,eAAe,GAAG,aAAa,CAAC,KACnE,sBAAsB,CAAC;CAE7B;;AAED,wBAAmE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpoArcgisModule.js","sourceRoot":"","sources":["../src/ExpoArcgisModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,mBAAmB,EAAE,MAAM,MAAM,CAAC;AA8YzD,eAAe,mBAAmB,CAAmB,YAAY,CAAC,CAAC","sourcesContent":["import { NativeModule, requireNativeModule } from 'expo';\nimport { SharedObject } from 'expo-modules-core';\n\nimport type {\n AttachmentInfo,\n ConnectionStatus,\n ContingentValuesResult,\n DynamicEntityChange,\n DynamicEntityObservationInfo,\n DistanceMeasurementProps,\n DynamicEntityLayerProps,\n CreateVersionParams,\n EditResult,\n Envelope,\n ServiceVersionInfo,\n Feature,\n FeatureLayerProps,\n FeatureTemplate,\n GeoElementViewshedProps,\n Geometry,\n RelatedFeaturesResult,\n GraphicProps,\n LineOfSightProps,\n QueryParameters,\n StatisticRecord,\n StatisticsQueryParameters,\n IntegratedMeshLayerProps,\n KmlLayerProps,\n KmlNodeInfo,\n OgcFeatureLayerProps,\n WfsLayerProps,\n MapImageLayerProps,\n MapProps,\n Ogc3DTilesLayerProps,\n PointCloudLayerProps,\n RasterLayerProps,\n Renderer,\n SceneLayerProps,\n SceneProps,\n TargetVisibility,\n TileLayerProps,\n UtilityAssociationSummary,\n UtilityElementDescriptor,\n UtilityNamedTraceConfiguration,\n UtilityNetworkState,\n UtilityTerminalConfiguration,\n UtilityTraceResult,\n VectorTileLayerProps,\n ViewshedProps,\n WebTiledLayerProps,\n WmsLayerProps,\n WmtsLayerProps,\n} from './ExpoArcgis.types';\n\n/** Reference to a native operational layer (FeatureLayer / ArcGISTiledLayer), shared by reference. */\nexport declare class LayerRef<\n TEvents extends Record<string, (...args: any[]) => void> = Record<never, never>,\n> extends SharedObject<TEvents> {\n applyProps(changed: Record<string, unknown>): void;\n}\n\n/** Reference to a native `GroupLayer` — a `LayerRef` that also hosts its own child layers. */\nexport declare class GroupLayerRef extends LayerRef {\n addLayer(layer: LayerRef<any>): void;\n removeLayer(layer: LayerRef<any>): void;\n}\n\n/** Reference to a native `KmlLayer` — a `LayerRef` plus `getNodes` and tour controls (mirrors `KmlLayerHandle`). */\nexport declare class KmlLayerRef extends LayerRef {\n getNodes(): Promise<KmlNodeInfo[]>;\n playTour(): void;\n pauseTour(): void;\n resetTour(): void;\n}\n\n/**\n * Reference to a native `FeatureLayer` — a `LayerRef` plus the async query methods (these match\n * `FeatureLayerHandle`, so the component just hands this ref over via `useImperativeHandle`).\n */\nexport declare class FeatureLayerRef extends LayerRef {\n queryFeatures(query?: QueryParameters): Promise<Feature[]>;\n queryFeatureCount(query?: QueryParameters): Promise<number>;\n queryExtent(query?: QueryParameters): Promise<Geometry | null>;\n queryStatistics(query: StatisticsQueryParameters): Promise<StatisticRecord[]>;\n queryFeatureTemplates(): Promise<FeatureTemplate[]>;\n addFeature(\n attributes: Record<string, unknown>,\n geometry?: Geometry,\n apply?: boolean\n ): Promise<number | null>;\n addFeatureWithTemplate(\n templateName: string,\n attributes?: Record<string, unknown>,\n geometry?: Geometry,\n apply?: boolean\n ): Promise<number | null>;\n addFeatureWithSubtype(\n subtypeName: string,\n attributes?: Record<string, unknown>,\n geometry?: Geometry,\n apply?: boolean\n ): Promise<number | null>;\n updateFeature(objectId: number, changes: Record<string, unknown>, apply?: boolean): Promise<void>;\n deleteFeature(objectId: number, apply?: boolean): Promise<void>;\n applyEdits(): Promise<EditResult[]>;\n undoLocalEdits(): Promise<void>;\n queryRelatedFeatures(objectId: number): Promise<RelatedFeaturesResult[]>;\n queryAttachments(objectId: number): Promise<AttachmentInfo[]>;\n addAttachment(objectId: number, name: string, contentType: string, dataBase64: string): Promise<void>;\n fetchAttachment(objectId: number, attachmentId: number): Promise<string>;\n deleteAttachment(objectId: number, attachmentId: number): Promise<void>;\n updateAttachment(objectId: number, attachmentId: number, name: string, contentType: string, dataBase64: string): Promise<void>;\n getServiceGeodatabase(): Promise<ServiceGeodatabaseRef>;\n /**\n * Returns the valid coded values for `fieldName` given the feature's current `attributes`.\n * Use this to drive editing-form dropdowns: pass the feature's current attribute state and the\n * name of the field being edited; returns `[{ name, code }]` for coded values that satisfy all\n * contingent-value constraints.\n *\n * Requires an ArcGIS feature table; rejects for shapefiles and WFS tables.\n * Resolves with an empty array when no constraints are defined for `fieldName`.\n */\n contingentValues(attributes: Record<string, unknown>, fieldName: string): Promise<{ name: string; code: unknown }[]>;\n /**\n * Returns the valid contingent values for `fieldName` on the feature with `objectId`.\n * The `fieldName` is the name of an attribute field whose valid values may be constrained by\n * contingent-value rules (e.g. a \"species\" field whose options depend on \"habitat\"). Requires\n * an ArcGIS feature table; rejects for shapefiles and WFS tables.\n */\n getContingentValues(objectId: number, fieldName: string): Promise<ContingentValuesResult>;\n}\n\n/**\n * Reference to a native `ServiceGeodatabase`'s branch-versioning surface. Built by\n * `FeatureLayerRef.getServiceGeodatabase()` (never constructed directly). Mirrors\n * `ServiceGeodatabaseHandle`.\n */\nexport declare class ServiceGeodatabaseRef extends SharedObject {\n fetchVersions(): Promise<ServiceVersionInfo[]>;\n createVersion(params: CreateVersionParams): Promise<ServiceVersionInfo>;\n switchVersion(name: string): Promise<void>;\n applyEdits(): Promise<EditResult[]>;\n undoLocalEdits(): Promise<void>;\n hasLocalEdits(): boolean;\n getVersionName(): string;\n getDefaultVersionName(): string;\n supportsBranchVersioning(): boolean;\n getFeatureLayer(layerId: number): FeatureLayerRef;\n}\n\n/**\n * Reference to a native local mobile `Geodatabase` with transactional editing. Built by\n * `offline.openGeodatabase(path)` (never constructed directly). Mirrors `GeodatabaseHandle`.\n */\nexport declare class GeodatabaseRef extends SharedObject {\n beginTransaction(): Promise<void>;\n commitTransaction(): Promise<void>;\n rollbackTransaction(): Promise<void>;\n isInTransaction(): boolean;\n getFeatureTableNames(): string[];\n queryFeatureCount(tableName: string, whereClause?: string): Promise<number>;\n addFeature(\n tableName: string,\n attributes: Record<string, unknown>,\n geometry?: Geometry\n ): Promise<void>;\n getFeatureLayer(tableName: string): FeatureLayerRef;\n}\n\n/** Events emitted by a `DynamicEntityLayerRef` as its data source connects / disconnects. */\ntype DynamicEntityLayerEvents = {\n onConnectionStatusChange: (event: { status: ConnectionStatus }) => void;\n onDynamicEntityChange: (event: DynamicEntityChange) => void;\n};\n\n/** Reference to a native real-time `DynamicEntityLayer` (stream service / custom feed). */\nexport declare class DynamicEntityLayerRef extends LayerRef<DynamicEntityLayerEvents> {\n queryDynamicEntities(): Promise<{\n count: number;\n entities: { attributes: Record<string, unknown>; geometry: Geometry | null }[];\n }>;\n queryObservations(entityId: string, max?: number): Promise<DynamicEntityObservationInfo[]>;\n pushObservation(attributes: Record<string, unknown>, geometry: Geometry): void;\n}\n\n/** Reference to a native `Graphic` drawn on a graphics overlay. */\nexport declare class GraphicRef extends SharedObject {\n applyProps(changed: Record<string, unknown>): void;\n}\n\n/** Reference to a native `GraphicsOverlay` owned by a `<MapView>` / `<SceneView>`. */\nexport declare class GraphicsOverlayRef extends SharedObject {\n addGraphic(graphic: GraphicRef): void;\n removeGraphic(graphic: GraphicRef): void;\n setRenderer(renderer: Renderer | null): void;\n}\n\n/** Reference to a native `ImageOverlay`. Built via the `<ImageOverlay>` component (extras module). */\nexport declare class ImageOverlayRef extends SharedObject {\n setFrame(imagePath: string, extent: Envelope, opacity?: number): void;\n setOpacity(opacity: number): void;\n}\n\n/** Events emitted by a `GeometryEditorRef` as the user sketches. */\ntype GeometryEditorEvents = {\n onGeometryChange(payload: { geometry?: Geometry }): void;\n};\n\n/** Reference to a native exploratory `Analysis` (viewshed / line-of-sight) drawn on an analysis overlay. */\nexport declare class AnalysisRef<\n TEvents extends Record<string, (...args: any[]) => void> = Record<never, never>,\n> extends SharedObject<TEvents> {\n applyProps(changed: Record<string, unknown>): void;\n}\n\n/** Reference to a native exploratory viewshed (`ExploratoryLocationViewshed`). */\nexport declare class ViewshedRef extends AnalysisRef {}\n\n/**\n * Reference to a native GeoElement-anchored viewshed (`ExploratoryGeoElementViewshed`).\n * The observer tracks the graphic's position as it moves, so the viewshed follows the graphic.\n */\nexport declare class GeoElementViewshedRef extends AnalysisRef {}\n\n/** Events emitted by a `LineOfSightRef` or `GeoElementLineOfSightRef` as target visibility changes. */\ntype LineOfSightEvents = {\n onTargetVisibilityChange(payload: { visibility: TargetVisibility }): void;\n};\n\n/** Reference to a native exploratory line of sight (`ExploratoryLocationLineOfSight`). */\nexport declare class LineOfSightRef extends AnalysisRef<LineOfSightEvents> {}\n\n/**\n * Reference to a native GeoElement-anchored line of sight (`ExploratoryGeoElementLineOfSight`).\n * Both the observer and target track their respective graphics as they move.\n */\nexport declare class GeoElementLineOfSightRef extends AnalysisRef<LineOfSightEvents> {}\n\n/** Events emitted by a `DistanceMeasurementRef` as the measured distances change. */\ntype DistanceMeasurementEvents = {\n onMeasurementChange(payload: {\n directDistance: number;\n horizontalDistance: number;\n verticalDistance: number;\n }): void;\n};\n\n/** Reference to a native distance measurement (`ExploratoryLocationDistanceMeasurement`). */\nexport declare class DistanceMeasurementRef extends AnalysisRef<DistanceMeasurementEvents> {}\n\n/** Reference to a native `AnalysisOverlay` owned by a `<SceneView>`. */\nexport declare class AnalysisOverlayRef extends SharedObject {\n addAnalysis(analysis: AnalysisRef<any>): void;\n removeAnalysis(analysis: AnalysisRef<any>): void;\n setVisible(visible: boolean): void;\n}\n\n/** Reference to a native interactive `GeometryEditor`, bound to a `<MapView>`. */\nexport declare class GeometryEditorRef extends SharedObject<GeometryEditorEvents> {\n start(type: string): void;\n setTool(name: string): void;\n stop(): Geometry | null;\n clearGeometry(): void;\n undo(): void;\n redo(): void;\n deleteSelectedElement(): void;\n}\n\n/**\n * Reference to a native `ArcGISMap`. The `<Map>` component constructs one, reconciles prop changes\n * via `applyProps`, and attaches operational layers via `addLayer` / `removeLayer`.\n */\nexport declare class MapRef extends SharedObject {\n applyProps(changed: Partial<MapProps>): void;\n addLayer(layer: LayerRef<any>): void;\n removeLayer(layer: LayerRef<any>): void;\n}\n\n/** Reference to a native `ArcGISScene` (3D). Same shape as `MapRef`. */\nexport declare class SceneRef extends SharedObject {\n applyProps(changed: Partial<SceneProps>): void;\n addLayer(layer: LayerRef<any>): void;\n removeLayer(layer: LayerRef<any>): void;\n}\n\n/**\n * Reference to a native `UtilityNetwork` loaded from a feature service. The `<UtilityNetwork>`\n * component builds one, loads it (attaching it to the map), and runs traces through it.\n */\nexport declare class UtilityNetworkRef extends SharedObject {\n /** Builds + loads the network, adds it to `map`, and resolves with the network name. */\n load(map: MapRef): Promise<string>;\n /** Returns metadata about the loaded network (its network-source names). */\n describeNetwork(): { networkSources: string[] };\n /** Runs a trace and returns the element results. */\n trace(\n traceType: string,\n startingLocations: UtilityElementDescriptor[]\n ): Promise<UtilityTraceResult>;\n /** Queries a starting feature, traces from it, and selects the result features on the map. */\n traceFromQuery(\n tableName: string,\n whereClause: string,\n traceType: string\n ): Promise<UtilityTraceResult>;\n /** Lists the network's named trace configurations. */\n queryNamedTraceConfigurations(): Promise<UtilityNamedTraceConfiguration[]>;\n /** Traces using a named configuration (by global id), from a queried starting feature. */\n traceWithConfiguration(\n configGlobalId: string,\n tableName: string,\n whereClause: string\n ): Promise<UtilityTraceResult>;\n /** Returns the associations of a queried feature. */\n associations(tableName: string, whereClause: string): Promise<UtilityAssociationSummary>;\n /** Returns the terminal configurations defined in the network (synchronous — reads from definition). */\n getTerminalConfigurations(): UtilityTerminalConfiguration[];\n /** Returns the network's topology state (dirty areas, errors, topology enabled). */\n getState(): Promise<UtilityNetworkState>;\n /** Validates the network topology over `extent`; returns a job to run / track / cancel. */\n validateNetworkTopology(extent: Geometry): JobRef<{ validated: boolean }>;\n}\n\n/** Events emitted by a `JobRef` as a long-running job progresses. */\ntype JobEvents = { onProgress(payload: { progress: number }): void };\n\n/**\n * Handle for a long-running ArcGIS job (e.g. an offline-map download). Await `result()` to run it\n * to completion, observe `onProgress` (0–100) via `addListener`, or `cancel()` it.\n */\nexport declare class JobRef<R> extends SharedObject<JobEvents> {\n result(): Promise<R>;\n cancel(): Promise<void>;\n}\n\n/** The geo model that operational layers attach to — a `<Map>` or a `<Scene>`. */\nexport type GeoModelRef = MapRef | SceneRef;\n\ndeclare class ExpoArcgisModule extends NativeModule {\n /** Sets the ArcGIS API key (access token) used to authenticate with ArcGIS services. */\n setApiKey(apiKey: string): void;\n /**\n * Stores a login used to authenticate token-secured services (e.g. a utility-network feature\n * service). The challenge handler mints a `TokenCredential` for the exact resource the SDK\n * challenges for — no service URL or up-front timing needed.\n * `tokenExpirationMinutes` sets the token lifetime; pass `null` to use the server's default.\n */\n setTokenCredential(username: string, password: string, tokenExpirationMinutes: number | null): void;\n /**\n * Installs (`true`) or removes (`false`) a network-layer handler that trusts every TLS\n * server-trust challenge, including self-signed certificates.\n * **Dev/on-prem only** — disables TLS validation; never call with `true` in production.\n */\n setAllowUntrustedHosts(allow: boolean): void;\n /** Clears the stored login and all cached credentials (token + OAuth). */\n signOut(): Promise<void>;\n /** iOS-only OAuth sign-in: the SDK presents the auth browser, then caches the credential. */\n signInWithOAuth(portalUrl: string, clientId: string, redirectUrl: string): Promise<void>;\n /** Android OAuth step 1: starts the flow and returns the authorize URL to open in a browser. */\n oauthStart(portalUrl: string, clientId: string, redirectUrl: string): Promise<string>;\n /** Android OAuth step 2: completes the flow with the browser redirect URL. */\n oauthComplete(redirectUrl: string): Promise<void>;\n /** App authentication (client id + secret, no user login) — caches an app token credential. */\n setAppCredential(portalUrl: string, clientId: string, clientSecret: string): Promise<void>;\n // Constructable native handles (SharedObjects). JS names mirror the native classes.\n MapRef: new (props?: MapProps) => MapRef;\n SceneRef: new (props?: SceneProps) => SceneRef;\n FeatureLayerRef: new (props: FeatureLayerProps) => FeatureLayerRef;\n TiledLayerRef: new (props: TileLayerProps) => LayerRef;\n MapImageLayerRef: new (props: MapImageLayerProps) => LayerRef;\n SceneLayerRef: new (props: SceneLayerProps) => LayerRef;\n VectorTiledLayerRef: new (props: VectorTileLayerProps) => LayerRef;\n IntegratedMeshLayerRef: new (props: IntegratedMeshLayerProps) => LayerRef;\n PointCloudLayerRef: new (props: PointCloudLayerProps) => LayerRef;\n Ogc3DTilesLayerRef: new (props: Ogc3DTilesLayerProps) => LayerRef;\n WebTiledLayerRef: new (props: WebTiledLayerProps) => LayerRef;\n OpenStreetMapLayerRef: new () => LayerRef;\n WmsLayerRef: new (props: WmsLayerProps) => LayerRef;\n WmtsLayerRef: new (props: WmtsLayerProps) => LayerRef;\n RasterLayerRef: new (props: RasterLayerProps) => LayerRef;\n KmlLayerRef: new (props: KmlLayerProps) => KmlLayerRef;\n WfsLayerRef: new (props: WfsLayerProps) => LayerRef;\n OgcFeatureLayerRef: new (props: OgcFeatureLayerProps) => LayerRef;\n DynamicEntityLayerRef: new (props: DynamicEntityLayerProps) => DynamicEntityLayerRef;\n GraphicsOverlayRef: new () => GraphicsOverlayRef;\n GraphicRef: new (props: GraphicProps) => GraphicRef;\n GeometryEditorRef: new () => GeometryEditorRef;\n AnalysisOverlayRef: new () => AnalysisOverlayRef;\n ViewshedRef: new (props: ViewshedProps) => ViewshedRef;\n GeoElementViewshedRef: new (graphic: GraphicRef, props: GeoElementViewshedProps) => GeoElementViewshedRef;\n LineOfSightRef: new (props: Pick<LineOfSightProps, 'observer' | 'target'>) => LineOfSightRef;\n GeoElementLineOfSightRef: new (observer: GraphicRef, target: GraphicRef) => GeoElementLineOfSightRef;\n DistanceMeasurementRef: new (\n props: Pick<DistanceMeasurementProps, 'startLocation' | 'endLocation'>\n ) => DistanceMeasurementRef;\n // UtilityNetworkRef is constructed via the Extras module (main-module 64 KB budget).\n}\n\nexport default requireNativeModule<ExpoArcgisModule>('ExpoArcgis');\n"]}
|
|
1
|
+
{"version":3,"file":"ExpoArcgisModule.js","sourceRoot":"","sources":["../src/ExpoArcgisModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,mBAAmB,EAAE,MAAM,MAAM,CAAC;AAoZzD,eAAe,mBAAmB,CAAmB,YAAY,CAAC,CAAC","sourcesContent":["import { NativeModule, requireNativeModule } from 'expo';\nimport { SharedObject } from 'expo-modules-core';\n\nimport type {\n AttachmentInfo,\n ConnectionStatus,\n ContingentValuesResult,\n DynamicEntityChange,\n DynamicEntityObservationInfo,\n DistanceMeasurementProps,\n DynamicEntityLayerProps,\n CreateVersionParams,\n EditResult,\n Envelope,\n ServiceVersionInfo,\n Feature,\n FeatureLayerProps,\n FeatureTemplate,\n GeoElementViewshedProps,\n Geometry,\n RelatedFeaturesResult,\n GraphicProps,\n LineOfSightProps,\n QueryParameters,\n StatisticRecord,\n StatisticsQueryParameters,\n IntegratedMeshLayerProps,\n KmlLayerProps,\n KmlNodeInfo,\n OgcFeatureLayerProps,\n WfsLayerProps,\n MapImageLayerProps,\n MapProps,\n Ogc3DTilesLayerProps,\n PointCloudLayerProps,\n RasterLayerProps,\n Renderer,\n SceneLayerProps,\n SceneProps,\n TargetVisibility,\n TileLayerProps,\n UtilityAssociationSummary,\n UtilityElementDescriptor,\n UtilityNamedTraceConfiguration,\n UtilityNetworkState,\n UtilityTerminalConfiguration,\n UtilityTraceResult,\n VectorTileLayerProps,\n ViewshedProps,\n WebTiledLayerProps,\n WmsLayerProps,\n WmtsLayerProps,\n} from './ExpoArcgis.types';\n\n/** Reference to a native operational layer (FeatureLayer / ArcGISTiledLayer), shared by reference. */\nexport declare class LayerRef<\n TEvents extends Record<string, (...args: any[]) => void> = Record<never, never>,\n> extends SharedObject<TEvents> {\n applyProps(changed: Record<string, unknown>): void;\n}\n\n/** Reference to a native `GroupLayer` — a `LayerRef` that also hosts its own child layers. */\nexport declare class GroupLayerRef extends LayerRef {\n addLayer(layer: LayerRef<any>): void;\n removeLayer(layer: LayerRef<any>): void;\n}\n\n/** Reference to a native `KmlLayer` — a `LayerRef` plus `getNodes` and tour controls (mirrors `KmlLayerHandle`). */\nexport declare class KmlLayerRef extends LayerRef {\n getNodes(): Promise<KmlNodeInfo[]>;\n playTour(): void;\n pauseTour(): void;\n resetTour(): void;\n}\n\n/**\n * Reference to a native `FeatureLayer` — a `LayerRef` plus the async query methods (these match\n * `FeatureLayerHandle`, so the component just hands this ref over via `useImperativeHandle`).\n */\nexport declare class FeatureLayerRef extends LayerRef {\n queryFeatures(query?: QueryParameters): Promise<Feature[]>;\n queryFeatureCount(query?: QueryParameters): Promise<number>;\n queryExtent(query?: QueryParameters): Promise<Geometry | null>;\n queryStatistics(query: StatisticsQueryParameters): Promise<StatisticRecord[]>;\n queryFeatureTemplates(): Promise<FeatureTemplate[]>;\n addFeature(\n attributes: Record<string, unknown>,\n geometry?: Geometry,\n apply?: boolean\n ): Promise<number | null>;\n addFeatureWithTemplate(\n templateName: string,\n attributes?: Record<string, unknown>,\n geometry?: Geometry,\n apply?: boolean\n ): Promise<number | null>;\n addFeatureWithSubtype(\n subtypeName: string,\n attributes?: Record<string, unknown>,\n geometry?: Geometry,\n apply?: boolean\n ): Promise<number | null>;\n updateFeature(objectId: number, changes: Record<string, unknown>, apply?: boolean): Promise<void>;\n deleteFeature(objectId: number, apply?: boolean): Promise<void>;\n applyEdits(): Promise<EditResult[]>;\n undoLocalEdits(): Promise<void>;\n queryRelatedFeatures(objectId: number): Promise<RelatedFeaturesResult[]>;\n queryAttachments(objectId: number): Promise<AttachmentInfo[]>;\n addAttachment(objectId: number, name: string, contentType: string, dataBase64: string): Promise<void>;\n fetchAttachment(objectId: number, attachmentId: number): Promise<string>;\n deleteAttachment(objectId: number, attachmentId: number): Promise<void>;\n updateAttachment(objectId: number, attachmentId: number, name: string, contentType: string, dataBase64: string): Promise<void>;\n getServiceGeodatabase(): Promise<ServiceGeodatabaseRef>;\n /**\n * Returns the valid coded values for `fieldName` given the feature's current `attributes`.\n * Use this to drive editing-form dropdowns: pass the feature's current attribute state and the\n * name of the field being edited; returns `[{ name, code }]` for coded values that satisfy all\n * contingent-value constraints.\n *\n * Requires an ArcGIS feature table; rejects for shapefiles and WFS tables.\n * Resolves with an empty array when no constraints are defined for `fieldName`.\n */\n contingentValues(attributes: Record<string, unknown>, fieldName: string): Promise<{ name: string; code: unknown }[]>;\n /**\n * Returns the valid contingent values for `fieldName` on the feature with `objectId`.\n * The `fieldName` is the name of an attribute field whose valid values may be constrained by\n * contingent-value rules (e.g. a \"species\" field whose options depend on \"habitat\"). Requires\n * an ArcGIS feature table; rejects for shapefiles and WFS tables.\n */\n getContingentValues(objectId: number, fieldName: string): Promise<ContingentValuesResult>;\n}\n\n/**\n * Reference to a native `ServiceGeodatabase`'s branch-versioning surface. Built by\n * `FeatureLayerRef.getServiceGeodatabase()` (never constructed directly). Mirrors\n * `ServiceGeodatabaseHandle`.\n */\nexport declare class ServiceGeodatabaseRef extends SharedObject {\n fetchVersions(): Promise<ServiceVersionInfo[]>;\n createVersion(params: CreateVersionParams): Promise<ServiceVersionInfo>;\n switchVersion(name: string): Promise<void>;\n applyEdits(): Promise<EditResult[]>;\n undoLocalEdits(): Promise<void>;\n hasLocalEdits(): boolean;\n getVersionName(): string;\n getDefaultVersionName(): string;\n supportsBranchVersioning(): boolean;\n getFeatureLayer(layerId: number): FeatureLayerRef;\n}\n\n/**\n * Reference to a native local mobile `Geodatabase` with transactional editing. Built by\n * `offline.openGeodatabase(path)` (never constructed directly). Mirrors `GeodatabaseHandle`.\n */\nexport declare class GeodatabaseRef extends SharedObject {\n beginTransaction(): Promise<void>;\n commitTransaction(): Promise<void>;\n rollbackTransaction(): Promise<void>;\n isInTransaction(): boolean;\n getFeatureTableNames(): string[];\n queryFeatureCount(tableName: string, whereClause?: string): Promise<number>;\n addFeature(\n tableName: string,\n attributes: Record<string, unknown>,\n geometry?: Geometry\n ): Promise<void>;\n getFeatureLayer(tableName: string): FeatureLayerRef;\n}\n\n/** Events emitted by a `DynamicEntityLayerRef` as its data source connects / disconnects. */\ntype DynamicEntityLayerEvents = {\n onConnectionStatusChange: (event: { status: ConnectionStatus }) => void;\n onDynamicEntityChange: (event: DynamicEntityChange) => void;\n};\n\n/** Reference to a native real-time `DynamicEntityLayer` (stream service / custom feed). */\nexport declare class DynamicEntityLayerRef extends LayerRef<DynamicEntityLayerEvents> {\n queryDynamicEntities(): Promise<{\n count: number;\n entities: { attributes: Record<string, unknown>; geometry: Geometry | null }[];\n }>;\n queryObservations(entityId: string, max?: number): Promise<DynamicEntityObservationInfo[]>;\n pushObservation(attributes: Record<string, unknown>, geometry: Geometry): void;\n}\n\n/** Reference to a native `Graphic` drawn on a graphics overlay. */\nexport declare class GraphicRef extends SharedObject {\n applyProps(changed: Record<string, unknown>): void;\n}\n\n/** Reference to a native `GraphicsOverlay` owned by a `<MapView>` / `<SceneView>`. */\nexport declare class GraphicsOverlayRef extends SharedObject {\n addGraphic(graphic: GraphicRef): void;\n removeGraphic(graphic: GraphicRef): void;\n setRenderer(renderer: Renderer | null): void;\n}\n\n/** Reference to a native `ImageOverlay`. Built via the `<ImageOverlay>` component (extras module). */\nexport declare class ImageOverlayRef extends SharedObject {\n setFrame(imagePath: string, extent: Envelope, opacity?: number): void;\n setOpacity(opacity: number): void;\n}\n\n/** Events emitted by a `GeometryEditorRef` as the user sketches. */\ntype GeometryEditorEvents = {\n onGeometryChange(payload: { geometry?: Geometry }): void;\n};\n\n/** Reference to a native exploratory `Analysis` (viewshed / line-of-sight) drawn on an analysis overlay. */\nexport declare class AnalysisRef<\n TEvents extends Record<string, (...args: any[]) => void> = Record<never, never>,\n> extends SharedObject<TEvents> {\n applyProps(changed: Record<string, unknown>): void;\n}\n\n/** Reference to a native exploratory viewshed (`ExploratoryLocationViewshed`). */\nexport declare class ViewshedRef extends AnalysisRef {}\n\n/**\n * Reference to a native GeoElement-anchored viewshed (`ExploratoryGeoElementViewshed`).\n * The observer tracks the graphic's position as it moves, so the viewshed follows the graphic.\n */\nexport declare class GeoElementViewshedRef extends AnalysisRef {}\n\n/** Events emitted by a `LineOfSightRef` or `GeoElementLineOfSightRef` as target visibility changes. */\ntype LineOfSightEvents = {\n onTargetVisibilityChange(payload: { visibility: TargetVisibility }): void;\n};\n\n/** Reference to a native exploratory line of sight (`ExploratoryLocationLineOfSight`). */\nexport declare class LineOfSightRef extends AnalysisRef<LineOfSightEvents> {}\n\n/**\n * Reference to a native GeoElement-anchored line of sight (`ExploratoryGeoElementLineOfSight`).\n * Both the observer and target track their respective graphics as they move.\n */\nexport declare class GeoElementLineOfSightRef extends AnalysisRef<LineOfSightEvents> {}\n\n/** Events emitted by a `DistanceMeasurementRef` as the measured distances change. */\ntype DistanceMeasurementEvents = {\n onMeasurementChange(payload: {\n directDistance: number;\n horizontalDistance: number;\n verticalDistance: number;\n }): void;\n};\n\n/** Reference to a native distance measurement (`ExploratoryLocationDistanceMeasurement`). */\nexport declare class DistanceMeasurementRef extends AnalysisRef<DistanceMeasurementEvents> {}\n\n/** Reference to a native `AnalysisOverlay` owned by a `<SceneView>`. */\nexport declare class AnalysisOverlayRef extends SharedObject {\n addAnalysis(analysis: AnalysisRef<any>): void;\n removeAnalysis(analysis: AnalysisRef<any>): void;\n setVisible(visible: boolean): void;\n}\n\n/** Reference to a native interactive `GeometryEditor`, bound to a `<MapView>`. */\nexport declare class GeometryEditorRef extends SharedObject<GeometryEditorEvents> {\n start(type: string): void;\n setTool(name: string): void;\n stop(): Geometry | null;\n clearGeometry(): void;\n undo(): void;\n redo(): void;\n deleteSelectedElement(): void;\n}\n\n/**\n * Reference to a native `ArcGISMap`. The `<Map>` component constructs one, reconciles prop changes\n * via `applyProps`, and attaches operational layers via `addLayer` / `removeLayer`.\n */\nexport declare class MapRef extends SharedObject {\n applyProps(changed: Partial<MapProps>): void;\n addLayer(layer: LayerRef<any>): void;\n removeLayer(layer: LayerRef<any>): void;\n}\n\n/** Reference to a native `ArcGISScene` (3D). Same shape as `MapRef`. */\nexport declare class SceneRef extends SharedObject {\n applyProps(changed: Partial<SceneProps>): void;\n addLayer(layer: LayerRef<any>): void;\n removeLayer(layer: LayerRef<any>): void;\n}\n\n/**\n * Reference to a native `UtilityNetwork` loaded from a feature service. The `<UtilityNetwork>`\n * component builds one, loads it (attaching it to the map), and runs traces through it.\n */\nexport declare class UtilityNetworkRef extends SharedObject {\n /** Builds + loads the network, adds it to `map`, and resolves with the network name. */\n load(map: MapRef): Promise<string>;\n /** Returns metadata about the loaded network (its network-source names). */\n describeNetwork(): { networkSources: string[] };\n /** Runs a trace and returns the element results. */\n trace(\n traceType: string,\n startingLocations: UtilityElementDescriptor[]\n ): Promise<UtilityTraceResult>;\n /** Queries a starting feature, traces from it, and selects the result features on the map. */\n traceFromQuery(\n tableName: string,\n whereClause: string,\n traceType: string\n ): Promise<UtilityTraceResult>;\n /** Lists the network's named trace configurations. */\n queryNamedTraceConfigurations(): Promise<UtilityNamedTraceConfiguration[]>;\n /** Traces using a named configuration (by global id), from a queried starting feature. */\n traceWithConfiguration(\n configGlobalId: string,\n tableName: string,\n whereClause: string\n ): Promise<UtilityTraceResult>;\n /** Returns the associations of a queried feature. */\n associations(tableName: string, whereClause: string): Promise<UtilityAssociationSummary>;\n /** Returns the terminal configurations defined in the network (synchronous — reads from definition). */\n getTerminalConfigurations(): UtilityTerminalConfiguration[];\n /** Returns the network's topology state (dirty areas, errors, topology enabled). */\n getState(): Promise<UtilityNetworkState>;\n /** Validates the network topology over `extent`; returns a job to run / track / cancel. */\n validateNetworkTopology(extent: Geometry): JobRef<{ validated: boolean }>;\n}\n\n/** Events emitted by a `JobRef` as a long-running job progresses. */\ntype JobEvents = { onProgress(payload: { progress: number }): void };\n\n/**\n * Handle for a long-running ArcGIS job (e.g. an offline-map download). Await `result()` to run it\n * to completion, observe `onProgress` (0–100) via `addListener`, or `cancel()` it.\n */\nexport declare class JobRef<R> extends SharedObject<JobEvents> {\n result(): Promise<R>;\n cancel(): Promise<void>;\n}\n\n/** The geo model that operational layers attach to — a `<Map>` or a `<Scene>`. */\nexport type GeoModelRef = MapRef | SceneRef;\n\ndeclare class ExpoArcgisModule extends NativeModule {\n /** Sets the ArcGIS API key (access token) used to authenticate with ArcGIS services. */\n setApiKey(apiKey: string): void;\n /**\n * Applies a deployment license string, removing the \"Licensed for Developer Use Only\" watermark.\n * Returns the resulting license status (`\"valid\"`, `\"invalid\"`, `\"expired\"` or `\"loginRequired\"`).\n * Separate from {@link setApiKey}: the key authenticates services, the license unlocks deployment.\n */\n setLicense(licenseKey: string): string;\n /**\n * Stores a login used to authenticate token-secured services (e.g. a utility-network feature\n * service). The challenge handler mints a `TokenCredential` for the exact resource the SDK\n * challenges for — no service URL or up-front timing needed.\n * `tokenExpirationMinutes` sets the token lifetime; pass `null` to use the server's default.\n */\n setTokenCredential(username: string, password: string, tokenExpirationMinutes: number | null): void;\n /**\n * Installs (`true`) or removes (`false`) a network-layer handler that trusts every TLS\n * server-trust challenge, including self-signed certificates.\n * **Dev/on-prem only** — disables TLS validation; never call with `true` in production.\n */\n setAllowUntrustedHosts(allow: boolean): void;\n /** Clears the stored login and all cached credentials (token + OAuth). */\n signOut(): Promise<void>;\n /** iOS-only OAuth sign-in: the SDK presents the auth browser, then caches the credential. */\n signInWithOAuth(portalUrl: string, clientId: string, redirectUrl: string): Promise<void>;\n /** Android OAuth step 1: starts the flow and returns the authorize URL to open in a browser. */\n oauthStart(portalUrl: string, clientId: string, redirectUrl: string): Promise<string>;\n /** Android OAuth step 2: completes the flow with the browser redirect URL. */\n oauthComplete(redirectUrl: string): Promise<void>;\n /** App authentication (client id + secret, no user login) — caches an app token credential. */\n setAppCredential(portalUrl: string, clientId: string, clientSecret: string): Promise<void>;\n // Constructable native handles (SharedObjects). JS names mirror the native classes.\n MapRef: new (props?: MapProps) => MapRef;\n SceneRef: new (props?: SceneProps) => SceneRef;\n FeatureLayerRef: new (props: FeatureLayerProps) => FeatureLayerRef;\n TiledLayerRef: new (props: TileLayerProps) => LayerRef;\n MapImageLayerRef: new (props: MapImageLayerProps) => LayerRef;\n SceneLayerRef: new (props: SceneLayerProps) => LayerRef;\n VectorTiledLayerRef: new (props: VectorTileLayerProps) => LayerRef;\n IntegratedMeshLayerRef: new (props: IntegratedMeshLayerProps) => LayerRef;\n PointCloudLayerRef: new (props: PointCloudLayerProps) => LayerRef;\n Ogc3DTilesLayerRef: new (props: Ogc3DTilesLayerProps) => LayerRef;\n WebTiledLayerRef: new (props: WebTiledLayerProps) => LayerRef;\n OpenStreetMapLayerRef: new () => LayerRef;\n WmsLayerRef: new (props: WmsLayerProps) => LayerRef;\n WmtsLayerRef: new (props: WmtsLayerProps) => LayerRef;\n RasterLayerRef: new (props: RasterLayerProps) => LayerRef;\n KmlLayerRef: new (props: KmlLayerProps) => KmlLayerRef;\n WfsLayerRef: new (props: WfsLayerProps) => LayerRef;\n OgcFeatureLayerRef: new (props: OgcFeatureLayerProps) => LayerRef;\n DynamicEntityLayerRef: new (props: DynamicEntityLayerProps) => DynamicEntityLayerRef;\n GraphicsOverlayRef: new () => GraphicsOverlayRef;\n GraphicRef: new (props: GraphicProps) => GraphicRef;\n GeometryEditorRef: new () => GeometryEditorRef;\n AnalysisOverlayRef: new () => AnalysisOverlayRef;\n ViewshedRef: new (props: ViewshedProps) => ViewshedRef;\n GeoElementViewshedRef: new (graphic: GraphicRef, props: GeoElementViewshedProps) => GeoElementViewshedRef;\n LineOfSightRef: new (props: Pick<LineOfSightProps, 'observer' | 'target'>) => LineOfSightRef;\n GeoElementLineOfSightRef: new (observer: GraphicRef, target: GraphicRef) => GeoElementLineOfSightRef;\n DistanceMeasurementRef: new (\n props: Pick<DistanceMeasurementProps, 'startLocation' | 'endLocation'>\n ) => DistanceMeasurementRef;\n // UtilityNetworkRef is constructed via the Extras module (main-module 64 KB budget).\n}\n\nexport default requireNativeModule<ExpoArcgisModule>('ExpoArcgis');\n"]}
|
package/build/MapSettings.d.ts
CHANGED
|
@@ -2,15 +2,20 @@ import { type PropsWithChildren } from 'react';
|
|
|
2
2
|
export type MapSettingsConfig = {
|
|
3
3
|
/** ArcGIS API key. Equivalent to passing `apiKey` to the config plugin, but at runtime. */
|
|
4
4
|
apiKey?: string;
|
|
5
|
+
/**
|
|
6
|
+
* ArcGIS deployment license string. Removes the "Licensed for Developer Use Only" watermark.
|
|
7
|
+
* Separate from `apiKey`: the key authenticates services, the license unlocks deployment.
|
|
8
|
+
*/
|
|
9
|
+
license?: string;
|
|
5
10
|
};
|
|
6
11
|
type MapSettingsProps = {
|
|
7
12
|
config?: MapSettingsConfig;
|
|
8
13
|
};
|
|
9
14
|
export declare function useMapSettings(): MapSettingsConfig | undefined;
|
|
10
15
|
/**
|
|
11
|
-
* Global ArcGIS settings (mirrors `esriConfig`). Applies the API key **synchronously
|
|
12
|
-
* before any descendant `<Map>` / `<MapView>` (and the native map load) mount — so
|
|
13
|
-
* map load already sees
|
|
16
|
+
* Global ArcGIS settings (mirrors `esriConfig`). Applies the API key and license **synchronously
|
|
17
|
+
* during render**, before any descendant `<Map>` / `<MapView>` (and the native map load) mount — so
|
|
18
|
+
* the very first map load already sees them. Guarded by value so each only re-applies when it changes.
|
|
14
19
|
*/
|
|
15
20
|
export declare function MapSettings({ config, children }: PropsWithChildren<MapSettingsProps>): import("react").JSX.Element;
|
|
16
21
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapSettings.d.ts","sourceRoot":"","sources":["../src/MapSettings.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAIlF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,2FAA2F;IAC3F,MAAM,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"MapSettings.d.ts","sourceRoot":"","sources":["../src/MapSettings.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAIlF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,2FAA2F;IAC3F,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC5B,CAAC;AAIF,wBAAgB,cAAc,IAAI,iBAAiB,GAAG,SAAS,CAE9D;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,+BAcpF"}
|
package/build/MapSettings.js
CHANGED
|
@@ -5,9 +5,9 @@ export function useMapSettings() {
|
|
|
5
5
|
return useContext(MapSettingsContext);
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
|
-
* Global ArcGIS settings (mirrors `esriConfig`). Applies the API key **synchronously
|
|
9
|
-
* before any descendant `<Map>` / `<MapView>` (and the native map load) mount — so
|
|
10
|
-
* map load already sees
|
|
8
|
+
* Global ArcGIS settings (mirrors `esriConfig`). Applies the API key and license **synchronously
|
|
9
|
+
* during render**, before any descendant `<Map>` / `<MapView>` (and the native map load) mount — so
|
|
10
|
+
* the very first map load already sees them. Guarded by value so each only re-applies when it changes.
|
|
11
11
|
*/
|
|
12
12
|
export function MapSettings({ config, children }) {
|
|
13
13
|
const appliedKey = useRef(undefined);
|
|
@@ -15,6 +15,11 @@ export function MapSettings({ config, children }) {
|
|
|
15
15
|
appliedKey.current = config.apiKey;
|
|
16
16
|
ExpoArcgisModule.setApiKey(config.apiKey);
|
|
17
17
|
}
|
|
18
|
+
const appliedLicense = useRef(undefined);
|
|
19
|
+
if (config?.license && config.license !== appliedLicense.current) {
|
|
20
|
+
appliedLicense.current = config.license;
|
|
21
|
+
ExpoArcgisModule.setLicense(config.license);
|
|
22
|
+
}
|
|
18
23
|
return <MapSettingsContext.Provider value={config}>{children}</MapSettingsContext.Provider>;
|
|
19
24
|
}
|
|
20
25
|
//# sourceMappingURL=MapSettings.js.map
|
package/build/MapSettings.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapSettings.js","sourceRoot":"","sources":["../src/MapSettings.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,EAA0B,MAAM,OAAO,CAAC;AAElF,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"MapSettings.js","sourceRoot":"","sources":["../src/MapSettings.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,EAA0B,MAAM,OAAO,CAAC;AAElF,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAgBlD,MAAM,kBAAkB,GAAG,aAAa,CAAgC,SAAS,CAAC,CAAC;AAEnF,MAAM,UAAU,cAAc;IAC5B,OAAO,UAAU,CAAC,kBAAkB,CAAC,CAAC;AACxC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAuC;IACnF,MAAM,UAAU,GAAG,MAAM,CAAqB,SAAS,CAAC,CAAC;IACzD,IAAI,MAAM,EAAE,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,UAAU,CAAC,OAAO,EAAE,CAAC;QAC3D,UAAU,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC;QACnC,gBAAgB,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;IAED,MAAM,cAAc,GAAG,MAAM,CAAqB,SAAS,CAAC,CAAC;IAC7D,IAAI,MAAM,EAAE,OAAO,IAAI,MAAM,CAAC,OAAO,KAAK,cAAc,CAAC,OAAO,EAAE,CAAC;QACjE,cAAc,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QACxC,gBAAgB,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED,OAAO,CAAC,kBAAkB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,CAAC;AAC9F,CAAC","sourcesContent":["import { createContext, useContext, useRef, type PropsWithChildren } from 'react';\n\nimport ExpoArcgisModule from './ExpoArcgisModule';\n\nexport type MapSettingsConfig = {\n /** ArcGIS API key. Equivalent to passing `apiKey` to the config plugin, but at runtime. */\n apiKey?: string;\n /**\n * ArcGIS deployment license string. Removes the \"Licensed for Developer Use Only\" watermark.\n * Separate from `apiKey`: the key authenticates services, the license unlocks deployment.\n */\n license?: string;\n};\n\ntype MapSettingsProps = {\n config?: MapSettingsConfig;\n};\n\nconst MapSettingsContext = createContext<MapSettingsConfig | undefined>(undefined);\n\nexport function useMapSettings(): MapSettingsConfig | undefined {\n return useContext(MapSettingsContext);\n}\n\n/**\n * Global ArcGIS settings (mirrors `esriConfig`). Applies the API key and license **synchronously\n * during render**, before any descendant `<Map>` / `<MapView>` (and the native map load) mount — so\n * the very first map load already sees them. Guarded by value so each only re-applies when it changes.\n */\nexport function MapSettings({ config, children }: PropsWithChildren<MapSettingsProps>) {\n const appliedKey = useRef<string | undefined>(undefined);\n if (config?.apiKey && config.apiKey !== appliedKey.current) {\n appliedKey.current = config.apiKey;\n ExpoArcgisModule.setApiKey(config.apiKey);\n }\n\n const appliedLicense = useRef<string | undefined>(undefined);\n if (config?.license && config.license !== appliedLicense.current) {\n appliedLicense.current = config.license;\n ExpoArcgisModule.setLicense(config.license);\n }\n\n return <MapSettingsContext.Provider value={config}>{children}</MapSettingsContext.Provider>;\n}\n"]}
|
|
@@ -19,6 +19,20 @@ public class ExpoArcgisModule: Module {
|
|
|
19
19
|
ArcGISEnvironment.apiKey = APIKey(apiKey)
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
// Apply a deployment license string to remove the "Licensed for Developer Use Only" watermark.
|
|
23
|
+
// Returns the license status: "valid" / "invalid" / "expired" / "loginRequired".
|
|
24
|
+
Function("setLicense") { (licenseKey: String) -> String in
|
|
25
|
+
guard let key = LicenseKey(licenseKey) else { return "invalid" }
|
|
26
|
+
let result = try ArcGISEnvironment.setLicense(with: key)
|
|
27
|
+
switch result.licenseStatus {
|
|
28
|
+
case .valid: return "valid"
|
|
29
|
+
case .invalid: return "invalid"
|
|
30
|
+
case .expired: return "expired"
|
|
31
|
+
case .loginRequired: return "loginRequired"
|
|
32
|
+
@unknown default: return "unknown"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
22
36
|
// Token auth for secured services (e.g. utility-network feature services) — store the login;
|
|
23
37
|
// the challenge handler mints a TokenCredential for the exact challenged resource on demand.
|
|
24
38
|
// `tokenExpirationMinutes` is optional; the server's default expiry is used when omitted.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-arcgis",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "ArcGIS Maps SDK for React Native — native Android (Kotlin) & iOS (Swift) map rendering as an Expo module",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
},
|
|
45
45
|
"author": "krassavin <walonade@icloud.com>",
|
|
46
46
|
"license": "MIT",
|
|
47
|
-
"homepage": "https://
|
|
47
|
+
"homepage": "https://mapforge.dev/expo-arcgis",
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@arethetypeswrong/cli": "^0.18.3",
|
|
50
50
|
"@babel/core": "^7.26.0",
|
package/src/ExpoArcgisModule.ts
CHANGED
|
@@ -339,6 +339,12 @@ export type GeoModelRef = MapRef | SceneRef;
|
|
|
339
339
|
declare class ExpoArcgisModule extends NativeModule {
|
|
340
340
|
/** Sets the ArcGIS API key (access token) used to authenticate with ArcGIS services. */
|
|
341
341
|
setApiKey(apiKey: string): void;
|
|
342
|
+
/**
|
|
343
|
+
* Applies a deployment license string, removing the "Licensed for Developer Use Only" watermark.
|
|
344
|
+
* Returns the resulting license status (`"valid"`, `"invalid"`, `"expired"` or `"loginRequired"`).
|
|
345
|
+
* Separate from {@link setApiKey}: the key authenticates services, the license unlocks deployment.
|
|
346
|
+
*/
|
|
347
|
+
setLicense(licenseKey: string): string;
|
|
342
348
|
/**
|
|
343
349
|
* Stores a login used to authenticate token-secured services (e.g. a utility-network feature
|
|
344
350
|
* service). The challenge handler mints a `TokenCredential` for the exact resource the SDK
|
package/src/MapSettings.tsx
CHANGED
|
@@ -5,6 +5,11 @@ import ExpoArcgisModule from './ExpoArcgisModule';
|
|
|
5
5
|
export type MapSettingsConfig = {
|
|
6
6
|
/** ArcGIS API key. Equivalent to passing `apiKey` to the config plugin, but at runtime. */
|
|
7
7
|
apiKey?: string;
|
|
8
|
+
/**
|
|
9
|
+
* ArcGIS deployment license string. Removes the "Licensed for Developer Use Only" watermark.
|
|
10
|
+
* Separate from `apiKey`: the key authenticates services, the license unlocks deployment.
|
|
11
|
+
*/
|
|
12
|
+
license?: string;
|
|
8
13
|
};
|
|
9
14
|
|
|
10
15
|
type MapSettingsProps = {
|
|
@@ -18,9 +23,9 @@ export function useMapSettings(): MapSettingsConfig | undefined {
|
|
|
18
23
|
}
|
|
19
24
|
|
|
20
25
|
/**
|
|
21
|
-
* Global ArcGIS settings (mirrors `esriConfig`). Applies the API key **synchronously
|
|
22
|
-
* before any descendant `<Map>` / `<MapView>` (and the native map load) mount — so
|
|
23
|
-
* map load already sees
|
|
26
|
+
* Global ArcGIS settings (mirrors `esriConfig`). Applies the API key and license **synchronously
|
|
27
|
+
* during render**, before any descendant `<Map>` / `<MapView>` (and the native map load) mount — so
|
|
28
|
+
* the very first map load already sees them. Guarded by value so each only re-applies when it changes.
|
|
24
29
|
*/
|
|
25
30
|
export function MapSettings({ config, children }: PropsWithChildren<MapSettingsProps>) {
|
|
26
31
|
const appliedKey = useRef<string | undefined>(undefined);
|
|
@@ -29,5 +34,11 @@ export function MapSettings({ config, children }: PropsWithChildren<MapSettingsP
|
|
|
29
34
|
ExpoArcgisModule.setApiKey(config.apiKey);
|
|
30
35
|
}
|
|
31
36
|
|
|
37
|
+
const appliedLicense = useRef<string | undefined>(undefined);
|
|
38
|
+
if (config?.license && config.license !== appliedLicense.current) {
|
|
39
|
+
appliedLicense.current = config.license;
|
|
40
|
+
ExpoArcgisModule.setLicense(config.license);
|
|
41
|
+
}
|
|
42
|
+
|
|
32
43
|
return <MapSettingsContext.Provider value={config}>{children}</MapSettingsContext.Provider>;
|
|
33
44
|
}
|