Draw Circle on Map Esri Javascript
In Map Viewer, you can create features on a map by creating a sketch layer. A sketch layer is a type of feature collection. When you create a sketch layer, you create features to symbolize something you lot want to evidence on the map. You can also add descriptive information that appears in pop-ups when the characteristic is clicked.
Tip:
You can use keyboard shortcuts to quickly complete common workflows in Map Viewer. To view the full list of keyboard shortcuts in Map Viewer, press Alt+? on Microsoft Windows or Option+? on Mac.
The features in a sketch layer are saved with the map so that simply y'all, the map author, tin can edit and save them. Creating a sketch layer is a practiced way to add a small number of features to a map, for instance, the swimming pools managed by your city'south parks and recreation department. Sketch layers are likewise a way to create characteristic layers if you don't have an organizational account with publishing privileges or access to ArcGIS Server.
There are six types of features you can depict in a sketch layer. Choose from stamps, lines, polygons, rectangles, circles, and text.
Create a sketch layer
To create a sketch layer, complete the following steps:
- On the Settings (lite) toolbar, click Add sketch
.
The Sketch pane appears and the sketch tools appear on the map.
- Follow the instructions for whatever of the following sketch tools to add features to the map:
- Stamp
- Line
- Polygon
- Rectangle
- Circle
- Text
- Optionally, click Snapping and change the snapping options as follows:
Snapping provides visual guides that help yous draw shapes—for example, draw at correct angles or draw straight lines—and allows you to identify features straight on the edges and vertices of features.
- Plough off the Enable snapping toggle button to disable snapping.
- Turn off the Geometry guides toggle button to disable the visual guides that appear when you are drawing or updating sketch features—for example, guides that assistance you draw right angles and straight lines.
- Plough off the Feature to feature button to disable the ability to snap to the vertices and edges of other features while drawing and updating sketch features on the map.
- If snapping is enabled, click Snapping layers and select additional layers in the map to allow snapping to features in other feature layers when drawing and updating sketch features. Click Select all to allow snapping to features in all layers in the map.
Tip:
Feature to feature snapping can be used with hosted feature layers and with WFS, CSV, and GeoJSON layers.
- Optionally, add pop-ups to the sketch features.
- Shut the Sketch pane when y'all're finished.
Tip:
To add additional sketch layers to the map, click Add on the Contents toolbar and cull Sketch
.
Add together stamps
You can use stamps to symbolize points of interest on a map. For instance, you can use special symbols to represent hospitals, evacuation points, or hiking trails.
To add a stamp, complete the following steps:
- Create a sketch layer as described above or choose an existing sketch layer in the Layers pane.
- From the sketch tools, choose Postage
.
- Click a point on the map where you want to place the postage stamp.
A default postage stamp is placed on the map.
- Use the following options, depending on the symbol, to change the appearance of the stamp:
- Symbol—Select a symbol set from the drop-downward bill of fare, and choose a symbol from the symbol set. Optionally, click Invert groundwork color
to see how the symbols appear against a night background.
These symbols are in scalable vector graphic (SVG) format, which is a vector prototype format for second graphics. Vector symbols are simply supported in some apps, including ArcGIS Instant Apps, ArcGIS StoryMaps, and ArcGIS Field Maps. Instead of the vector symbols y'all apply to a map, a default symbol is practical when the map is used in apps that don't yet support these symbols.
- Size—Utilise the slider to change the symbol size or change the pixel value in the text box.
- Rotation—Utilize the slider to change the rotation of the symbol, or change the caste value in the text box.
- Fill—Ensure that the toggle push is turned on. Select a colour from the preset options or from the custom color picker. You tin also specify a custom color using a hexadecimal value. Click Add
to salve a custom color and click Remove
to remove a saved color. Optionally, use the Fill transparency slider to apply transparency to the fill, or alter the transparency value in the text box.
- Outline—Ensure that the toggle button is turned on. Select a color and outline transparency as you did for Fill up. In the Stroke section, use the slider to modify the line width, or change the pixel value in the text box.
- Symbol—Select a symbol set from the drop-downward bill of fare, and choose a symbol from the symbol set. Optionally, click Invert groundwork color
When you lot set the style for a sketch feature, the style and pop-upward content persist for subsequently placed features of that type. Changes to the style apply to the most recently placed feature and to subsequent features.
Add lines
You tin use lines to symbolize boundaries and routes.
To add a line, complete the following steps:
- Create a sketch layer as described to a higher place or choose an existing sketch layer in the Layers pane.
- From the sketch tools, choose Line
.
- Click a point on the map to brainstorm drawing.
A point appears on the map and a line extends from information technology, controlled by the mouse pointer.
- Click another point on the map to join the line to that point. Continue clicking other points on the map to add more vertices and line segments.
If yous make a mistake while drawing, you can utilise keyboard shortcuts to undo and redo vertices.
- Double-click or use a keyboard shortcut to identify the endpoint and complete the line.
The line is drawn on the map.
- Do either of the following in the Sketch pane to alter the line'southward appearance:
When you prepare the style for a sketch feature, the mode and pop-up content persist for afterward placed features of that type. Changes to the fashion use to the most recently placed feature and to subsequent features.
Add polygons
You can use polygons to symbolize irregularly shaped areas.
To add together a polygon, consummate the following steps:
- Create a sketch layer every bit described in a higher place or choose an existing sketch layer in the Layers pane.
- From the sketch tools, choose Polygon
.
- Click a point on the map to place a vertex. Lines are automatically drawn to bring together vertices every bit they are placed.
If you lot make a mistake while cartoon, you can employ keyboard shortcuts to disengage and redo vertices.
- Double-click or use a keyboard shortcut to place the final vertex and complete the polygon.
The polygon is drawn on the map.
- Utilise either of the following options in the Sketch pane to change the polygon'due south appearance:
When you fix the style for a sketch feature, the manner and popular-upwards content persist for subsequently placed features of that type. Changes to the way utilise to the about recently placed feature and to subsequent features.
Add together rectangles and circles
Y'all can use rectangles and circles to symbolize regularly shaped areas.
To add a rectangle or a circle, complete the following steps:
- Create a sketch layer as described higher up or choose an existing sketch layer in the Layers pane.
- From the sketch tools, choose Rectangle
or Circle
.
- Elevate to brainstorm cartoon a shape on the map where you want the feature to be placed.
- Release the mouse button to complete the feature and place it on the map.
- Optionally, do either of the post-obit in the Sketch pane to change the feature's appearance:
When you set the fashion for a sketch feature, the style and pop-up content persist for subsequently placed features of that type. Changes to the style employ to the most recently placed feature and to subsequent features.
Add text
You can use text to label or provide information about anything on the map.
To add together text, consummate the post-obit steps:
- Create a sketch layer as described above or choose an existing sketch layer in the Layers pane.
- From the sketch tools, choose Text
.
- Click the signal on the map where yous want to place the text.
- Type the text in the Content box in the Sketch pane.
- Optionally, way the text past doing the post-obit:
- Select a font from the Font drop-downwards bill of fare.
- Modify the value in the Size text box, or use the arrows to increment or decrease the size.
- Select a color from the preset Color options or type a hexadecimal value in the text box.
- Turn the Halo toggle push button on or off and ready the color and size.
When you lot set the manner for a sketch feature, the fashion and popular-up content persist for after placed features of that type. Changes to the style apply to the most recently placed feature and to subsequent features.
Add a popular-up to a sketch feature
You tin add together a pop-upward to a sketch feature to provide more information nearly the location.
To add a popular-up to a sketch characteristic, do the following:
- If necessary, open the Sketch pane by doing the following:
- On the Settings (light) toolbar, click Sketch
.
The Sketch pane opens and the sketch tools appear on the map.
- If at that place are multiple sketch layers on the map, select the desired sketch layer from the layer selector in the Sketch pane.
- On the Settings (light) toolbar, click Sketch
- From the sketch tools, cull Select
.
- Click the feature to which y'all want to add a pop-upward.
- In the Sketch pane, click Pop-upwardly.
- Turn on the Enable popular-up toggle button.
- Expand the Title section and type a name in the text box.
- Click the default Text element
and type boosted information well-nigh the feature in the text box.
- Click Add content to add new text or image elements.
- Click Options
to delete or indistinguishable an chemical element.
- Click the dorsum pointer when you're finished to return to the Sketch pane.
You can besides open the Sketch pane by clicking Layers on the Contents (dark) toolbar. Select the sketch layer, or click Options
on the layer and cull Sketch.
When y'all set the style for a sketch feature, the way and pop-upwards content persist for subsequently placed features of that type. Changes to the style apply to the well-nigh recently placed feature and to subsequent features.
Edit a sketch feature
You can change the mode, shape, size, or position of a sketch feature later it has been fatigued on the map.
To edit a sketch feature, do the following:
- If necessary, open the Sketch pane past doing the post-obit:
- On the Settings (light) toolbar, click Sketch
.
The Sketch pane opens and the sketch tools appear on the map.
- If there are multiple sketch layers on the map, select the desired sketch layer from the layer selector in the Sketch pane.
- On the Settings (light) toolbar, click Sketch
- From the sketch tools, choose Select
.
- Click a characteristic on the map.
The characteristic is selected on the map.
- Optionally, drag the feature to a new location.
- Optionally, elevate a characteristic's handles to resize or rotate it.
- Optionally, reshape a line, polygon, rectangle, or circle:
- Click the selected characteristic.
The shape's vertices appear in orange and the midpoints of the line segments appear in white.
- Drag a vertex or midpoint to a new location.
- Click a midpoint to add vertices.
The midpoint becomes a vertex and two new midpoints are added on either side.
- Click the selected characteristic.
- Optionally, click Delete
in the Sketch pane to delete a feature.
- Close the Sketch pane to confirm your changes and articulate the selection.
You lot can also open the Sketch pane by clicking Layers on the Contents (night) toolbar. Select the sketch layer, or click Options
on the layer and choose Sketch.
Edit multiple sketch features
You lot tin can rotate, resize, or reposition more than one feature at a time after they have been drawn on the map.
To edit multiple sketch features, do the following:
- If necessary, open the Sketch pane by doing the following:
- On the Settings (light) toolbar, click Sketch
.
The Sketch pane opens and the sketch tools appear on the map.
- If there are multiple sketch layers on the map, select the desired sketch layer from the layer selector in the Sketch pane.
- On the Settings (light) toolbar, click Sketch
- From the sketch tools, practise i of the following:
- Drag to draw a shape over the map and select features.
The features are grouped into one selection on the map.
- Optionally, drag the option to a new location.
- Optionally, drag the choice's handles to resize or rotate the features.
- Click Delete
in the Sketch pane to delete a characteristic.
- Shut the Sketch pane to confirm your changes and articulate the selection.
You tin can also open the Sketch pane past clicking Layers on the Contents (dark) toolbar. Select the sketch layer, or click Options
on the layer and choose Sketch.
Sketch shortcuts
Yous can utilise keyboard shortcuts to help you draw sketch features, such every bit lines or polygons. The following table lists and describes the available shortcuts:
Shortcut | Clarification |
---|---|
Ctrl | Press while drawing to disable snapping. Snapping provides visual guides that help you lot draw at right angles and draw straight lines, and allows you to place features directly on the edges and vertices of other sketch features. |
Enter | Complete cartoon. |
Z | Undo the last vertex. |
R | Redo the terminal vertex. |
Esc | Abolish drawing. |
Feedback on this topic?
Source: https://doc.arcgis.com/en/arcgis-online/create-maps/create-sketch-layers-mv.htm
0 Response to "Draw Circle on Map Esri Javascript"
Post a Comment