EarthquakeCityMap | Practical Improvement to the EarthquakeCityMap from Coursera
kandi X-RAY | EarthquakeCityMap Summary
kandi X-RAY | EarthquakeCityMap Summary
This is a skeleton to use Unfolding in Eclipse as well as some starter code for the Object Oriented Programming in Java course offered by UC San Diego through Coursera. A very basic Unfolding demo you’ll find in the source folder in the default package. For more examples visit or download the template with examples. The module folders contain the starter code for the programming assignments associated with the MOOC.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Parses a feature from an XML file .
- Draws an earth circle .
- Setup the Map
- Sorts the numToPrinters .
- Reads the list of airport IDs from the given file .
- Returns the distance between the two points .
- Calculate the Sun color for the given seconds .
- Print status .
- Draws an earth circle .
- Returns the population population .
EarthquakeCityMap Key Features
EarthquakeCityMap Examples and Code Snippets
Community Discussions
Trending Discussions on EarthquakeCityMap
QUESTION
As part of the coursera UCSD Java class, we are working with the Processing and Unfolding Maps libraries.
The course provides you with starter code, which I am trying to expand. But I ran into a problem.
On my work computer, where I do most of my studying, I have a really nice app started. I decided to take it home to my wife to show her, by cloning my github repo to my home laptop.
None of the librar/JAR files were included, so I downloaded them directly from Processing and Unfolding's download pages. The result was a NIGHTMARE. Error after error after error. I assume coursera/UCSD used old versions of the libraries, and the new versions aren't backwards compatible. Seems crappy, but whatever.
Next, I downloaded all the JAR files from the coursera sight. The results are a bit better, but things are still pretty wacky. Namely, when I create an UnfoldingMap()
object, the parameters for location within the window as well as size do absolutely nothing.
1.) I use Processing size()
method to size up or down the containing window, it scales the map object up or down. It totally ignores the size and location arguments of UnfoldingMap()
.
2.) The map object is always pushed to the lower left hand corner of the window, no matter it's arguments for position.
3.) The gray background()
I have chosen does show around the map, but the background itself is then surrounded by a big black field, that also scales with the size()
parameters.
Here is some code:
...ANSWER
Answered 2020-Feb-07 at 01:23The easiest option would be use an outdated version Processing that Unfolding still supports like Unfolding 0.9.6 (for Processing 2.2.1).
Since you're using eclipse you can actually compile a newer version might work for you. (I'm noticing there are a few minor updates from last year, but no release). To update via eclipse you can:
- get the repo (if you're on a Unix system (Linux/OSX) you might already have
git
installed:git clone https://github.com/tillnagel/unfolding
: this way you can always pull the latest updates and rebuild easily, otherwise download zip, unzip, etc.) - import the project in eclipse (via Import Existing Project)
- Drag build.xml from the project into the Ant View and select a target to compile.
main
will compile all of them including the Processing wrapper.
If you want to use command line only:
- Install Ant (if that's not already on your system) and add it to your
PATH
environment variable (e.g. to checkecho $PATH
on Unix orecho %PATH%
on Windows and ensure the folder where ant lives is listed, if not added it) - clone/download the repo
- run ant (e.g.
ant unfolding_processing
to build the Processing wrapper only or simplyant
(which defaults to themain
target building everything)
I can confirm manually compiling the latest version from github works with Processing 3.4
I've uploaded the Processing wrapper here: Hopefully you can drag the .jar file on top of your eclipse project.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install EarthquakeCityMap
You can use EarthquakeCityMap like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the EarthquakeCityMap component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page