Skip to content

Pin check/removal from global API #44

@FunDeliveryGames

Description

@FunDeliveryGames

Hi
I'd like to integrate MapPinEnhanced with my own addon to set pins to Delves.

There is a global method AddPin which I can use to add new pins.

But I've encountered an issue with the created pin.

  1. No clear way to check whether the pin still exists.
    • For now, I just check MapPinEnhancedDB.storedPins and compare pins by title. Not the best solution + I'm not sure about the performance if someone has lots of pins.
    • It'd nice to have pin ID exposed publicly, e.g. as a return value from AddPin. And a method to check whether such a pin is still present in the DB.
  2. No way to remove the created pin.
    • I didn't find any way to remove the pin outside of the tracker.
    • Also, it seems that there is no event or callback that a pin has been removed.
    • Am I missing something and a workaround exists?
    • Probably removal can be done using pin ID as well.

Do you plan to add something like that?
Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions