Skip to content

DefaultIcon

The VMapDefaultIcon component is used to represent the blue marker image.

Basic usage

API

Attributes

Use default icon options from leaflet documentation.

NameDescriptionTypeDefault
imagePathIcon will try to auto-detect the path of the blue icon images. If you are placing these images in a non-standard way, set this option to point to the right path.string
knownClassesHere you can specify a list of classes that the leaflet library adds. This is necessary for the properties className and class to work correctly. By default, the list of internal classes of the leaflet library is used.string[]
classNameA custom class name to assign to both icon and shadow images. Empty by default. The value of this property is combined with and is equivalent to the class property.any
classThe CSS class value. You can pass the object, array and string value.any

Events

No events.

Slots

NameDescription
defaultThe default slot can be used to extend behavior.

Exposes

NameDescriptionType
iconLeaflet icon instance.Ref<Icon | null>

Released under the MIT License.