Module Expr Str Import alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias alias alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad NameLoad Str body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Str If CompareIn Str Call NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr orelse If CompareIs Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assert Call NameLoad NameLoad NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Str keyword Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareNotIn Str Call AttributeLoad NameLoad attr body If UnaryOpNot BoolOpAnd Call NameLoad NameLoad NameLoad CompareIn Str Call AttributeLoad NameLoad attr body Assign NameStore Dict Str Str Str NameLoad Assign NameStore Dict Str Str Str ListLoad NameLoad Assign NameStore ListLoad ListLoad NameLoad NameLoad ListLoad NameLoad NameLoad For NameStore SubscriptLoad NameLoad Index Str body For NameStore Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr Str Dict body Assign NameStore ListLoad ListLoad Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad NameLoad Index Num Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad NameLoad Index Num ListLoad Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad NameLoad Index Num Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad NameLoad Index Num Return NameLoad decorator_list decorator_list
N/A N/A 
TimestampedGeoJson plugin
--------------

Add a timestamped geojson feature collection on a folium map.
This is based on Leaflet.TimeDimension.

https://github.com/socib/Leaflet.TimeDimension

A geo-json is timestamped if:
    * it contains only features of types LineString, MultiPoint,
      MultiLineString and MultiPolygon.
    * each feature has a "times" property with the same length as the
      coordinates array.
    * each element of each "times" property is a timestamp in ms since epoch,
     or in ISO string.  Eventually, you may have Point features with a
     "times" property being an array of length 1.

 N/A json jinja2 Template branca.element MacroElement Figure JavascriptLink CssLink branca.utilities none_min none_max iter_points TimestampedGeoJson N/A MacroElement N/A __init__ N/A N/A self data transition_time loop auto_play period N/A 200 True True P1D N/A N/A Creates a TimestampedGeoJson plugin to append into a map with
        Map.add_children.

        Parameters
        ----------
        data: file, dict or str.
           The timestamped geo-json data you want to plot.

           * If file, then data will be read in the file and fully
             embedded in Leaflet's javascript.
           * If dict, then data will be converted to json and embedded in
             the javascript.
           * If str, then data will be passed to the javascript as-is.

           A geo-json is timestamped if:
               * it contains only features of types LineString,
                 MultiPoint, MultiLineString and MultiPolygon.
               * each feature has a "times" property with the same length
                 as the coordinates array.
               * each element of each "times" property is a timestamp in
                 ms since epoch, or in ISO string.
               Eventually, you may have Point features with a "times"
               property being an array of length 1.

           examples :
              # providing file
              TimestampedGeoJson(open('foo.json'))

              # providing dict
              TimestampedGeoJson({
                "type": "FeatureCollection",
                   "features": [
                     {
                       "type": "Feature",
                       "geometry": {
                         "type": "LineString",
                         "coordinates": [[-70,-25],[-70,35],[70,35]],
                         },
                       "properties": {
                         "times": [1435708800000, 1435795200000, 1435881600000]
                         }
                       }
                     ]
                   })

              # providing string
              TimestampedGeoJson(open('foo.json').read())
        transition_time : int, default 200.
            The duration in ms of a transition from between timestamps.
        loop : bool, default True
            Whether the animation shall loop.
        auto_play : bool, default True
            Whether the animation shall start automatically at startup.
        period : str, default "P1D"
            Used to construct the array of available times starting
            from the first available time. Format: ISO8601 Duration
            ex: "P1M" -> 1/month
                "P1D"  -> 1/day
                "PT1H"  -> 1/hour
                "PT1M"  -> 1/minute
         N/A N/A N/A N/A super TimestampedGeoJson self __init__ N/A N/A self _name TimestampedGeoJson N/A N/A read N/A dir data N/A N/A N/A self embed True N/A N/A self data N/A N/A data read N/A N/A N/A N/A type data dict N/A N/A N/A self embed True N/A N/A self data N/A N/A json dumps data N/A N/A N/A self embed False N/A N/A self data data N/A N/A self transition_time N/A int transition_time N/A N/A self loop N/A bool loop N/A N/A self auto_play N/A bool auto_play N/A N/A self period period N/A N/A self _template N/A Template 
        {% macro script(this, kwargs) %}
            {{this._parent.get_name()}}.timeDimension = L.timeDimension({period:"{{this.period}}"});
            {{this._parent.get_name()}}.timeDimensionControl = L.control.timeDimension({
                position: 'bottomleft',
                autoPlay: {{'true' if this.auto_play else 'false'}},
                playerOptions: {
                    transitionTime: {{this.transition_time}},
                    loop: {{'true' if this.loop else 'false'}}}
                    });
            {{this._parent.get_name()}}.addControl({{this._parent.get_name()}}.timeDimensionControl);

            var {{this.get_name()}} = L.timeDimension.layer.geoJson(
                L.geoJson({{this.data}}),
                {updateTimeDimension: true,addlastPoint: true}
                ).addTo({{this._parent.get_name()}});
        {% endmacro %}
         N/A render N/A N/A self N/A kwargs N/A N/A N/A N/A N/A super TimestampedGeoJson self render N/A figure N/A N/A self get_root N/A N/A isinstance figure Figure You cannot render this Element if it's not in a Figure. N/A N/A N/A N/A figure header add_children N/A JavascriptLink https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.0/jquery.min.js name jquery2.0.0 N/A N/A N/A N/A figure header add_children N/A JavascriptLink https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js name jqueryui1.10.2 N/A N/A N/A N/A figure header add_children N/A JavascriptLink https://raw.githubusercontent.com/nezasa/iso8601-js-period/master/iso8601.min.js name iso8601 N/A N/A N/A N/A figure header add_children N/A JavascriptLink https://raw.githubusercontent.com/socib/Leaflet.TimeDimension/master/dist/leaflet.timedimension.min.js name leaflet.timedimension N/A N/A N/A N/A figure header add_children N/A CssLink https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/default.min.css name highlight.js_css N/A N/A N/A N/A figure header add_children N/A CssLink http://apps.socib.es/Leaflet.TimeDimension/dist/leaflet.timedimension.control.min.css name leaflet.timedimension_css N/A _get_self_bounds N/A N/A self N/A N/A N/A 
        Computes the bounds of the object itself (not including it's children)
        in the form [[lat_min, lon_min], [lat_max, lon_max]].

         N/A N/A N/A self embed N/A N/A N/A ValueError Cannot compute bounds of non-embedded GeoJSON. N/A data N/A N/A json loads N/A self data N/A N/A features N/A N/A data keys N/A N/A N/A N/A N/A isinstance data dict N/A geometry N/A N/A data keys N/A N/A data N/A type geometry Feature data N/A data N/A type features FeatureCollection N/A data N/A bounds N/A N/A None None N/A None None N/A feature N/A data N/A features N/A N/A point N/A iter_points N/A N/A N/A N/A feature get geometry N/A get coordinates N/A N/A N/A bounds N/A N/A N/A none_min N/A N/A bounds N/A 0 N/A 0 N/A point N/A 1 N/A none_min N/A N/A bounds N/A 0 N/A 1 N/A point N/A 0 N/A N/A none_max N/A N/A bounds N/A 1 N/A 0 N/A point N/A 1 N/A none_max N/A N/A bounds N/A 1 N/A 1 N/A point N/A 0 N/A bounds N/A N/A