Installing PhantomJS
Before you run this sample, you will need to install PhantomJS following this wiki article:
Custom Visualization Component v6.0.x: How to run the Samples
Live Feed JSON Data
This sample use this JSON data stream: http://feeds.bayareabikeshare.com/stations/stations.json
The data is updated every five minutes.
Installing the Map Sample
Download the sample from this page: leafletmarkers_0.zip
From Jaspersoft Studio select File > Import then select General > Existing Projects into Workspace
Go to Preference>Resource Folders >Custom Visualization Component, add the LeafletMarkers project to the components path.
You are ready to do the map.
Creating a Live Feed Map
Create a JSON data adaptor:
Parametrize the JSON data:
Add the CVC map component:
Configure the Markers:
Add JSON data source on the JasperReports Server:
By Default, JSON data source is not enabled. You can enable JSON data source on the server following this link:
TIBCO JasperReports Server Administration Guide » Data Sources
- Publish the Map on the Server and Celebrate!
For the step by step guide, see this screencast movie, and the json_map_export.zip®json_map_export.zip.
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now