Skip to main content

Script-Once

script-once is executed once when the pack loads the marker, providing the marker as context.

Default Parameters

ParameterTypeDescription
markerMarkerA reference to the marker firing the script.

Usage

pack.xml
<marker ... script-once="DoSomethingWhenMarkerIsLoaded(1)">
<marker ... script-once="DoSomethingWhenMarkerIsLoaded(2)">