Skip to content

Commit

Permalink
Fix feature being marked as optional in get/setFeatureState
Browse files Browse the repository at this point in the history
  • Loading branch information
bfrengley authored and Asheem Mamoowala committed Aug 16, 2018
1 parent 136d42e commit 103a2e7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ui/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -1337,10 +1337,10 @@ class Map extends Camera {
/**
* Sets the state of a feature. The `state` object is merged in with the existing state of the feature.
*
* @param {Object} [feature] Feature identifier. Feature objects returned from
* @param {Object} feature Feature identifier. Feature objects returned from
* {@link Map#queryRenderedFeatures} or event handlers can be used as feature identifiers.
* @param {string | number} [feature.id] Unique id of the feature.
* @param {string} [feature.source] The Id of the vector source or GeoJSON source for the feature.
* @param {string | number} feature.id Unique id of the feature.
* @param {string} feature.source The Id of the vector source or GeoJSON source for the feature.
* @param {string} [feature.sourceLayer] (optional) *For vector tile sources, the sourceLayer is
* required.*
* @param {Object} state A set of key-value pairs. The values should be valid JSON types.
Expand All @@ -1359,12 +1359,12 @@ class Map extends Camera {
/**
* Gets the state of a feature.
*
* @param {Object} [feature] Feature identifier. Feature objects returned from
* @param {Object} feature Feature identifier. Feature objects returned from
* {@link Map#queryRenderedFeatures} or event handlers can be used as feature identifiers.
* @param {string} [feature.source] The Id of the vector source or GeoJSON source for the feature.
* @param {string | number} feature.id Unique id of the feature.
* @param {string} feature.source The Id of the vector source or GeoJSON source for the feature.
* @param {string} [feature.sourceLayer] (optional) *For vector tile sources, the sourceLayer is
* required.*
* @param {string | number} [feature.id] Unique id of the feature.
*
* @returns {Object} The state of the feature.
*/
Expand Down

0 comments on commit 103a2e7

Please sign in to comment.