this.downloadButton.setEnabled(true);
}
private Layer buildEarthquakeLayer(String earthquakeFeedUrl)
{
GeoJSONLoader loader = new GeoJSONLoader()
{
@Override
protected void addRenderableForPoint(GeoJSONPoint geom, RenderableLayer layer, AVList properties)
{
try
{
addEarthquake(geom, layer, properties);
}
catch (Exception e)
{
Logging.logger().log(Level.WARNING, "Exception adding earthquake", e);
}
}
};
RenderableLayer layer = new RenderableLayer();
layer.setName("Earthquakes");
loader.addSourceGeometryToLayer(earthquakeFeedUrl, layer);
return layer;
}