This file consolidates all functions available via rpc.invoke() from the Giraffe SDK.
Example
typescript
import { rpc } from "@gi-nx/iframe-sdk";
rpc.invoke("functionName", [arg1, arg2, ...]);Commands
Content
- PackContents
- ANALYTICS_IN_BUNDLE
- APPS_IN_BUNDLE
- BLOCKS_IN_BUNDLE
- FLOW_IN_BUNDLE
- LAYER_IN_BUNDLE
- REPORT_BUILDER_IN_BUNDLE
- SECTIONS_IN_BUNDLE
- USAGE_IN_BUNDLE
- addContentPackToProject
Engine
Evaluate a set of raw sections against the current project state, producing pre-stacked sections keyed by feature ID.
Flows
- NodeIds
- addFlow
addFlowDag- deleteFlow
deleteFlowDag- getNode
- getParameterNode
- getParameterNodeDefaultTransform
updateFlowDags- updateFlows
LayerTree
- activateViewLayers
- changeLayerOpacity
- changeLayerVisibility
- createLayerGroup
- moveLayerTreeItemIntoGroup
- removeLayerGroup
- reorderLayerTreeItem
Layers
- activateLensLayer
- addLayerToProject
addProjectLayer- addTempLayer
- addTempLayerGeoJSON
- createGeoJSONLayer
- createLayer
- deactivateLensLayer
- deleteProjectLayer
- getLayerContents
- getLayerPermission
- removeTempLayer
- setTiles
- updateGeoJSONLayerContents
- updateLayer
- updateLayerStyle
- updateTempLayerGeoJSON
Map
- addHtmlPopup
- clearSDKPopup
- fitBounds
- flyTo
- getFeatureState
- getMapBounds
- getQueriedFeature
- getSelectedFeatures
- setDrawTool
- setHighlightedFeatures
- setSelectedFeatures
Misc
- getTempUrl
- addMapboxEventListener
- disableBottomBarIframe
- disableMapContentEvents
- disableMapHover
- disableSecondaryAppOverlay
- enableBottomBarIframe
- enableMapContentEvents
- enableMapHover
- enableSecondaryAppOverlay
- featureArea
- fromProjected
- getAnalyticsResult
- getGeoTiff
- getGltf
- getPng
- getSourceLayerDetails
- getTeamList
- getTerrainMeshes
- getTiles
- getUrlParams
- getUserClaimsJwt
- getVectorLayerContents
- readyToClose
- removeMapboxEventListener
- setContextMenuItems
- setTopView
- setUserData
- toProjected
- updateUiLayout
Other
- Feature
- FeatureCollection
- GiraffeFeatureCategories
- GiraffeState
- LineString
- MultiPolygon
- Point
- Polygon
- PreStackedLineString
- PreStackedPoint
- PreStackedPolygon
- ProjectLayer
- ProjectOverrides
- RawLineString
- RawMultiLineString
- RawMultiPoint
- RawMultiPolygon
- RawPoint
- RawPolygon
- RawSectionProps
- Team
- Tile
- View
- AnalyticsResult
- AnimationOptions
- BlockDefinition
- CameraOptions
- DecisionType
- DrawTool
- EasingOptions
- FeatureId
- FileContentType
- fileTypeCategories
- FileTypeSubstring
- FlyToOptions
- GeoCoordinate
- GeoJsonFeature
- GeoJsonPolygon
- Geometry
- GiFile
- GiraffeLensableStyle
- GiraffeNodeGraph
- GiraffeProjectBoundary
- GiraffeStateAttr
- GiraffeStateAttrMap
- GiraffeStateBakedSections
- GiraffeStateBlocks
- GiraffeStateClosingSignal
- GiraffeStateContextMenuClick
- GiraffeStateEvent
- GiraffeStateEventKey
- GiraffeStateFlows
- GiraffeStateGeoAttr
- GiraffeStateGet
- GiraffeStateLayerTree
- GiraffeStateMapboxEvent
- GiraffeStateMapContent
- GiraffeStateMapHoverCoords
- GiraffeStateMapSelectCoord
- GiraffeStateMapView
- GiraffeStateProject
- GiraffeStateProjectAppsByAppID
- GiraffeStateProjectLayers
- GiraffeStateProjectOrigin
- GiraffeStateProjects
- GiraffeStateRawSections
- GiraffeStateSelected
- GiraffeStateSelectedProjectApp
- GiraffeStateUiLayout
- GiraffeStateViews
- GiraffeStateVisibleScenarios
- GiraffeStateWorkspace
- GiSourceData
- LayerBundle
- LayerConfigOptions
- LayerPatch
- LensableGeometry
- LensUiState
- LngLatBoundsLike
- LngLatLike
- MapboxLensable
- MapboxStyleLayer
- MapContent
- MapEvents
- MapOptions
- MapView
- PaddingOptions
- PointLike
- PopupOptions
- PreStackedSection
- Project
- ProjectApp
- ProjectAttachment
- ProjectAttachmentType
- ProjectBoundary
- ProjectDetails
- ProjectFeatureCollection
- RawSection
- Scenario
- SDKLensable
- SharedCredential
- SimpleGeoJsonFeature
- UploadProjectAttachmentOptions
fetchProjectFilestoggleLensLayer- activateDrawingLayer
- addIframePopup
- clearIsolatedFeatures
- createBlock
- createDrawingLayer
- createProjectAttachmentPrompt
- createUsage
- deleteBlock
- deleteDrawingLayer
- deleteUsage
- disableIsolateMode
- drawPoint
- duplicateDrawingLayer
- enableIsolateMode
- fetchContentPacks
- fetchCredentials
- fetchPackContents
- fetchProjectDetails
- fetchUserFiles
- fetchVistas
- getBlock
- getBlocks
- getIsolatedFeatures
- getIsolateMode
- getLassoedLensedFeatures
- getLassoedProjectFeatures
- getLassoShape
- getMapStyle
- getProjectFlows
- getProjectUsages
- getScenarios
- getSelectableProjectFeatures
- getUsage
- getUserData
- getUserDrawnPolygon
- getVisibleScenarios
- insertBlock
- loadImage
- navigateTo
- pickRawSections
- queryRenderedFeatures
- removeFeatureState
- removeLayerFromProject
- renameDrawingLayer
- renameScenario
- selectProjectAttachmentPrompt
- setFeatureState
- setIsolatedFeatures
- setScenarioVisibility
- soloScenario
- stackFeatures
- updateBlock
- updateUsage
- uploadProjectAttachment
Project
- createRawSection
- createRawSections
- deleteRawSection
- deleteRawSections
- fetchAppCredentials
getProjectApp- importRawSections
- openProject
- updateProjectApp
- updateRawSection
- updateRawSections