def render(self, **kwargs): super(TimestampedGeoJson, self).render() figure = self.get_root() assert isinstance(figure, Figure), ("You cannot render this Element " "if it's not in a Figure.") figure.header.add_children(\ JavascriptLink("https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.0/jquery.min.js"), name='jquery2.0.0') figure.header.add_children(\ JavascriptLink("https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js"), name='jqueryui1.10.2') figure.header.add_children(\ JavascriptLink("https://raw.githubusercontent.com/nezasa/iso8601-js-period/master/iso8601.min.js"), name='iso8601') figure.header.add_children(\ JavascriptLink("https://raw.githubusercontent.com/socib/Leaflet.TimeDimension/master/" "dist/leaflet.timedimension.min.js"), name='leaflet.timedimension') figure.header.add_children(\ CssLink("https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.4/styles/default.min.css"), name='highlight.js_css') figure.header.add_children(\ CssLink("http://apps.socib.es/Leaflet.TimeDimension/dist/leaflet.timedimension.control.min.css"), name='leaflet.timedimension_css')
def render(self, **kwargs): super(BoatMarker, self).render(**kwargs) figure = self.get_root() assert isinstance(figure, Figure), ("You cannot render this Element " "if it's not in a Figure.") figure.header.add_children( JavascriptLink("https://thomasbrueggemann.github.io/leaflet.boatmarker/js/leaflet.boatmarker.min.js"), # noqa name='markerclusterjs')
def render(self, **kwargs): super(TileLayer, self).render() figure = self.get_root() assert isinstance(figure, Figure), ("You cannot render this Element " "if it's not in a Figure.") figure.header.add_children(JavascriptLink( "https://leaflet.github.io/Leaflet.heat/dist/leaflet-heat.js"), name='leaflet-heat.js')
def render(self,**kwargs): super(Terminator,self).render(**kwargs) figure = self.get_root() assert isinstance(figure,Figure), ("You cannot render this Element " "if it's not in a Figure.") figure.header.add_children(\ JavascriptLink("https://rawgithub.com/joergdietrich/Leaflet.Terminator/master/L.Terminator.js"), name='markerclusterjs')
def render(self, **kwargs): super(MarkerCluster, self).render(**kwargs) figure = self.get_root() assert isinstance(figure, Figure), ("You cannot render this Element " "if it's not in a Figure.") figure.header.add_children(\ JavascriptLink("https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/leaflet.markercluster.js"), name='markerclusterjs') figure.header.add_children(\ CssLink("https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/MarkerCluster.css"), name='markerclustercss') figure.header.add_children(\ CssLink("https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/MarkerCluster.Default.css"), name='markerclusterdefaultcss')
def render(self, **kwargs): self.color_domain = [ self.vmin + (self.vmax - self.vmin) * i / 499. for i in range(500) ] self.color_range = [self.__call__(x) for x in self.color_domain] self.tick_labels = legend_scaler(self.index) super(ColorMap, self).render(**kwargs) figure = self.get_root() assert isinstance(figure, Figure), ("You cannot render this Element " "if it's not in a Figure.") figure.header.add_children(JavascriptLink( "https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"), name='d3') # noqa
def render(self, **kwargs): super(ellipse, self).render(**kwargs) figure = self.get_root() assert isinstance(figure, Figure), ("You cannot render this Element " "if it's not in a Figure.") figure.header.add_children( #JavascriptLink("https://cdnjs.cloudflare.com/ajax/libs/leaflet.markercluster/0.4.0/leaflet.markercluster.js"), # noqa #JavascriptLink("https://raw.githubusercontent.com/jdfergason/Leaflet.Ellipse/master/l.ellipse.min.js"), JavascriptLink("http://d8a.solutions/elenas_cdn/l.ellipse.js"), name='ellipse') # , { # color: 'green', # fillColor: 'green', # fillOpacity: 0.5 # }