Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added docs/maps/images/drawing_layer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 50 additions & 1 deletion docs/maps/import-geospatial-data.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spaces in **{stack-manage-app}** in {kib}. For more information, see
{ref}/security-privileges.html[Security privileges],
<<kibana-privileges, {kib} privileges>>, and <<kibana-role-management, {kib} role management>>.

To upload GeoJSON files in {kib} with *Maps*, you must have:
To upload GeoJSON files and draw features in {kib} with *Maps*, you must have:

* The `all` {kib} privilege for *Maps*
* The `all` {kib} privilege for *{ipm-app}*
Expand Down Expand Up @@ -58,6 +58,55 @@ On the {kib} home page, you can upload a file and import it into an {es} index w
. Use the file chooser to select a GeoJSON file.
. Click *Import file*.

[discrete]
=== Draw features in a map

Upload features into {es} by drawing lines, polygons, circles, bounding boxes, and points in a map.

To create a new index for drawing:

. <<maps-create, Create a map>>.
. Click *Add layer*.
. Select *Create index*.
. Set *Index name*.
. Click *Create index*.

To open an existing index for drawing:
Comment thread
nickpeihl marked this conversation as resolved.

. <<maps-create, Create a map>>.

. Click *Add layer*.

. Select *Documents*.

. Select the data view that points to your index. A <<data-views, data view>> can point to one or more indices. For feature editing, the data view must point to a single index.

. Click *Add layer*.

. Set *Scaling* to *Limit results to 10,000*.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hopefully we can remove this when #123409 is merged.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct, along with #124061, the goal is to remove all of these constraints an allow any vector layer with documents source to allow feature editing.


. In **Filtering**:
** Clear the *Apply global search to layer data* checkbox.
** If your data view contains a default time field, clear the *Apply global time to layer data* checkbox.

. Click *Save & close*.

. In the legend, click the layer name and select *Edit features*.

When feature editing is open, a feature editing toolbox is displayed on the left side of the map.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
When feature editing is open, a feature editing toolbox is displayed on the left side of the map.
A feature editing toolbox appears on the left side of the map.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest indenting this sentence and the image under step 9. To do this, add a "+" in the empty line.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sentence and image apply to both "To create a new index for drawing" and "To open an existing index for drawing" set of instructions. For this reason, I did not indent the sentence and image under step 9.


[role="screenshot"]
image::maps/images/drawing_layer.png[]

To draw features:

. Click on the line, polygon, circle, bounding box, or point icon.
. Move the mouse cursor over the map and follow the on screen instructions to draw a feature.
Comment thread
nreese marked this conversation as resolved.
+
When a feature is complete, the feature is added to the index as a new document.
. Repeat to draw additional features.
. When you are finished adding features, go to the legend, and click *Exit* under the layer name.

[discrete]
=== Upload data with IP addresses

Expand Down