carlosg2 / gmaps-utility-library-flash

Automatically exported from code.google.com/p/gmaps-utility-library-flash
0 stars 0 forks source link

Markers disappear if the map is moved. #28

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
If reporting a feature request, just delete the questions and specify what 
functionality you're interested in.

What steps will reproduce the problem?
1. Move the map at zoom level 2 markers disappear

What is the expected output? What do you see instead?
markers should stay

What version of the product are you using? On what operating system?

Please provide any additional information below.
Added the code below and it worked for me. 
var curBounds:LatLngBounds  = map_.getLatLngBounds();
var nw:Point = map_.fromLatLngToViewport(curBounds.getNorthWest());
var se:Point = map_.fromLatLngToViewport(curBounds.getSouthEast());

nw.x =  (se.x == nw.x ? 0 : nw.x);   //ADDED THIS LINE

var rect:Rectangle = new Rectangle(nw.x, nw.y, se.x - nw.x, se.y - nw.y);   

Original issue reported on code.google.com by shirishr...@gmail.com on 19 Apr 2011 at 8:45

GoogleCodeExporter commented 9 years ago
I get nw.x and se.x both as same hence the line 
nw.x =  (se.x == nw.x ? 0 : nw.x);   //ADDED THIS LINE

Original comment by shirishr...@gmail.com on 19 Apr 2011 at 8:47

GoogleCodeExporter commented 9 years ago
moving the map to the left again removes the markers in the above coase too 
commented out the following code
//  if(cluster.isInRectangle(rect))
        //  {
                clusters.push(cluster);
        //  }
any one respond on the affects.

Original comment by shirishr...@gmail.com on 19 Apr 2011 at 8:56

GoogleCodeExporter commented 9 years ago
Observed it takes too much time to plot in the zoomed in level for too many 
markers
so any work around ?? 

Original comment by shirishr...@gmail.com on 19 Apr 2011 at 9:01