From 23719ada8fe265348d7fffaf4b525549547a3a0c Mon Sep 17 00:00:00 2001 From: Scott Shie Date: Tue, 13 Dec 2016 17:31:20 -0600 Subject: [PATCH] Cleanup and final changes for Records point data, and updated Demo proj. --- AerisDemo/AerisDemo.iml | 16 ++++++++-------- AerisDemo/build.gradle | 4 ++-- AerisDemo/res/values/aeris_default_values.xml | 10 +++++++--- .../src/com/example/fragment/MyMapFragment.java | 15 ++++++++++++++- 4 files changed, 31 insertions(+), 14 deletions(-) diff --git a/AerisDemo/AerisDemo.iml b/AerisDemo/AerisDemo.iml index acb0c30e..a17b5a9a 100644 --- a/AerisDemo/AerisDemo.iml +++ b/AerisDemo/AerisDemo.iml @@ -61,14 +61,6 @@ - - - - - - - - @@ -77,6 +69,14 @@ + + + + + + + + diff --git a/AerisDemo/build.gradle b/AerisDemo/build.gradle index 6481627c..3de3bf9b 100644 --- a/AerisDemo/build.gradle +++ b/AerisDemo/build.gradle @@ -1,7 +1,7 @@ buildscript { repositories { mavenCentral() - maven { url "https://oss.sonatype.org/content/repositories/comaerisweather-1013" } + maven { url "https://oss.sonatype.org/content/repositories/comaerisweather-1025" } } dependencies { classpath 'com.android.tools.build:gradle:2.2.3' @@ -49,7 +49,7 @@ android { repositories { mavenCentral() jcenter() - maven { url "https://oss.sonatype.org/content/repositories/comaerisweather-1013" } + maven { url "https://oss.sonatype.org/content/repositories/comaerisweather-1025" } } dependencies { compile('com.google.android.gms:play-services:9.8.0'){ diff --git a/AerisDemo/res/values/aeris_default_values.xml b/AerisDemo/res/values/aeris_default_values.xml index 14021816..962af6d8 100644 --- a/AerisDemo/res/values/aeris_default_values.xml +++ b/AerisDemo/res/values/aeris_default_values.xml @@ -11,7 +11,7 @@ .8 500 - + 1500 10 @@ -19,12 +19,16 @@ true true diff --git a/AerisDemo/src/com/example/fragment/MyMapFragment.java b/AerisDemo/src/com/example/fragment/MyMapFragment.java index 933c469c..809ea8f1 100644 --- a/AerisDemo/src/com/example/fragment/MyMapFragment.java +++ b/AerisDemo/src/com/example/fragment/MyMapFragment.java @@ -17,8 +17,17 @@ import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; +import android.widget.ImageView; import android.widget.Toast; +import com.aerisweather.aeris.communication.Action; +import com.aerisweather.aeris.communication.Aeris; +import com.aerisweather.aeris.communication.AerisCommunicationTask; +import com.aerisweather.aeris.communication.AerisRequest; +import com.aerisweather.aeris.communication.Endpoint; +import com.aerisweather.aeris.communication.parameter.FromParameter; +import com.aerisweather.aeris.communication.parameter.Parameter; +import com.aerisweather.aeris.tiles.AerisPointHelper; import com.example.db.MyPlace; import com.example.db.MyPlacesDb; import com.example.demoaerisproject.MapOptionsLocalActivity; @@ -186,12 +195,14 @@ private void initMap() m_mapOptions.withPolygon(AerisPolygonData.NONE); m_mapOptions.withTile(AerisTile.RADAR); - //save the map options + //save the map options m_mapOptions.setPreference(getActivity()); } //display the amp with the options we specified m_mapView.displayMapWithOptions(m_mapOptions); + m_mapView.addLayer(m_mapOptions.getPolygon()); + m_mapView.addLayer(m_mapOptions.getPointData()); //get a new marker option object MarkerOptions markerOptions = new MarkerOptions(); @@ -266,6 +277,8 @@ public void onResume() { m_mapOptions = AerisMapOptions.getPreference(getActivity()); m_mapView.displayMapWithOptions(m_mapOptions); + m_mapView.addLayer(m_mapOptions.getPointData()); + m_mapView.addLayer(m_mapOptions.getPolygon()); } //tell the map to redraw itself