Comments (4)
The GeoAnnotator
classes were really meant as templates, which should be modified and/or expanded depending on a users needs. It should be very straightforward to add a parameter to the GeoAnnotator to switch between gv.Polygons and gv.Path.
from earthsim.
That seems easier said than done, as least for me, but I'm making an attempt.
Do you mention switching between gv.Polygons and gv.Path because BOTH cannot be drawn at the same time (i.e. you can't have two PolyDraw objects on one drawing)?
from earthsim.
In the simple case you could just let a user switch between them by making the following changes/additions to GeoAnnotator
:
geometry_type = param.ClassSelector(default=gv.Polygons, class_=gv.Path)
def __init__(self, polys=None, points=None, **params):
...
self.polys = self.geometry_type(polys, crs=ccrs.GOOGLE_MERCATOR)
...
If you want to draw and annotate both polygons and paths a slightly more complex implementation would be needed.
from earthsim.
Closed via #46
from earthsim.
Related Issues (20)
- Specifying opts.defaults in Analyzing_Meshes HOT 2
- Linked objects (map+table) in panel HOT 13
- Missing import in __init__
- Dynamically adding to param.ObjectSelector after instantiation
- How to force Annotator poly_stream population HOT 4
- Branching and converging pipelines HOT 1
- Earthsim install directions need to be updated HOT 1
- GSSHA dependencies need to be removed HOT 2
- How to set width on panel tabs widget HOT 2
- Updating the annotator doesn't update poly_table and point_table HOT 1
- Bug in vertex promotion to node HOT 1
- Add narrative and explanation in Generating Meshes HOT 1
- Generalizing Annotators HOT 4
- Editable dataframes HOT 2
- Fix tool and annotator UI issues
- vectror plot and colorbar issue
- Migration summary HOT 4
- Editing large meshes
- Reading UGRID-compliant NetCDF files HOT 12
- Working environment to execute GrabCut with earthsim
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from earthsim.