Put a Label inside a Marker

Hello @Hamza,
9 months later, we finally released the Marker Labels feature :wink:

const iconMarker = {
    labelOrigin: new window.woosmap.map.Point(12, 12),
    url: "https://images.woosmap.com/marker-red.png"
};
const marker = new window.woosmap.map.Marker({
    position: myMap.getCenter(),
    icon: iconMarker,
    label: {
        text: "1",
        color: "white"
    },
    map: myMap
});

The following example displays labeled markers when you click on the map:

Developers documentation guides and reference are updated with this latest feature.

Best regards.

1 Like