Skip to content
This repository was archived by the owner on Apr 9, 2025. It is now read-only.
This repository was archived by the owner on Apr 9, 2025. It is now read-only.

Show an example of draggin a marker/label  #31

@JamesLMilner

Description

@JamesLMilner

Labelgun has the ability to set a label to be 'dragged' which in turn makes it's weight infinite and always shown in the collision calculations. An example in Leaflet or OpenLayers would be super!

Here's an example of how you might do it:

   // The last argument is dragged which we set to true
    labelEngine.ingestLabel(
      boundingBox,
      id,
      parseInt(Math.random() * (5 - 1) + 1), // Weight
      label,
      "Test " + id,
      true 
    ); 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions