Comments (7)
You can resolve this by changing the line
var pos = this.projection.fromLatLngToDivPixel(latlng);
to
var pos = this.getProjection().fromLatLngToDivPixel(latlng);
in ClusterIcon.prototype.getPosFromLatLng_
... this may be due to a change in the OverlayView part of the API or
something...
Original comment by [email protected]
on 12 May 2010 at 2:33
from google-maps-utility-library-v3.
Just to second the suggestion by friism - in the
ClusterIcon.prototype.getPosFromLatLng() function of markerclusterer.js, change
the
"...this.projection..." line to be "...this.getProjection()...".
Apparently the projection variable was never meant to be exposed, and was taken
away
in the release on 11th May, according to this thread:
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/072fbd
406d9f4629
Original comment by [email protected]
on 13 May 2010 at 8:42
from google-maps-utility-library-v3.
sorry, typo above. The function is ClusterIcon.prototype.getPosFromLatLng_ , as
friism said.
Original comment by [email protected]
on 13 May 2010 at 8:54
from google-maps-utility-library-v3.
I am still getting issues in Firefox on the examples page:
http://google-maps-utility-library-v3.googlecode.com/svn-history/r88/trunk/marke
rclusterer/examples/advanced_example.html?
firebug:
this.projection is undefined
var pos = this.projection.fromLatLngToDivPixel(latlng);
markerclusterer.js (line 830)
I have not tried the fix mentioned in the comments yet. If this is such an
easy fix, why can't a committer fix it?
Original comment by [email protected]
on 23 Jul 2010 at 9:06
from google-maps-utility-library-v3.
I tried the fix. Now the map is not loading - it loads the gray background,
but nothing more, and then hangs. I get a JS timeout in the main map API in
Firefox, without any errors. I've tried commenting a lot of stuff out,
including data and markercluster so IDK - might be an unrelated bug.
I'm still having issues on the example page as well:
too much recursion
function md(a){return function(b){if(!... ("+(c[jc](" | ")+")")))));return k}}
main.js (line 16)
I am thinking I should just stick with v2....
Original comment by [email protected]
on 23 Jul 2010 at 10:31
from google-maps-utility-library-v3.
Ok, so the map not loading was me passing in undefined/null when setting the
center. (Sorry for spamming, but I did not want anyone investigating it)
I have markercluster working in v3 now. It does not feel faster/better - but I
am going to set v2 up in parallel and do some benchmarks.
Original comment by [email protected]
on 23 Jul 2010 at 12:48
from google-maps-utility-library-v3.
This was fixed a while ago, I just forgot to check the issue tracker :)
Original comment by [email protected]
on 31 Aug 2010 at 1:39
- Changed state: Fixed
from google-maps-utility-library-v3.
Related Issues (20)
- White tiles in Chrome
- Add CLASS to IMG in infobubble.js
- MarkerClusterer: ClusterIconStyle - fontFamily and fontWeight not working
- MarkerWithLabel V3, cannot hide marker labels in V 1.1.0 HOT 2
- MarkerWithLabel: labelInBackground property doesn't work HOT 2
- MarkerWithLabel: dom elements inside labelContent HOT 1
- Scrolling on InfoWindow inconsistent between Firefox and Chrome HOT 2
- select tags not working inside richmarkers
- map cluster marker not loaded over https HOT 2
- Rendering issues with accuracy circle
- Ability to change datasets and recluster
- MarkerWithLabel with draggable=false doesn't fire mouseup event when clicking on label
- Markers is not shown properly if it is on same place using marker cluster.
- Retina icons are not rendered correctly by marker clusterer plus
- Broken image m1.png
- Patch for /trunk/infobox/src/infobox.js HOT 1
- Problem in setPosition
- Overlapping Labels
- Transit stations are still not clickable
- setPosition not working* HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-maps-utility-library-v3.