src/module3/EarthquakeCityMap.java
/* createMarker: A suggested helper method that takes in an earthquake 
	 * feature and returns a SimplePointMarker for that earthquake
	 * 
	 * In step 3 You can use this method as-is.  Call it from a loop in the 
	 * setp method.  
	 * 
	 * TODO (Step 4): Add code to this method so that it adds the proper 
	 * styling to each marker based on the magnitude of the earthquake.  
	*/
A suggested helper method that takes in an earthquake
feature and returns a SimplePointMarker for that earthquake

In step 3 You can use this method as-is.  Call it from a loop in the
setp method.


A suggested helper method that takes in an earthquake feature and returns a SimplePointMarker for that earthquake In step 3 You can use this method as - is . Call it from a loop in the setp method .
private SimplePointMarker createMarker(PointFeature feature)
	{  
		SimplePointMarker marker = new SimplePointMarker(feature.getLocation());
		Object magObj = feature.getProperty("magnitude");
		float mag = Float.parseFloat(magObj.toString());
	    return marker;
	}
private SimplePointMarker createMarker ( PointFeature feature ) { SimplePointMarker marker = new SimplePointMarker ( feature . getLocation ( ) ) ; Object magObj = feature . getProperty ( "magnitude" ) ; float mag = Float . parseFloat ( magObj . toString ( ) ) ; return marker ; }
createMarker: A suggested helper method that takes in an earthquake
 feature and returns a SimplePointMarker for that earthquake
createMarker : A suggested helper method that takes in an earthquake feature and returns a SimplePointMarker for that earthquake
// To print all of the features in a PointFeature (so you can see what they are) // uncomment the line below.  Note this will only print if you call createMarker  // from setup //System.out.println(feature.getProperties()); // Create a new SimplePointMarker at the location given by the PointFeature // Here is an example of how to use Processing's color method to generate  // an int that represents the color yellow.   // switch (mag){ // 	case (<4): //} // TODO (Step 4): Add code below to style the marker's size and color  // according to the magnitude of the earthquake.   // Don't forget about the constants THRESHOLD_MODERATE and  // THRESHOLD_LIGHT, which are declared above. // Rather than comparing the magnitude to a number directly, compare  // the magnitude to these variables (and change their value in the code  // above if you want to change what you mean by "moderate" and "light") // Finally return the marker