eyolas / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
Apache License 2.0
0 stars 0 forks source link

MarkerManager getMarker() doesn't return correct marker as written in r433 #236

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Demo link or sample code:

Patch attached to make use of google.maps.LatLng.equals() for equality test.

What steps will reproduce the problem?
1. Create marker at lat, lon (38.581572, -121.4944) and add a custom object 
parameter (marker.foo = 'bar')
2. Add marker to MarkerManager with MarkerManager.addMarkers([marker], 0)
3. Use MarkerManager.getMarker(38.581572, -121.4944, 0) and see if the returned 
marker has the custom parameter

Expected result:
The marker with the custom object

Actual result:
A new marker with the same coordinates but not the custom parameter

Version: trunk r433

Browser / Operating System:
FF19

Additional comments:
A patch is provided.

*********************************************************
Tip: Star this issue (next to title) to receive notifications of status
changes against this issue, also used as a gauge for how many people are
interested in seeing it resolved.
*********************************************************

Original issue reported on code.google.com by dustym...@gmail.com on 12 Mar 2013 at 9:32

Attachments: