HMS-FAC / BoatlaunchMVP

MVP for Boatlaunch App
Creative Commons Zero v1.0 Universal
5 stars 0 forks source link

Problems with using mc.repaint() #119

Open hdrdavies opened 8 years ago

hdrdavies commented 8 years ago

This happens in the phonegap preview.

An alternative to using the repaint() method could be to clear the markers and set the markers again, as shown here:

http://stackoverflow.com/a/9028455/5111113

hdrdavies commented 8 years ago

To set the repaint method to a global variable, see how it has been done in this code:

http://bl.ocks.org/amenadiel/83a4eda7ee36c312c7a6

window['MarkerClusterer'] = MarkerClusterer;
...
MarkerClusterer.prototype['repaint']  = MarkerClusterer.prototype.repaint;