Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

markersNearAnyOtherMarker TypeError after update to v1.0.0 #126

Closed
jQrgen opened this issue Apr 4, 2017 · 3 comments
Closed

markersNearAnyOtherMarker TypeError after update to v1.0.0 #126

jQrgen opened this issue Apr 4, 2017 · 3 comments

Comments

@jQrgen
Copy link

jQrgen commented Apr 4, 2017

Hello, i just updated to v1.0

The following code:

google.maps.event.addListenerOnce(map, 'idle', function(){
    var markers = oms.markersNearAnyOtherMarker();
});

with options:

{keepSpiderfied: true, legWeight: 0, ignoreMapClick: true}

Causes the following error:

oms.min.js:19 Uncaught TypeError: Cannot read property 'b' of undefined
    at t.OverlappingMarkerSpiderfier.c.markersNearAnyOtherMarker (oms.min.js:19)
    at Ag.<anonymous> (mapAndChat.factory.js:237)
    at Ag.<anonymous> (js?key=AIzaSyDXSAqF34lRFhHlmQFW7iDkNppkiIKC6JQ:105)
    at _.x.trigger (js?key=AIzaSyDXSAqF34lRFhHlmQFW7iDkNppkiIKC6JQ:104)
    at common.js:34
    at vx.D (map.js:32)

The markersNearAnyOtherMarker ()method causes no error when reverting to the last version of OverlappingMarkerSpiderfier.

@jQrgen jQrgen changed the title markersNearAnyOtherMarker TypeError markersNearAnyOtherMarker TypeError after update to v1.0.0 Apr 4, 2017
@jawj
Copy link
Owner

jawj commented Apr 5, 2017

Oops, sorry. Fixed in 1.0.1, please update.

@jawj jawj closed this as completed Apr 5, 2017
@jQrgen
Copy link
Author

jQrgen commented Apr 5, 2017

Thanks, where is the version number stated?
It would be nice with a branch for each release or a github release

@sidedwards
Copy link

@jQrgen and others, you can find releases here: https://libraries.io/npm/overlapping-marker-spiderfier/1.1.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants