Giter Site home page Giter Site logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 24, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.