More

Remove selected feature symbol

Remove selected feature symbol


Background: I am dynamically populating a feature layer. On this feature layer I have set the symbol (as you can see) to a nice little .png">

Can someone please tell me:

  1. what this symbol is
  2. where it is coming from
  3. and possibly how to remove it

Here is my original code that isn't working as expected:

var featureLayer = new esri.layers.FeatureLayer(featureCollection, { mode: esri.layers.FeatureLayer.MODE_ONDEMAND, infoTemplate: template, outFields: ["Name"] }); var infoSymbol = new esri.symbol.PictureMarkerSymbol({ "angle": 0, "xoffset": 0, "yoffset": 12, "type": "esriPMS", "url": "/Images/map-marker.png">

From Arcmap Desktop this light blue is always the "selection" highlight color.

try changing the Color in this section of your code:

var fieldsSelectionSymbol = new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID, new SimpleLineSymbol(SimpleLineSymbol.STYLE_DASHDOT, new Color([255, 0, 0]), 2), new Color([255, 255, 0, 0.5]));

No Blue symbol http://maps.rosreestr.ru/arcgis_js_api/sdk/help/jssamples/fl_selectfeatures.html

Blue select symbol https://developers.arcgis.com/javascript/jssamples/fl_selectfeatures.html


var selectionSymbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_SQUARE, 10, new SimpleLineSymbol(SimpleLineSymbol.STYLE_DASHDOT, new Color([255, 0, 0]), 2), new Color([255, 255, 0, 0.5]) ); featureLayer.setSelectionSymbol(selectionSymbol);
  1. this symbol is 'selectionSymbol' you defined as the above code
  2. you can try to removefeatureLayer.setSelectionSymbol(selectionSymbol);and see what will happen.

3 Answers 3

Feature selection dialog uses SelectionTree control, a built-in control of the Windows Installer.

You can control which installation options are displayed for a feature using Attributes column of the Feature Table.

Feature element of WiX has four properties which control how a feature can be installed:

  • Absent: allow / disallow
  • AllowAdvertise: no / system / yes
  • InstallDefault: followParent / local / source
  • TypicalDefault: advertise / install

