Why not exporting LeafletLayer class #164
George-Madeley
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to create a plugin based on protomaps-leaflet which contains a class that inherits from the
LeafletLayer
class but you currently define the class in the functionleafletLayer()
which is used to return a new instance of theLeafletLayer
class. I was wondering why you have defined the class in the function and not in the global scope of the script and exported? In addition, why have you set the return type ofleafletLayer()
to unknown and nowLeafletLayer
?Beta Was this translation helpful? Give feedback.
All reactions