I am using JS 4.17 lib and using CIMPictureMarker. It is not displaying any icon. Kindly help

150
0
10-26-2020 08:15 AM
GauravGoyal
New Contributor

I am using JS 4.17 lib and using CIMPictureMarker. It is not displaying any icon. Kindly help.

const homePoint = new Point({
                longitude: coordinates[0],
                latitude: coordinates[1]
            });
var iconFillSymbol = {
                type: "cim",
                data: {
                    type: "CIMSymbolReference",
                    symbol: {
                        type: "CIMPointSymbol",
                        symbolLayers: [
                            {
                                type: "CIMPictureMarker",
                                enable: true,
                                anchorPoint: { "x": 0"y": 0"z": 0 },
                                anchorPointUnits: "Relative",
                                offsetY: 0,
                                size: 32,
                                url: 'assets/icons/friendly.jpg'
                            }
                        ],
                    }
                }
            };

            const iconGraphic = new Graphic({
                geometry: homePoint,
                symbol: iconFillSymbol 
            });
            this.graphicsLayer.add(iconGraphic);
Tags (1)
0 Kudos
0 Replies