Component table also controls whether the component can be run from source or not. The Component element has Location property:

  • local
    Prevents the component from running from the source or the network (this is the default behavior if this attribute is not set).
  • source
    Enforces that the component can only be run from the source (it cannot be run from the user's computer).
  • either
    Allows the component to run from source or locally.

So to remove the option to run from the network, set Location property of your components to local .

You cannot remove Entire feature will be installed on local hard drive from the options. It is displayed only when there are subfeatures and enables installation of the subfeatures as well as the feature itself as opposed from Will be installed on local hard drive which installs only the selected features and does not affect subfeatures.

If the subfeatures are always installed with the parent, you can try to set InstallDefault attribute of the subfeatures to followParent .


3 Answers 3

I had this same problem myself and I just solved it.

I had to define an empty variable in the global environment (outside any functions you're using). This isn't a full script or anything, but the general idea I'm describing is below:

I am very new to both Leaflet and javascript, so I have to say that I'm not exactly sure where to place the info.removeFrom(map) line in the code you have posted at the map link you provided, but you are on the right track with 'info.removeFrom(map)' .

I was able to problem-solve my issue with dynamic legends and info boxes by fiddling around here: http://jsfiddle.net/opensas/TnX96/

I believe you want to remove the control similarly how you added it.

In this case leaflet provides direct remove() method similar to addTo(map) method.

Whenever you want to remove the legend control use following code-

Create Control-

Remove Control-

Despite the fact that this question was asked a year ago, I recently had to come up with a solution to a similar problem myself so feel as if I should share in case anybody else ends up here like I did.


Ways to list layers in the table of contents

The table of contents has several ways of listing layers: by drawing order, source, and whether layers are visible or selectable. Click the icon at the top of the tab to switch between these grouping methods. You can tell which mode is active by looking at the button (the active one is highlighted) and the organization of the items in the table of contents. The different ways of listing layers are simply methods of displaying information about the same layers.

The options include the following:

Listing by drawing order

Use List By Drawing Order to author the contents of your map, such as to change the display order of layers on the map, rename or remove layers, and create or manage group layers. All the data frames in your map are listed when the table of contents is sorted by drawing order. However, only the active data frame—indicated by a bold data frame name—is shown in the map in data view.

The order of layers determines how layers are drawn on a map. Within a data frame, the layers listed at the top will draw over those in the list below them, and so on, down the list. You can easily drag and drop layers to adjust their drawing order or organize them in separate data frames.

To turn on or off a layer, click the check box next to the layer's name. Right-clicking opens a menu containing many commands for working with layers, including accessing their properties, zooming to them, selecting from them, and opening their attribute tables.

Listing by source

Click List By Source to show the layers in each data frame with the layers organized by the folders or databases in which the data sources referenced by the layers can be found. This view will also list tables that have been added to the map document as data.

This view is very useful for managing and repairing each layer's path reference to its data source in your map document.

Listing by visibility

Click List By Visibility to see a dynamic listing of the layers currently displayed in the active data frame. The way layers are listed updates automatically as you pan and zoom, interact with the map, select features, and turn layers on and off.

Listing layers by visibility helps you visually simplify and organize a detailed or complicated map with many layers. Since the organization of the table of contents visibility list is controlled automatically, you cannot change the order or groupings of layers manually. Layers within a group layer are listed individually, since each layer can have its own visibility and selection properties. You can choose to display the group layer's name beside the layer's entry on the Table Of Contents Options dialog box.

With List By Visibility, you have visual cues to indicate the layer's visibility. Each type of layer has its own icon, and the symbol is either colored to indicate the layer is on or gray when it is not, so you can quickly look at the icon to determine whether a layer is visible.

  • Visible—The layer is turned on.
  • Out of Scale Range—The layer has a visible scale range and is not being displayed at the current map scale. To bring it back into view, right-click and click Zoom To Make Visible .
  • Not Visible—The layer is turned off. To turn it back on, click the icon to the left of the layer name.

When you right-click a layer name, the menu that appears contains the same commands as the menu for listing layers by drawing order and selection.

To turn a layer on or off, click the layer icon to the left of the layer name, such as for a line layer or for a polygon layer. To make a layer selectable or not selectable, click the selection icon to the right of the layer name. If that icon is colored , the layer is selectable if it is gray , the layer is not selectable.

Listing by selection

Click List By Selection to group layers automatically by whether or not they are selectable and have selected features. A selectable layer means that features in the layer can be selected using the interactive selection tools, such as those on the Tools toolbar or the Edit tool, when in an edit session.

  • Selected—The layer has features selected.
  • Selectable (no features selected)—The layer is selectable, but it has no features currently selected.
  • Not Selectable—The layer is not selectable, and you cannot use the interactive selection tools to select features in it.

Similar to listing layers by visibility, you can turn a layer on or off using the layer icons to the left of the layer name, such as for a line layer or for a polygon layer, and make a layer selectable or not selectable using the icon to the right of the layer name. In addition, the number of selected features is listed next to the selection icon. When there are selected features, you can clear the selection by clicking the white selection icon in the column between the selectable icon and number of selected features.

When you right-click a layer name, the menu that appears contains commands that work with selections. You can navigate to selected features, clear the selection, create a selection layer, open the table showing the selection, and so on.

When only a few features are currently selected, the selected features are listed individually under the layer name. The square icon next to the feature ID allows you to refine which features are selected clicking the box deselects that particular feature. With a large number of selected features, the layer's entry does not include this icon. You can turn off this setting altogether on the Table of Contents Options dialog box. The ID of the feature is obtained from the layer's display expression, which is set on the Display tab of the Layer Properties dialog box.

Knowing whether layers are selectable or have selected features is particularly useful when editing, running geoprocessing tools (any tool that accepts layers considers the selected features), or performing other tasks that operate on selected features. For example, when copying features, both the editing environment and the Copy Features geoprocessing tool will copy only the selected features. You can list the table of contents by selection and easily see which layers have a selection. Layers containing at least one selected feature are automatically promoted to the top of the window, so you can avoid scrolling or sifting through a long layer list looking for layers with selected features. In addition, even though a layer is designated as not selectable and you cannot use the interactive selection tools to select its features, it is still possible to select from that layer using other methods of selection—such as with the table window, Select By Location , or Select By Attributes .


ABOUT WYGISC

We offer undergraduate, graduate, and certificates in Geospatial Information Science & Technology.

WyGISC's topics of research vary based on the disciplinary specializations and technical expertise of the personnel .

We maintain and build many applications using spatial data and technology.


Make a layer from a selected feature

The National Wilderness Preservation System layer has hundreds of features representing wilderness areas. In this project, you'll work only with the portion of the San Gorgonio Wilderness managed by the Forest Service. There are different ways to isolate one or more features from others. In this case, you'll select the feature you want to work with and make a new layer from it.

  1. On the ribbon, on the Map tab, in the Selection group, click Select . Click the San Gorgonio Wilderness feature managed by the Forest Service to select it.

The feature is highlighted on the map.

On the ribbon, the Feature Layer tab set appears with three contextual tabs under it.

A new layer named National Wilderness Preservation System selection is added to the map and to the Contents pane. The new selection layer contains only the single feature you selected on the map. (This is not yet apparent because the original layer is still visible.) You no longer need the Wilderness Areas in the United States layer.

On the map, you see the single feature from your selection layer. The layer name and its symbology need to be updated.

The Symbology pane appears.

The four unique values, representing different agencies, are replaced by a single symbol with a randomly chosen color.

The symbol color is updated on the map and in the Contents pane.

The URL field shows the path to the web-based data source. This is the same URL as the National Wilderness Preservation System layer you added from ArcGIS Living Atlas . When you made a new layer from a selection on the original layer, you did not create new data—you made a different representation of the same data.

If you added the layer from your computer, the data source is a file geodatabase with a path such as C:TempCreate a projectCreate_a_project.gdb .

The partial transparency makes the imagery and the mountain symbol visible underneath the wilderness feature. Learn more about visual effects such as transparency and layer blending.

The layers are reordered, and the mountain draws on top of the wilderness area.

The map zooms in to the extent of the layer.


Diagram building process

Starting with Utility Network version 4, a network diagram can represent both spatial features and nonspatial objects of a network. This means diagram junctions, diagram edges, and diagram containers in a network diagram can represent nonspatial network objects as well as spatial network features (points, polygons, and lines), structural attachments, and connectivity associations.

  • By default. When they exist as input for diagram generation, the system creates a diagram feature for each input network object during the elementary build phase, maintains graph completeness for diagram edges, and adds containment relations between input network objects that are contents and their containers.
  • Then, diagram rules can be configured on the diagram template to systematically run a trace from these initial junction or edge objects, add new nonspatial objects, discard some of them, reduce or collapse them, and so on.

Network edges that exist in the network without from and to junction objects are skipped during diagram building as much as possible. However, depending on when such an edge is encountered in the building process, it can also cause diagram generation failure.


Procedure

To replace the values in an attribute table:

  1. Open the feature class or the shapefile in ArcMap.
  2. Open the attribute table of the layer.
  3. Click the Editor menu on the Editor toolbar, and select Start Editing.
  4. On the attribute table, select the field to be edited. This is to ensure only the selected field is amended.


Shortcut: Create, Save, or Upload institutions

This chapter contains detailed instructions for making, changing, and saving a list of institutions to use when creating a data file or report in the IPEDS Data Center.

A wide range of customizable reports and analytical tools are available for data use in the IPEDS Use the Data. This section will also show how to save and upload the saved institutions for subsequent data center sessions. The steps for completing each task are explained in greater detail in later chapters of this user manual. It is important to note that regardless of which task you choose, the first step in creating any data file or report within the Data Center is to select the institutions that you want to compare or evaluate.

Step 1: Getting Started

To get started creating an institution group select a task from the Main Menu . If you would like to create an institution group without going to a task select the Create/Download an institution group, Save, or Upload institutions from the Shortcuts menu.

  • By Names or UnitIDs
  • Selecting a Comparison Institution
  • By Groups
  • By Variables
  • By Uploading a File

You can reach the institution selection screen by choosing a Main Menu task or by clicking on the Create, Save, or Upload institutions shortcut on the home page. When selecting institutions by using the Create, Save, or Upload institutions shortcut, the option to download your list will be available

1.1 Selecting by Names or UnitIDs

This is the default method of selecting institutions for a data file or report. You can use this option to search for institutions by full or partial Institution Name or UnitID.

The unique six (6) digit identifier assigned to all institutions that have submitted data to IPEDS.

Choose this option by clicking on the By Names or UnitIDs link from the Select Institutions toolbar, as shown in the example below. Type a full name, partial name, or UnitID in the search box provided. Search matches will display in a scrollable list just below the search box.

When searching for institutions by UnitID, you can enter just one UnitID or a list of multiple UnitIDs separated by commas. The latter option will greatly reduce the search time for larger institution groups.

You may select an individual institution by clicking directly on it, as shown below, or choose multiple institutions from the returned list by clicking on the button:

When selecting multiple institutions you will be redirected to a confirmation screen, as shown in the example below:

Select the institutions to include in your current report by using the check box next to an institution’s ID. You can also click on Check All to select the entire list of institutions or Uncheck All to clear any selections you have made and start again. When you have finished selecting institutions, click Continue to finalize your My Institutions list.

To sort the list of institutions, click on the active column headers for Institution Name, City, or State. To sort the list in reverse order, click on the active column header a second time.

The finalized My Institutions list will display once you click Continue, and the number of selected institutions will update on the status bar, as shown below.

You can add more institutions to this list by clicking on the By Names or UnitIDs link to search again, or by using one of the other available options from the Select Institutions toolbar. The button on the status bar can be selected at any time to make changes to the list of selected institutions.

When selecting institutions by using the Create, Save, or Upload institutions shortcut, you may click on the button to download your list.

1.2 Selecting a Comparison Institution

A Comparison Institution can be selected for most reports in the Data Center. The chosen Comparison Institution will display highlighted in your report results for easier comparison to its peers.

To select a Comparison Institution for the current task, click the button on the Comparison Institution status bar, shown below:

The Search for new comparison institution screen will open allowing you to select an institution to compare by searching for the name or UnitID, as shown below. If you have already selected institutions in your Data Center session, you may choose a school from your My Institutions list in the lower part of the pop up screen.

Once a Comparison Institution is selected, it will appear on the status bar at the top of the screen next to My Comparison Institution . The Change and Remove buttons can be used to edit this selection, as shown below:

1.3 Selecting by Groups

Institution groups may be generated from commonly used characteristics or by using previously determined groups. To access this option, place your cursor over By Groups on the Select Institutions toolbar, as shown below:

The methods listed below are available for quickly creating an institution group (visit the corresponding section or click on the links below to learn more about each):

1.3.1 EZ Group

The EZ Group method allows you to quickly create an institution group based on one or more frequently used criteria such as sector of institution, geographic location, or specialized educational mission (e.g. Historically Black College or University, Tribal College, etc.).

To choose this option, place your cursor over the By Groups option then click on EZ Group, as shown below:

Once you have selected EZ Group, the page will refresh to the screen shown below:

Start by selecting the IPEDS collection year that you would like to use for choosing your institution group. By default, the most recent data year available is selected as the data collection year, as shown below:

Changing the year will clear any selections that have already been made. The change year link is not available when creating a Comparison Group within the Customize DFR component. In this case, an EZ Group can only be generated based on the most recent universe year

Choose criteria under Select or Special missions (if any) for your institution group by using the checkboxes provided on screen.

Select additional criteria from the list Special Characteristics by clicking on one of the available category links. This will open the list of criteria on screen, as shown in the example below:

Where applicable, click on the icon to learn more about a specific category. Within each category, you may select the entire list of criteria by clicking Check All to or clear any selections you have made and start again by clicking Uncheck All . When you are done selecting criteria for a special characteristic, click Close to save your entries.

Any categories that you have selected criteria from will remain highlighted in orange. You may reopen the list of criteria at any time to change your selections.

If you have selected a Comparison Institution for the current report, the characteristics in each category that match the Comparison Institution are highlighted in orange and bolded for easier selection. In addition, a general summary will be present at the top of the screen, as shown below:

Key Terms: Comparison Institution

A Comparison Institution, while not required, can be selected for most reports in the Data Center. This feature allows you to highlight an institution in a report and compare its variable values with those of a user-selected or system defined peer group.

As you select various criteria, they will display in the Criteria Summary box at the bottom of the screen for your reference, as shown in the example below. In addition, the system will automatically update the number of matching institutions in your potential institution group as you work. This count of institutions matching the selected characteristics will display next to the Clear and Search button, as shown below:

Finalize all selections and continue to the My Institutions list by clicking Search or erase all selections by clicking on the Clear button. If you have already selected/uploaded institutions in this function, or while working in a previous function during the current Data Center session, you will be prompted to ‘Combine the two sets and eliminate duplicates’, ‘Keep only the institutions existing in the two sets’, or ‘Disregard the previous set and keep this one’.

The list of selected institutions will display on the My Institutions screen and the number of selected institutions will update on the status bar. You can add more institutions to this list by clicking on the By Names or UnitIDs link to search again, or by using one of the other available options from the Select Institutions toolbar, as shown below:

The button on the status bar can be selected at any time to make changes to the list of selected institutions.

When selecting institutions by using the Create, Save, or Upload institutions shortcut, you may click on the button to download your list.

1.3.2 Automatic Group

Use this option to select the automatic peer group for an institution as developed by NCES. The Automatic Group option will be available only after a Comparison Institution for the current task is selected.

To utilize this option, place your cursor over the By Groups option then click on Automatic Group, as shown below:

The system will automatically compile a list of peers for the selected Comparison Institution and add them to the My Institutions list for the current report. If you have already selected/uploaded institutions in this function, or while working in a previous function during the current Data Center session, you will be prompted to ‘Combine the two sets and eliminate duplicates’, ‘Keep only the institutions existing in the two sets’, or ‘Disregard the previous set and keep this one’.

The list of selected institutions will display on the My Institutions screen and the number of selected institutions will update on the status bar. You can add more institutions to this list by clicking on the By Names or UnitIDs link to search again, or by using one of the other available options from the Select Institutions toolbar, as shown below:

The button on the status bar can be selected at any time to make changes to the list of selected institutions.

When selecting institutions by using the Create, Save, or Upload institutions shortcut, you may click on the button to download your list.

1.3.3 Saved Group

Similar to the Automatic Group option, the Saved Group option allows you to load a saved institution group for a selected Comparison Institution defined by the institution itself.

Saved Groups are not available for all institutions. If a Saved Group is not available for the specified Comparison Institution, a message will appear prompting you to select another means of creating an institution group

If you have already selected or uploaded institutions in your current Data Center session, you will be prompted to ‘Combine the two sets and eliminate duplicates’, ‘Keep only the institutions existing in the two sets’, or ‘Disregard the previous set and keep this one’.

The list of institutions will display on the My Institutions screen and the number of selected institutions will update on the status bar. On this screen you have the option to select another method of adding institutions from the Select Institutions toolbar or modify the current list, as shown below:

1.4 Selecting by Variables

The By Variables method allows you to search for institutions using any IPEDS variable or combination of variables. For example, you can access this option to select all institutions in the state of California with a total enrollment of more than 10,000 students.

To access this option, place your cursor over the By Variables link from the Select Institutions toolbar, as shown below:

Start by choosing the variables that you want to use to define your institution group using one of the methods outlined below. If you have already selected/uploaded variables for a previous function during the current Data Center session, your existing My Variables list is displayed. Up to 20 variables can be selected to use as criteria for creating an institution group.

As you navigate the Data Center, selecting IPEDS variables for various functions and purposes, these variables are stored in the My Variables list for easy access.

Any new variables that are selected during this process will be added to the My Variables list, as shown below:

Choose the variables for defining your institution group by clicking on the checkbox next to the variable you wish to select. Several other controls for variable list modification include the following:

-- Select this option to edit the selected data years for a single variable. When the related pop-up screen is displayed, click on the corresponding checkboxes to select/unselect data years for the specified variable. When finished, click Save to apply these changes and return to the My Variables list. -- Select this option to delete the corresponding variable from the My Variables list. -- Select this option to add or delete data years for all variables from a particular section. When the related pop-up screen is displayed, click on the corresponding checkboxes to select/unselect data years. When finished, click Save to apply these changes and return to the My Variables list.

To clear all selections and start over, use the button. When finished, click Continue.

You will be redirected to the Institution Selection Form (shown below). If a Comparison Institution for the current task is selected, the Comparison Institution Value for each variable will display on the right side of the screen, as shown below:

On this screen you must enter a search value for each variable. Click on a variable to open the corresponding Search Value(s) pop-up screen, as shown below:

Depending on the type of variable selected, you will be prompted to enter a search value(s) in one of two ways:

  • By selecting one or more values from a list of available options (as shown in the example above) or
  • By entering numeric values and using operators to define the search criteria. Numeric entries must be in the form of whole numbers and should not contain any special characters (e.g. commas, decimals, dollar signs, etc.). The only exception to this is ratio defined variables where use of a decimal point is required to enter search values.

For example, you may select the &gt= operator and enter 10000 to locate institutions with a total enrollment greater than or equal to 10,000 students, as shown below.

When the search values for a particular variable have been entered, click Save to save the entries and close the pop-up screen. Repeat this process for each of the variables in the Institutions Selection Form . Reopen the Search Value(s) window for any variable at any time to modify the selections.

Once you have specified search values for each of the variables in the Institutions Selection Form, click Submit. Any institutions that match the specified criteria will be added to the My Institutions list for the current task. If you have already selected/uploaded institutions in this function, or while working in a previous function during the current Data Center session, you will be prompted to ‘Combine the two sets and eliminate duplicates’, ‘Keep only the institutions existing in the two sets’, or ‘Disregard the previous set and keep this one’.

1.5 Selecting by Uploading a File

If an institution group was previously created and saved, it can be retrieved at any time by clicking on the By Uploading a File link from the Select Institutions toolbar, as shown below:

A Power User account is required to upload Variable List files to the Data Center. Click on the link to Login, and then enter the User Name and Password when prompted. To obtain a Power User account click on Login then click the link to Create an account.

Once you have logged in, retrieve the file by entering the complete path and filename in the box provided, as shown below or use the Browse button to locate the file on your computer’s hard drive. Institution group files will have a filename extension of .uid .

Once the file is selected, click Submit to upload the saved institution group. If you have already selected or uploaded institutions for your current task, or while working in a previous task during the current Data Center session, you will be prompted to ‘Combine the two sets and eliminate duplicates’, ‘Keep only the institutions existing in the two sets’, or ‘Disregard the previous set and keep this one’. The uploaded institutions will automatically be added to the My Institutions list for the current task.

Step 2: Modifying the Institution Group

As institutions are selected, they will be added to the My Institutions list. The institutions in this list are stored throughout the current Data Center session for use with any generated data files or reports. Add more institutions to the list at any time by clicking on one of the available options under the Select Institutions tab.

To make changes to the list, click on the Modify button at the top right of the displayed list then use the corresponding check boxes to select the institutions to keep or remove using the following options to finalize your selections:

Step 3: Downloading the Institution Group

You may download the institution group in zipped, .uid format. To do this, select the Create/Download institution group option from the Main Menu then, from the My Institutions view, click on Export . This is shown below:

The browser will walk you through the file save process. The filename extension for the saved institution group will be .uid .


Add a size legend

In maps and layouts, the default legend displayed in the Contents pane comprises a preview image of the chart symbol, and the individual symbols for each included field. If you are using chart symbology and the size or length type of your chart symbols are set to a field or the sum of selected fields, you can also include a size legend.

  1. In the Symbology pane />, under the Primary symbology tab />, expand Appearance .
  2. Check the Show legend check box.
  3. Adjust the Legend outline color and Legend leaderline color as needed.

The size legend shows the relative values of a small, medium, and large chart symbol only. It does not have a fill color, and the values cannot be edited. The size of the largest chart symbol depends on your size type properties.