FeatureLayer with Multipoints and PictureMarker renders artifacts

3632
2
06-02-2020 07:01 AM
AlexanderParshin
New Contributor II

I see strange rendering artifacts when I use FeatureLayer with Multipoints and PictureMarkers. Here is a codepen to reproduce this problem: https://codepen.io/parshin/pen/ExPYBLp?editors=1000 

I took Create a FeatureLayer with client-side graphics | ArcGIS API for JavaScript 4.15  as a base example and made two changes:

  1. Changed geometry from Point to Multipoint
  2. Changed symbol of the renderer from "text" to "picture-marker" (SVG as data URL)

After these changes, I see the strange artifacts on the map:

Both Multipoints and PictureMarker are required to reproduce this problem. When you zoom in/out the map, the artifacts appear in different places (the top-left corner of internal rendering tile?).

Is it a bug? Is there any workaround to remove this rendering problem?

Environment: ArcGIS JS API 4.15, Chrome, Ubuntu.

0 Kudos
2 Replies
UndralBatsukh
Esri Regular Contributor

Hi there, 

I am able to reproduce the issue you described. We have created an issue for this and will let you know as soon it is fixed. In meantime, you can use graphicsLayer with multipoint geometries. 

Thank you,

-Undral

0 Kudos
UndralBatsukh
Esri Regular Contributor

Hi there, 

This issue will be fixed at version 4.16 which is planned to be released sometime in early July. 

-Undral