Add a graphic to the specified layer. You must create the layer first.
The graphic to be added
The layer ID to add the graphic to
A boolean returning true on success and false otherwise
Utility method for the "DeleteMarkup" and "DeleteMeasurement" commands, common to the Markup and Measurement modules. Placing it here ensures that there's no dependency between the two modules and no duplication of code. This method will delete all graphics from the given layer(s) and will display a warning if multiple items are being deleted (if configured). It can be run in two modes - if onlyMeasurementMarkup is true, it will delete only markup which is tagged by the measurement module - otherwise it will delete all markup.
The geometry defining the area within which to delete markup. Typically passed in by the MapTool
A string array of id's of layers to delete markup from
The current application instance
An optional callback function which, if defined, will be passed the array of deleted graphics.
An optional string defining the language resource for the warning to be displayed if more than one markup is being deleted. If not provided, will disable this warning.
An optional string defining the language resource for the title for the aforementioned warning.
An optional string defining the library id to retrieve the aforementioned language resources from. Defaults to "Mapping"
Utility method to execute the deleteMarkup function silently without any prompts even if multiple markup are being deleted
The geometry defining the area within which to delete markup. Typically passed in by the MapTool
A string array of id's of layers to delete markup from
The current application instance
An optional callback function which, if defined, will be passed the array of deleted graphics.
Checks if the supplied geometry intersects the supplied graphic.
The geometry defining the area which might contain the graphic.
The graphic which might be contained within the supplied geometry.
The current application instance.
Promise Indicating if the esri.Graphic is contained within the supplied geometry.
Utility method to get size of the bounding box for simplemarkersymbol and picturemarkersymbol. Note - Supports only simplemarkersymbol and picturemarkersymbol. Doesn't support visual variables.
The graphic for which we want to get size of bounding box.
Optional The current application instance.
The size of the bounding box.
Given a clickable graphic and a layerInfo (optional) returns the capabilities of that graphic
The clickable graphic
The layer info that goes with that graphic (optional)
Returns the clickable layer info for a supplied graphic
Get the extent represented by the geometry @param geometry The geometry whose extent needs to be returned. @param app The current application instance. @param pointBufferSize. Represents the size of extent to be created. Only applicable for point geometry. @returns The extent created from geometry.
Retrieve the graphic layer with the specified id if it exists. If 'create' is true, create it if it doesn't
The layer ID to retrieve or to create
Create the layer if it doesn't exist if this is true
The application that this module belongs to
The retrieved or created Graphics layer
Retrieves graphics contained within an extent specified by the given geometry from a given layer on the map.
The geometry defining the area on the specified layer from which to extract markup
The esri layer from which to extract markup
The current application instance
Optional. Represents the size of the box to buffer for a graphic with a simple/picture marker symbol. Defaults to the size of the bounding box of symbol in pixels.
Optional. Represents the size of the box to buffer with the given point geometry as it's center. Defaults to 6.
An array of esri.Graphic objects contained within the specified geometry on the specified layer.
Retrieve the markup layer with the specified id if it exists. If it doesn't exist, it will be created. This method also optionally registers the markup layer as a clickable graphic layer.
The application that this module belongs to
The retrieved or created Graphics layer
Function to generate a polygon containing a specified incircle with a given point as it's center. @param point The center of the specified incircle @param diameter The diameter of the specified incircle @param app The current application instance @param xoffset Optional. Represents the x offset. @param yoffset Optional. Represents the y offset. @return A polygon containing an incircle of the specified diameter, with the specified point as its center
Measures the actual rendered size of a text markup in pixels
The font family to be applied to the text
The size of the text in pixels
Specifies weight of the font. Defaults to normal.
An object with the width and height of the specified label
Gets the map's graphics layers that are neither associated with the Essentials site nor used internally by GVH.
Check whether the supplied feature is an auto-editable clickable feature
The feature to check
Checks whether the supplied graphic belongs to a clickable graphic layer.
The application that this module belongs to
The graphic to be checked
A boolean returning true if the supplied graphic belongs to a clickable graphic layer, false otherwise
Check whether the supplied feature is an editable (but not auto editable) clickable feature
The feature to check
Move a graphic on a graphics layer to the top. A low cost way to keep graphics organized
The graphic to move.
Function to rotate any given polygon by a specified angle. Returns a rotated copy of the original polygon.
The angle to rotate the polygon in, specified in degrees, in a clockwise direction (as is standard for esri)
The "pivot" around which to rotate the polygon. Is not required to lie on or within the polygon
The polygon to rotate.
A rotated copy of the original polygon
Modifies the attributes array of the graphic so that it the keys are attribute names instead of aliases (as defined in ArcGIS Server). Those attributes that are defined using attribute names will not be modified.
The ESRI graphic
The Geocortex Essentials layer