Skip to content
This repository has been archived by the owner on Jun 16, 2019. It is now read-only.

Uncaught TypeError: Cannot read property 'fromLatLngToDivPixel' of null #50

Open
junalmeida opened this issue Apr 8, 2016 · 2 comments

Comments

@junalmeida
Copy link

MarkerClusterer.getExtendedBounds
MarkerClusterer.createClusters_
MarkerClusterer.redraw  
(anonymous function)    
_.J.trigger 
(anonymous function)    
_.J.trigger 
rb  
_.t.set 
bA.R
@farin
Copy link

farin commented Dec 15, 2016

did you call setMap(null) or try to remove overlay in different way?
Mind that there is function clearMarkers() for that purpose.

@SamanthaAdrichem
Copy link

SamanthaAdrichem commented Jun 14, 2017

I get this error when i execute:

markerCluster.setMap(null);

This is how many people advice to update your marker cluster, instead you should indeed use what farin says:

markerCluster.clearMarkers();
markerCluster.addMarkers( markers );

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants