100.5 selectionWidth and selectionColor

191
3
04-29-2019 02:19 PM
JeremyRoberts2
New Contributor III

After upgrading to 100.5 I can see this in the console...

FeatureLayer::selectionWidth is obsolete. Use GeoView::selectionProperties.

My understanding is that this should be set at the MapView level?  If so, when I try adding it there I get invalid property...

MapView {

   SelectionProperties{
      color: "yellow"
      width: 3
   }
}

Is there no width property anymore?

0 Kudos
3 Replies
LucasDanzinger
Esri Frequent Contributor

Hi Jeremy,

Yes, we deprecated the function at the 100.4 release, and it is fully a no-op at 100.5. Details of the selection changes, reasons behind it, and how it works are highlighted in this blog - https://www.esri.com/arcgis-blog/products/developers/announcements/selection-behavior-changes-in-run...

Hope this helps.

- Lucas

0 Kudos
JeremyRoberts2
New Contributor III

Yes, thanks for the info Lucas.  Surprised the width attribute was decided to be removed though.  May or may not make clients disappointed it can't be adjusted.  But...we'll see!  Maybe it'll be fine.

0 Kudos
LucasDanzinger
Esri Frequent Contributor

Let me know if you hear anything. We generally do not break APIs at all, but due to some technical limitations and existing bugs we had to fix, we needed to redesign how we did the selection rendering, and width wasn't going to be something we could continue to support for technical reasons.

0 Kudos