locations on a
AnyLogic provides a search menu
to help you find locations on
a GIS map. When you enter a search query in the search box, AnyLogic
will find places that match the query and create a list of search
results. Also, AnyLogic will mark all search results on the map with a
specified markup object, such as a GIS
Point or a GIS
Search results are temporary;
every time you run a new search
they update. But sometimes it might be useful to keep search results so
that you can use them again in your model without going online
to run a new search. AnyLogic helps you keep a map object that you
found by saving
as a GIS Point or a GIS Region.
A search is first performed in
the visible area of a map;
then, if no results are found there, AnyLogic
searches throughout the whole map.
To find an object on a map
- Double-click the GIS map to
its edit mode.
- You will see the search box
to enter your query.
- To enter a query, click in
the search box. You will then
see additional search parameters for you to select the kind of object
you are looking for: a Point
(such as a city, a shop, or a street), or a Region
district, country). Select the appropriate parameter, and type your
- To start searching for
locations on the map that match your
query, click the Search
button or press
- Point objects found on
the map are marked with a GIS
and areas are marked with a GIS
object. If you select a search result, you will see
its full address in the Title of
- AnyLogic will display all
locations it found as temporary
in the GIS
Search Results view.
- To make the location of a GIS
element be displayed at the map’s center, double-click on it.
- Using the context menu that
opens when you right-click an element
listed in the GIS Search Results,
you can place an agent at its
- If you clear the search box
or type another query, search
results from the prior query are discarded.
To keep search results in the model
- Search for a location
the map, and then go to the GIS
- Select the location that you
need to keep in the model for
- Right-click this element and
select the option Convert To GIS
click the button in the view toolbar.
location will be saved in the model as a GIS Point
or a GIS
Region, depending on the type
of object you are saving.
- The converted elements are
displayed with a color that is different from the color for
elements that are still temporary, both in the search results list and
on the map.
- Now this object will be
cached and saved with the other model files. You can find
model tree under Agent type >
Presentation > Map name.
- If you go to a converted
will see its full address in the Title
- A converted element is
pinned to a particular location on
the map. If you need to move it to another location, in its Properties
view, deselect the option Lock the
To find and convert a region or a
- The instructions listed
apply to searching for a region and
converting the search results into a GIS
object in order to keep it in the model. In the figure
below you can see that the top
search result, which is a region, has been converted:
- Sometimes when you search
for a region, such as a country, the
search results found on the map may not be one single region, but
a “multiregion”, which is a special GIS
- A GIS Multiregion
is a group of
regions united under one Title
for your convenience. You can convert a multiregion search result just
like a GIS Region
- AnyLogic will create several
converted regions on the map
as well as a multiregion that contains all the regions. You can find
these new converted objects in the model tree, under the map:
- In the model tree you can
manage the regions. For example,
you might remove regions that you do not need.
- Whenever you need to edit
all of these regions at once, navigate
to the GIS multiregion properties and click the button Select regions,
and this multiregion
will turn into the multiple selection of these regions.
clear the search results
- Navigate to the GIS Search
- To remove one search result
right-click it in the list, and
the context menu.
- To remove all elements,
right-click any element in the list, and
from the menu.
- Alternatively, click the
button to remove
one selected element,
- Click the button to
- All temporary GIS markup
elements on the map will also be cleared.