SimpleFillSymbol with style different of 'solid' is not working

1057
3
01-03-2017 04:58 AM
LucasSerqueira
New Contributor II

After an update from 4.1 to 4.2 version, the SimpleFillSymbol with style 'diagonal-cross' is not working anymore.

Here goes a simple example:

graphicsLayer.graphics.add(new Graphic({
    geometry: feature.geometry,
    symbol: new SimpleFillSymbol({ style: "diagonal-cross" })
}));‍‍‍‍‍‍‍‍

Actually, I noticed that none of the possible styles, besides the default (solid), are working.

I'm using MapView.

In the browser, the following exception is thrown:

Uncaught TypeError: Right-hand side of 'instanceof' is not an object
    at b.l._getParentSurface (MapView.js:333)
    at b.l._setFillObject (MapView.js:333)
    at b.l.setFill (MapView.js:330)
    at Object.m.styleShape (MapView.js:381)
    at f.render (MapView.js:368)
    at d.renderChild (MapView.js:364)
    at d.renderChildren (MapView.js:259)
    at d.render (MapView.js:255)
    at m.renderChild (MapView.js:290)
    at m.d.renderChildren (MapView.js:259)

Is this a error or there is another way to use the style property of SimpleFillSymbol in 4.2?

I appreciate the help!

Tags (2)
0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

Lucas,

   I can confirm that this is an issue in 4.2 and was not in 4.1. Have you called tech support to report this bug?

0 Kudos
LucasSerqueira
New Contributor II

The esri local support (Brazil) informed that they will open a ticket for the bug. Thanks.

0 Kudos
UndralBatsukh
Esri Regular Contributor

Hi Lucas, 

Thank you for bringing this issue to our attention. We created a bug for this issue. Esri Brazil should provide you with a bug number and you can follow up with them on the status of this issue. 

Thank you, 

-Undral 

0 Kudos