Giter Club home page Giter Club logo

cartocosmos's People

Contributors

cgm78 avatar jkaufy avatar kaitlyndlee avatar scottaames avatar swalterfub avatar thareusgs avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cartocosmos's Issues

Create documentation with JsDocs

We will need to make sure that we can generate documentation using jsdocs and add the docs to our GitHub docs repo (CartoCosmos.github.io). We will probably need to setup a website for the docs through GitHub pages and push our docs to it.

Fix Coordinate Class to take in JSON file

As of now, the coordinate class uses a switch case to find the radius of different targets. Change it so we can use a JSON file to find the radius for the targets instead.

Add polygons to Map

This includes drawing on the map, creating coordinates and adding them to the map, and drawing polygons from a WKT string. We also need to output the WKT for a polygon drawn on the map: both drawn with the control and added through a method.

Unrendering results list

Results list gets rendered when I enter a value but not unrendered when I click outside of the textbox, trying to get it to unrender when I focus out or select a value.

Warp drawn shape to projection

If you draw a shape on a n/s projected map or change from cylindrical to n/s, then the drawn shape will need to warp to the projection. OpenLayers currently does this using WKT, but OL has native support for WKT. Might be trickier for us.

Space between searchbox and results list.

There is a space between the searchbox and results list in the autocomplete which I would like to get rid off. I am having trouble but believe it to be an issue with the css file.

Add WFS overlays to the Leaflet Map

We are currently using WMS to add the feature names to the maps. We should change these to use WFS. WMS returns an image, while WFS will return a GeoJSON

Cannot display any maps in a Jupyter Notebook

Hello,

Nice project! I wanted to give CartoCosmos a try but I failed very quickly...
Do you have any ideas why I'm getting the following error?
(installation using pip worked fine)

Thanks

import CartoCosmos as l
map = l.planetary_maps('mars')
map.display_map()
---------------------------------------------------------------------------
TraitError                                Traceback (most recent call last)
<ipython-input-5-14e8d0255894> in <module>
----> 1 map = l.planetary_maps('mars')
      2 map.display_map()

~/workspace/majis/venv/lib/python3.6/site-packages/CartoCosmos/planetary_maps.py in __init__(self, targetName)
     52 
     53         self.find_radius()
---> 54         self.create_layers()
     55         self.create_map()
     56 

~/workspace/majis/venv/lib/python3.6/site-packages/CartoCosmos/planetary_maps.py in create_layers(self)
     97                     crs='EPSG4326',
     98                     base=True,
---> 99                     show_loading=False,
    100                 )
    101 

~/workspace/majis/venv/lib/python3.6/site-packages/ipyleaflet/leaflet.py in __init__(self, **kwargs)
    267 
    268     def __init__(self, **kwargs):
--> 269         super(TileLayer, self).__init__(**kwargs)
    270         self.on_msg(self._handle_leaflet_event)
    271 

~/workspace/majis/venv/lib/python3.6/site-packages/ipyleaflet/leaflet.py in __init__(self, **kwargs)
     96 
     97     def __init__(self, **kwargs):
---> 98         super(Layer, self).__init__(**kwargs)
     99         self.on_msg(self._handle_mouse_events)
    100 

~/workspace/majis/venv/lib/python3.6/site-packages/ipywidgets/widgets/widget.py in __init__(self, **kwargs)
    410         """Public constructor"""
    411         self._model_id = kwargs.pop('model_id', None)
--> 412         super(Widget, self).__init__(**kwargs)
    413 
    414         Widget._call_widget_constructed(self)

~/workspace/majis/venv/lib/python3.6/site-packages/traitlets/traitlets.py in __init__(self, *args, **kwargs)
    995             for key, value in kwargs.items():
    996                 if self.has_trait(key):
--> 997                     setattr(self, key, value)
    998                 else:
    999                     # passthrough args that don't set traits to super

~/workspace/majis/venv/lib/python3.6/site-packages/traitlets/traitlets.py in __set__(self, obj, value)
    583             raise TraitError('The "%s" trait is read-only.' % self.name)
    584         else:
--> 585             self.set(obj, value)
    586 
    587     def _validate(self, obj, value):

~/workspace/majis/venv/lib/python3.6/site-packages/traitlets/traitlets.py in set(self, obj, value)
    557 
    558     def set(self, obj, value):
--> 559         new_value = self._validate(obj, value)
    560         try:
    561             old_value = obj._trait_values[self.name]

~/workspace/majis/venv/lib/python3.6/site-packages/traitlets/traitlets.py in _validate(self, obj, value)
    589             return value
    590         if hasattr(self, 'validate'):
--> 591             value = self.validate(obj, value)
    592         if obj._cross_validation_lock is False:
    593             value = self._cross_validate(obj, value)

~/workspace/majis/venv/lib/python3.6/site-packages/traitlets/traitlets.py in validate(self, obj, value)
   2527 
   2528     def validate(self, obj, value):
-> 2529         value = super(Dict, self).validate(obj, value)
   2530         if value is None:
   2531             return value

~/workspace/majis/venv/lib/python3.6/site-packages/traitlets/traitlets.py in validate(self, obj, value)
   1675             return value
   1676         else:
-> 1677             self.error(obj, value)
   1678 
   1679     def info(self):

~/workspace/majis/venv/lib/python3.6/site-packages/traitlets/traitlets.py in error(self, obj, value)
   1522                 % (self.name, self.info(), msg)
   1523 
-> 1524         raise TraitError(e)
   1525 
   1526 

TraitError: The 'crs' trait of a WMSLayer instance must be a dict, but a value of class 'str' (i.e. 'EPSG4326') was specified.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.