Interaction with Geospatial Portal

From GeoMedia Smart Client
Jump to: navigation, search

GMSC 2015

Script Action Description + Example
GSP.captureGeometry Switches portal application into interactive editing mode.
  • If active feature id is found portal will try to edit existing feature.
  • Otherwise new feature will be placed.
 <FormAction name="EditGeometry" action="SCRIPT[GSP.captureGeometry()]" />
GSP.setActiveFeature Sets new active feature and it's attributes.
 <FormAction name="SetActiveFeature" action="SCRIPT[GSP.setActiveFeatures('Building Extension')]" />
 <FormAction name="SetActiveFeature" action="SCRIPT[GSP.setActiveFeatures(13)]" />
GSP.clearActiveFeature Clears any currently active features for this workflow.
 <FormAction name="ClearActiveFeature" action="SCRIPT[GSP.clearActiveFeatures()]" />
GSP.getActiveFeature Returns feature that is currently active within the workflow.
 <FormAction name="GetActiveFeature" action="SCRIPT[GSP.getActiveFeatures()]" />
GSP.setMapScale Sets map scale.
 <FormAction name="SetMapScale" action="SCRIPT[GSP.setMapScale(1000)]" />
GSP.getMapScale Gets the current map scale.
 <FormAction name="GetMapScale" action="SCRIPT[GSP.getMapScale()]" />
GSP.bringToFront Brings the workflow window to the front.
 <FormAction name="BringToFront" action="SCRIPT[GSP.bringToFront()]" />
GSP.bringToBack Brings the workflow window to the back.
 <FormAction name="BringToBack" action="SCRIPT[GSP.bringToBack()]" />
GSP.setMapCenter Sets map center.
 <FormAction name="SetMapCenter" action="SCRIPT[GSP.setMapCenter(latitude,longitude))]" />
GSP.setMapCenterAndScale Sets MapCenter and a specific scale.
 <FormAction name="SetMapCenterAndScale" action="SCRIPT[GSP.setMapCenterAndScale(latitude,longitude,mapScale))]" />
GSP.getMapCenter Gets the current map center.
 <FormAction name="GetMapCenter" action="SCRIPT[GSP.getMapCenter()]" />
GSP.setMapBounds Sets the map bounds.
 <FormAction name="SetMapBounds" action="SCRIPT[GSP.setMapBounds(left,bottom,right,top)]" />
GSP.getMapBounds Gets the current map bounds.
 <FormAction name="GetMapBounds" action="SCRIPT[GSP.getMapBounds()]" />
GSP.setZoomBox Sets a zoom box.
 <FormAction name="SetZoomBox" action="SCRIPT[GSP.setZoomBox(left,bottom,right,top)]" />
GSP.getZoomBox Gets the current zoom box.
 <FormAction name="GetZoomBox" action="SCRIPT[GSP.getZoomBox()]" />
GSP.fitSelectedElements Fits map with selected elements.
 <FormAction name="FitSelectedElements" action="SCRIPT[GSP.fitSelectedElements()]" />
GSP.getSelectedElements Returns currently selected elements.
 <FormAction name="GetSelectedElements" action="SCRIPT[GSP.getSelectedElements()]" />
GSP.setSelectedElements Marks specified features as selected on the map. It allows selecting single feature, whole feature classes and further specify using map service name or id.
 <FormAction name="SetSelectedElements" action="SCRIPT[GSP.setSelectedElements(2,3)]" />
GSP.clearSelectedElements Clears the selection of elements
 <FormAction name="ClearSelectedElements" action="SCRIPT[GSP.clearSelectedElements()]" />
GSP.reloadFeatures Reloads all features (= redraw of the map content)
 <FormAction name="ReloadFeatures" action="SCRIPT[GSP.reloadFeatures()]" />
GSP.setFeatureVisible Sets specified feature class (by name) visible.
 <FormAction name="SetFeatureVisible" action="SCRIPT[GSP.setFeatureVisible('Building Extension')]" />
GSP.setFeaturesInvisible Sets specified feature class (by name) invisible.
 <FormAction name="SetFeatureInvisible" action="SCRIPT[GSP.setFeatureInvisible('Building Extension')]" />
GSP.startEdit Starts editing specified feature.
 <FormAction name="StartEdit" action="SCRIPT[GSP.startEdit(2)]" />