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

Infinite setZIndex with OverlayView marker #134

Closed
crerem opened this issue May 31, 2017 · 2 comments
Closed

Infinite setZIndex with OverlayView marker #134

crerem opened this issue May 31, 2017 · 2 comments

Comments

@crerem
Copy link

crerem commented May 31, 2017

Hi,
I''m creating a custom google map marker with OverlayView. Everything works fine on my code until i try to spiderfy.
First error i had was
oms.min.js?ver=1.0:23 Uncaught TypeError: g.setZIndex is not a function , screencapture : http://prntscr.com/fe5zfx

which was normal because i did not defined the setZIndex method for my new marker.

After i defined the method - this is the code
CustomMarker.prototype.setZIndex = function(value) {
console.log("set z index "+value);
this.setZIndex(value);
return;
};

The code enters into in infinite loop and the browser eventually crash. This is a screencapture from console: http://prntscr.com/fe61qg

Any ideea why this is happening ? Do i need to set something else beside the zIndex ?
Thanks

@jawj
Copy link
Owner

jawj commented Jun 1, 2017

Your setZIndex function appears to call itself?

@crerem
Copy link
Author

crerem commented Jun 2, 2017

Yes,
I'm sorry for posting such silly mistake :)
Thanks

@crerem crerem closed this as completed Jun 2, 2017
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

2 participants