0

Can someone give an idea about the use of layers/ layerid while drawing markups? How that will be useful? I didnt find any proper explanation of layer concept in documentation.

A DEv
  • 255
  • 1
  • 19

1 Answers1

1

layerId is Identifier for the layer of markups to be edited/restored, just so loaded markups are grouped and manageable, e.g. to show/hide a layers when in view mode :

markupExt.show/hideMarkups('layerId')

Hence with markupExt.svgLayersMap you'd be able to manage loaded markups:

markExt.svgLayersMap['layerId'].markups[index] // access loaded markups
Bryan Huang
  • 5,247
  • 2
  • 15
  • 20
  • can you please share some example or tutorial which deals layers idea in detail – A DEv Feb 25 '20 at 12:13
  • unfortunately we don't have anything as such - stay tuned to our official Forge blog we might put some writings together on that front in the future – Bryan Huang Feb 26 '20 at 06:00