Select to view content in your preferred language

CIMPictureMarker with an outline / stroke

232
2
02-24-2026 06:34 AM
michaelpoa
Regular Contributor

Hi all!

Is it possible to make a CIMPictureMarker with a stroke? If so how to achieve this? 

symbol: {
type: 'CIMPointSymbol',
angleAlignment: 'Map',
useRealWorldSymbolSizes: true,
symbolLayers: [
{
type: 'CIMPictureMarker',
primitiveName: 'symbol-layer-1',
enable: true,
textureFilter: 'Text',
url: 'assets/images/iamge.png',
outline: { // This is not working
color: [ 255, 255, 0 ],
width: 3
}
},
],
},

Are there other ways to do this? This would be very useful!

Thanks!

Gr

Michael

0 Kudos
2 Replies
JonathanDawe_BAS
Frequent Contributor

The cleanest way I have found of producing sharp outlines around picture symbols is via feature effects. You can add filters if needed so that it is only applied to specific features. I find that the result is much sharper than what the actual layer rendering engine seems to produce...

https://codepen.io/Jonathan-Dawe/pen/xbExMZX

0 Kudos
michaelpoa
Regular Contributor

Thanks for helping me ! @JonathanDawe_BAS 
But I think your codepen does not work? Nevertheless there's no support for primitiveOverrides or visualVariables with these effects? 

Are there any other ways?

Thanks!

Gr Michael

0 Kudos