question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feat: add support for adding metadata to marker

See original GitHub issue

Is your feature request related to a problem? Please describe. It should be possible to recognize a specific marker after tapping it by using metadata.

Does this feature exist in the Google Maps SDK for android and iOS? Please link the documentation for this feature. Similar behavior exists in the SDK using marker.setTag and marker.getTag. Those are actually the methods I use in the PR.

Describe the solution you’d like I already made a PR for Android. I haven’t had time to work on iOS, but it should be very similar.

The proposed API looks like this:

addMarker({
  metadata: { some: 'example', any: 'thing' }
})

Metadata should be an object. What someone puts into that object is completely up to them.

In the future we could even utilize this the remove specific markers.

// if we add metadata like this
addMarker({
  metadata: { id: 123 }
})

// we could maybe support an API-call like this:
removeMarkerByMetadataProperty({
  id: 123
})

But that is for another time.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
tafelnlcommented, Jun 15, 2021

Sidenote: it might be a good idea to merge future PR’s by squashing them. It is a common practice used in many open source projects with many PR’s. For example Capacitor commit history: https://github.com/ionic-team/capacitor/commits/main

1reaction
tafelnlcommented, Jun 10, 2021

Yes, I was thinking exactly the same. I already made a little proof of concept for android. Will try to share it tomorrow

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feat: add support for adding metadata to marker #65
It should be possible to recognize a specific marker after tapping it by using metadata. Does this feature exist in the Google Maps...
Read more >
How to add marker positions to audio metadata in ffmpeg?
They call them "index markers" and I don't know of any available tools that support them. Share.
Read more >
Applying metadata using an extended marker
Open the marker's properties and go to the Action tab. Tick the Apply Metadata Macro checkbox and add the fields you want to...
Read more >
How to Add MetaData to Mp3's at Points in the File?
1 Answer 1 · Thanks - I will take a look. Any idea if iTunes shows chapters? – bluedevil2k · 1. This appears...
Read more >
Reusing Cue Chunk Data for IIIF Web Annotations
Through this blog post, we hope to have highlighted potential ways that the updated guidelines and added support in BWF MetaEdit for under-used ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found