obsidian-map-view icon indicating copy to clipboard operation
obsidian-map-view copied to clipboard

Added BaseGeoLayer base class

Open gentlegiantJGC opened this issue 3 years ago • 0 comments

Adds BaseGeoLayer that FileMarker extends and in the future a GeoJSON class could be added as well. BaseGeoLayer outlines shared attributes and methods that each subclass must define.

Modifies many functions that were previously only aware of the FileMarker class to use BaseGeoLayer. FileMarker only code is moved behind an instance check. Other classes will currently throw an exception. Perhaps in a future pull request that adds GeoJSON support, the class specific code should moved into a method of the class.

Resolves #109

gentlegiantJGC avatar Aug 27 '22 20:08 gentlegiantJGC