I spent a while trying to figure out why a page I'd built wouldn't load with this plugin using certain GPX files. I discovered that it was because I was trying to get waypoint data only, and sometimes the files didn't have any waypoints.
I figured that issue would be a lot easier to debug if an error event fired when no layers of the specified type could be parsed out of the file.
I spent a while trying to figure out why a page I'd built wouldn't load with this plugin using certain GPX files. I discovered that it was because I was trying to get
waypoint
data only, and sometimes the files didn't have any waypoints.I figured that issue would be a lot easier to debug if an
error
event fired when no layers of the specified type could be parsed out of the file.Thanks!