src/module5/CityMarker.java
/** Show the title of the city if this marker is selected */
Show the title of the city if this marker is selected
Show the title of the city if this marker is selected
public void showTitle(PGraphics pg, float x, float y)
	{
		String title = getCity();
		pg.beginDraw();
		pg.rect(x+5, y, 50+title.length()*3, 20);
		pg.fill(0);
		pg.textSize(12);
		pg.textAlign(Math.round(x), Math.round(y));
		pg.text(title, x+9, y+14, 100);
		pg.fill(249,215,28);
		pg.endDraw();
	}
public void showTitle ( PGraphics pg , float x , float y ) { String title = getCity ( ) ; pg . beginDraw ( ) ; pg . rect ( x + 5 , y , 50 + title . length ( ) * 3 , 20 ) ; pg . fill ( 0 ) ; pg . textSize ( 12 ) ; pg . textAlign ( Math . round ( x ) , Math . round ( y ) ) ; pg . text ( title , x + 9 , y + 14 , 100 ) ; pg . fill ( 249 , 215 , 28 ) ; pg . endDraw ( ) ; }
Show the title of the city if this marker is selected
Show the title of the city if this marker is selected
// TODO: Implement this method