bmoren / p5.geolocation

a geolocation and geofencing library for p5.js
GNU Lesser General Public License v2.1
90 stars 27 forks source link

Updated preload register according to P5 0.7.2 #12

Closed mikima closed 6 years ago

mikima commented 6 years ago

Fixes #8. With the new version of P5, this library would broke the preload() function. This means that even if you do nothing with p5.geolocation, if you have instruction in the preload() function thee sketch won't work.

In the latest P5 version, prototype.registerPreloadMethod requires two parameters, see reference.

Tested with some basic sketches and it seems to work now. Maybe a deeper check would be needed.

mikima commented 6 years ago

Tested it and still gives problems. For now i just close the pr.