Open GoogleCodeExporter opened 9 years ago
Did some more digging, its an issue somewhere within the:
"this.map_.fitBounds(this.cluster_.getBounds());"
Original comment by victoryi...@gmail.com
on 16 Jun 2011 at 3:52
I've found a workaround for this issue after a bit of play. I found that if you
specify the url of your custom cluster styles using an absolute url (e.g.
https://hostname/bar.jpg) then this error does not occur. A relative url (e.g.
/bar.jpg) will result in this issue. This will work for me, for now, but I hope
to be able to again use relative urls at some point.
Original comment by ncj...@gmail.com
on 16 Jun 2011 at 6:04
Nice! Thanks for the quick workaround!!! The absolute URL will def cause some
problems for me since our URL changes per environment ex: (dev.hostname),
(qa.hostname). But at least it works! Hopefully the issue can be resolved,
thanks again!
Original comment by victoryi...@gmail.com
on 16 Jun 2011 at 6:33
I have exactly the same problem. I've decided to prepend the host and protocol
of the current page in javascript to the relative urls. Here's what I ended up
with:
var absolutePath = window.location.protocol + "//" + window.location.host;
var styles = [{ url: absolutePath + "/my/absolute/path.jpg",
...
Original comment by ncj...@gmail.com
on 16 Jun 2011 at 8:16
You my friend deserve a cookie... Works like a charm! I did something similar
but overlooked the window.location.protocol, so that will be a nice addition.
Thanks for all the input and help!
Original comment by victoryi...@gmail.com
on 16 Jun 2011 at 10:12
This solves the problem for me too
Original comment by petrusgo...@gmail.com
on 5 Nov 2012 at 4:59
Original issue reported on code.google.com by
victoryi...@gmail.com
on 16 Jun 2011 at 3:14Attachments: