This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!airportListsBuild){ | |
airportLists = makeAirportLists(map, countryMarkers, airportMarkers); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!airportListsBuild){ | |
} | |
else{ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<Feature> airports = GeoJSONReader.loadData(this, "WorldAirports.geo.json"); | |
List<Marker> airportMarkers = MapUtils.createSimpleMarkers(airports); | |
map.addMarkers(airportMarkers); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import de.fhpotsdam.unfolding.mapdisplay.*; | |
import de.fhpotsdam.unfolding.utils.*; | |
import de.fhpotsdam.unfolding.marker.*; | |
import de.fhpotsdam.unfolding.tiles.*; | |
import de.fhpotsdam.unfolding.interactions.*; | |
import de.fhpotsdam.unfolding.ui.*; | |
import de.fhpotsdam.unfolding.*; | |
import de.fhpotsdam.unfolding.core.*; | |
import de.fhpotsdam.unfolding.data.*; | |
import de.fhpotsdam.unfolding.geo.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(country.isInside(map, mouseX, mouseY)){ | |
country.draw(map); | |
HashMap countryProps = country.getProperties(); | |
String countryName = countryProps.get("name").toString(); | |
println(countryName); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void draw() { | |
map.draw(); | |
for (int i = 0; i < countryMarkers.size(); i++){ | |
Marker country = countryMarkers.get(i); | |
if(country.isInside(map, mouseX, mouseY)){ | |
country.draw(map); | |
} | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// FIND & DELETE | |
map.addMarkers(countryMarkers); | |
// INSERT AT TOP | |
List<Marker> countryMarkers; | |
// FIND & CHANGE | |
List<Marker> countryMarkers = MapUtils.createSimpleMarkers(countries); | |
// INTO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// CHANGE | |
List<Feature> countries = GeoJSONReader.loadData(this, "countries-simple.geo.json"); | |
// INTO | |
List<Feature> countries = GeoJSONReader.loadData(this, "countries.geo.json"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Classic calculation of font-sizes found on http://webtypography.net/Harmony_and_Counterpoint/Size/3.1.1/ | |
body { font-size:100%; } | |
h1 { font-size:2.25em; /* 16x2.25=36 */ } | |
h2 { font-size:1.5em; /* 16x1.5=24 */ } | |
h3 { font-size:1.125em; /* 16x1.125=18 */ } | |
h4 { font-size:0.875em; /* 16x0.875=14 */ } | |
p { font-size:0.75em; /* 16x0.75=12 */ } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
320px ( 480px) - Smartphone | |
768px (1024px) - Tablet | |
1024px ( 768px) - Netbook | |
1600px ( 900px) - Desktop |
NewerOlder