• Resolved ccapp

    (@ccapp)


    Hi

    is it possible to have an example on how to use HTML icons please?

    I would like to use custom images for icons

    Thanks in advance

    Cristiano

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joe

    (@morehawes)

    Hi @ccapp,

    Thanks for reaching out. You can use an image as a Marker Icon like this:

    <img src="[url_to_image]" width="[width_in_pixels]" height="[height_in_pixels]" />

    Alternatively you could specify the width/height using CSS like this:

    .waymark-marker-[type_key] .waymark-icon-html img {
      width: 20px;
      height: 20px;
    }

    Your browser inspector can be used to discover the Type key.

    I hope this helps,

    Cheers,

    Joe

    Thread Starter ccapp

    (@ccapp)

    Thanks Joe

    Cristiano

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘HTML ICONS EXAMPLE’ is closed to new replies.