# Get a marker

**URL:** <https://www.ruby-forum.com/t/get-a-marker/189925>\
**Category:** Rails\
**Created:** [June 10, 2010, 12:04am UTC](https://www.ruby-forum.com/t/get-a-marker/189925 "2010-06-10T00:04:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![badnaam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e36b37/32.png) [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Post date:** [June 10, 2010, 12:04am UTC](https://www.ruby-forum.com/t/get-a-marker/189925/1 "2010-06-10T00:04:27Z")

</div>

Is there a way to get a marker by its ID from a markergroup?

I would like to pan the map to a specific marker’s lat/lng when a link  
is clicked, but i dont want to use showmarker because it opens the  
info window

Thanks

---

<div class="post-metadata">

**Author:** ![badnaam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/e36b37/32.png) [@badnaam](https://www.ruby-forum.com/u/badnaam)\
**Post date:** [June 10, 2010, 12:44am UTC](https://www.ruby-forum.com/t/get-a-marker/189925/2 "2010-06-10T00:44:47Z")

</div>

badnaam wrote:

> Is there a way to get a marker by its ID from a markergroup?
> 
> I would like to pan the map to a specific marker’s lat/lng when a link  
> is clicked, but i dont want to use showmarker because it opens the  
> info window

How does this relate to Rails? What are markers and markergroups?  
They’re certainly not Rails concepts.

> Thanks

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid
