This commit lets the user use an element object instead of a {src: href} object for an attribution logo when creating a map. This opens a lot of possibilities for that logo, for example setting the target to force the logo to open in a new tab when clicked.
10 lines
256 B
HTML
10 lines
256 B
HTML
---
|
|
layout: example.html
|
|
title: Custom Icon
|
|
shortdesc: Example using a custom attribution icon object
|
|
docs: >
|
|
This example creates a custom element for the attribution icon
|
|
tags: "icon, element"
|
|
---
|
|
<div id="map" class="map"><div id="popup"></div></div>
|