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(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')