.findFragmentById(R.id.map);
this.mMap = mapFragment.getMap();
- this.mMap.setMyLocationEnabled(true);
+ this.mMap.setMyLocationEnabled(false);
this.mMap.getUiSettings().setCompassEnabled(false);
this.mMap.setOnMapLongClickListener(new LongClickListener());
final String city = (geocodingData.getCity() == null) ?
WeatherInformationMapActivity.this.getString(R.string.city_not_found)
: geocodingData.getCity();
- final String country = (geocodingData.getCountry() == null) ?
- WeatherInformationMapActivity.this.getString(R.string.country_not_found)
- : geocodingData.getCountry();
- final TextView cityCountry = (TextView) WeatherInformationMapActivity.this
+ final String country = (geocodingData.getCountry() == null) ?
+ WeatherInformationMapActivity.this.getString(R.string.country_not_found)
+ : geocodingData.getCountry();
+ final TextView cityCountry = (TextView) WeatherInformationMapActivity.this
.findViewById(R.id.weather_map_citycountry_data);
- cityCountry.setText(city + "," + country);
-
- final LatLng point = new LatLng(geocodingData.getLatitude(), geocodingData.getLongitude());
- if (WeatherInformationMapActivity.this.mMarker == null) {
- WeatherInformationMapActivity.this.mMarker =
- WeatherInformationMapActivity.this.mMap.addMarker
- (new MarkerOptions().position(point).draggable(true));
- } else {
- WeatherInformationMapActivity.this.mMarker.setPosition(point);
- }
+ cityCountry.setText(city + "," + country);
+
+ final LatLng point = new LatLng(geocodingData.getLatitude(), geocodingData.getLongitude());
+ if (WeatherInformationMapActivity.this.mMarker == null) {
+ WeatherInformationMapActivity.this.mMarker =
+ WeatherInformationMapActivity.this.mMap.addMarker
+ (new MarkerOptions().position(point).draggable(true));
+ } else {
+ WeatherInformationMapActivity.this.mMarker.setPosition(point);
+ }
}
private GeocodingData getGeocodingData(final double latitude, final double longitude) throws IOException {