From 0be3bc426adb4ce07b4baa06046e98f07b3f28a4 Mon Sep 17 00:00:00 2001 From: Apostolof Date: Mon, 24 Dec 2018 18:03:28 +0200 Subject: [PATCH] Add map marker icons --- .../auth/databases/flavours/MainActivity.java | 74 +++++++++++++++++- .../src/main/res/drawable-v24/bar_marker.png | Bin 0 -> 687 bytes .../res/drawable-v24/cafeteria_marker.png | Bin 0 -> 955 bytes .../res/drawable-v24/fast_food_marker.png | Bin 0 -> 727 bytes .../src/main/res/drawable-v24/pub_marker.png | Bin 0 -> 362 bytes .../res/drawable-v24/restaurant_marker.png | Bin 0 -> 267 bytes .../app/src/main/res/drawable/bar_marker.png | Bin 0 -> 687 bytes .../main/res/drawable/cafeteria_marker.png | Bin 0 -> 955 bytes .../main/res/drawable/fast_food_marker.png | Bin 0 -> 727 bytes .../app/src/main/res/drawable/pub_marker.png | Bin 0 -> 362 bytes .../main/res/drawable/restaurant_marker.png | Bin 0 -> 267 bytes 11 files changed, 70 insertions(+), 4 deletions(-) create mode 100644 UI/AndroidApp/flavoursWithoutBorders/app/src/main/res/drawable-v24/bar_marker.png create mode 100644 UI/AndroidApp/flavoursWithoutBorders/app/src/main/res/drawable-v24/cafeteria_marker.png create mode 100644 UI/AndroidApp/flavoursWithoutBorders/app/src/main/res/drawable-v24/fast_food_marker.png create mode 100644 UI/AndroidApp/flavoursWithoutBorders/app/src/main/res/drawable-v24/pub_marker.png create mode 100644 UI/AndroidApp/flavoursWithoutBorders/app/src/main/res/drawable-v24/restaurant_marker.png create mode 100644 UI/AndroidApp/flavoursWithoutBorders/app/src/main/res/drawable/bar_marker.png create mode 100644 UI/AndroidApp/flavoursWithoutBorders/app/src/main/res/drawable/cafeteria_marker.png create mode 100644 UI/AndroidApp/flavoursWithoutBorders/app/src/main/res/drawable/fast_food_marker.png create mode 100644 UI/AndroidApp/flavoursWithoutBorders/app/src/main/res/drawable/pub_marker.png create mode 100644 UI/AndroidApp/flavoursWithoutBorders/app/src/main/res/drawable/restaurant_marker.png diff --git a/UI/AndroidApp/flavoursWithoutBorders/app/src/main/java/gr/auth/databases/flavours/MainActivity.java b/UI/AndroidApp/flavoursWithoutBorders/app/src/main/java/gr/auth/databases/flavours/MainActivity.java index 114c665..43c0e0d 100644 --- a/UI/AndroidApp/flavoursWithoutBorders/app/src/main/java/gr/auth/databases/flavours/MainActivity.java +++ b/UI/AndroidApp/flavoursWithoutBorders/app/src/main/java/gr/auth/databases/flavours/MainActivity.java @@ -1,11 +1,13 @@ package gr.auth.databases.flavours; +import android.graphics.BitmapFactory; import android.os.Bundle; import com.google.android.gms.maps.CameraUpdateFactory; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.OnMapReadyCallback; import com.google.android.gms.maps.SupportMapFragment; +import com.google.android.gms.maps.model.BitmapDescriptorFactory; import com.google.android.gms.maps.model.LatLng; import com.google.android.gms.maps.model.MarkerOptions; @@ -39,9 +41,73 @@ public class MainActivity extends FragmentActivity implements OnMapReadyCallback public void onMapReady(GoogleMap googleMap) { mMap = googleMap; - // Add a marker in Sydney and move the camera - LatLng sydney = new LatLng(-34, 151); - mMap.addMarker(new MarkerOptions().position(sydney).title("Marker in Sydney")); - mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney)); + // Add markers and move the camera + LatLng uFleku = new LatLng(40.6357, 22.9367); + LatLng sSyxronaEstiatoria = new LatLng(40.6173, 22.9597); + LatLng uFlekuGarden = new LatLng(40.6354, 22.937); + LatLng mcDonalds = new LatLng(40.6463, 22.9206); + LatLng grill15 = new LatLng(40.6215, 22.961); + LatLng butterfliesAndHurricanes = new LatLng(40.6147, 22.9609); + LatLng theHoppyPub = new LatLng(40.6279, 22.9489); + LatLng bellevilleSinPatron = new LatLng(40.6337, 22.9518); + LatLng aitheroploo = new LatLng(40.6144, 22.9598); + LatLng odysseas = new LatLng(40.6369, 22.9534); + LatLng pulp = new LatLng(40.6321, 22.9479); + LatLng mcDonalds2 = new LatLng(40.5745, 22.9715); + LatLng gianoula = new LatLng(40.64, 22.9468); + + mMap.addMarker(new MarkerOptions() + .position(uFleku) + .title("U Fleků") + .icon(BitmapDescriptorFactory.fromResource(R.drawable.pub_marker))); + mMap.addMarker(new MarkerOptions() + .position(sSyxronaEstiatoria) + .title("Σ σύγχρονα εστιατόρια") + .icon(BitmapDescriptorFactory.fromResource(R.drawable.restaurant_marker))); + mMap.addMarker(new MarkerOptions() + .position(uFlekuGarden) + .title("U Fleků Garden") + .icon(BitmapDescriptorFactory.fromResource(R.drawable.pub_marker))); + mMap.addMarker(new MarkerOptions() + .position(mcDonalds) + .title("McDonald\'s") + .icon(BitmapDescriptorFactory.fromResource(R.drawable.fast_food_marker))); + mMap.addMarker(new MarkerOptions() + .position(grill15) + .title("Grill 15") + .icon(BitmapDescriptorFactory.fromResource(R.drawable.fast_food_marker))); + mMap.addMarker(new MarkerOptions() + .position(butterfliesAndHurricanes) + .title("Butterflies and Hurricanes") + .icon(BitmapDescriptorFactory.fromResource(R.drawable.cafeteria_marker))); + mMap.addMarker(new MarkerOptions() + .position(theHoppyPub) + .title("The Hoppy Pub") + .icon(BitmapDescriptorFactory.fromResource(R.drawable.pub_marker))); + mMap.addMarker(new MarkerOptions() + .position(bellevilleSinPatron) + .title("Belleville sin patron") + .icon(BitmapDescriptorFactory.fromResource(R.drawable.bar_marker))); + mMap.addMarker(new MarkerOptions() + .position(aitheroploo) + .title("Αιθερόπλοο") + .icon(BitmapDescriptorFactory.fromResource(R.drawable.pub_marker))); + mMap.addMarker(new MarkerOptions() + .position(odysseas) + .title("Οδυσσέας") + .icon(BitmapDescriptorFactory.fromResource(R.drawable.restaurant_marker))); + mMap.addMarker(new MarkerOptions() + .position(pulp) + .title("Pulp") + .icon(BitmapDescriptorFactory.fromResource(R.drawable.bar_marker))); + mMap.addMarker(new MarkerOptions() + .position(mcDonalds2) + .title("McDonald\'s") + .icon(BitmapDescriptorFactory.fromResource(R.drawable.fast_food_marker))); + mMap.addMarker(new MarkerOptions() + .position(gianoula) + .title("Γιαννούλα") + .icon(BitmapDescriptorFactory.fromResource(R.drawable.restaurant_marker))); + mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(grill15, 12.0f)); } } diff --git a/UI/AndroidApp/flavoursWithoutBorders/app/src/main/res/drawable-v24/bar_marker.png b/UI/AndroidApp/flavoursWithoutBorders/app/src/main/res/drawable-v24/bar_marker.png new file mode 100644 index 0000000000000000000000000000000000000000..16a8ceb939efc70c32132fa6e0eaf684778c81e3 GIT binary patch literal 687 zcmV;g0#N;lP)c?^CIYtnSHf*JS`c4pqpZ{E(%WLqoBiJjXG1Q5%w zU#n!Ih~o;0e?iDZz(or^J02NxO9!8=EXNQH(GjB_PVV0;NTzd76bAeIW6ew+MY<3R zsUpxQLW~1vCv`sIZL<;6U0CFAA`!PUG)uhWsFX1d9`NhuAcmii#+|Eg-hs3B1zy!Y zK;`*LT@r=4DY!TqmmE91i-agsvaPiA5}vKpVDXh6mCMDD5`xGN%e=Sr$K3{?1!leIZKXWA&>AOB? z4-DsF?#U8mi3e=D@PejGi*PM-4{)w7Um33yVj_?lEpW;y6O$ZT5b z(mk#q(+cJF|57rNo<*k#B~ z396U<6E}twnXQo05gKhqWCNB_r8LCh&CdIZzogd4s8TVOQcz?h)dTtA~h1x=G zq5oBg|9cx=A@?~FiiqFk%3`63_=xF2%2W~91R^LQCww7QN=K|ZvLz4`In>A;KLGSU VDCkU6#_s?C002ovPDHLkV1i3LLUsTE literal 0 HcmV?d00001 diff --git a/UI/AndroidApp/flavoursWithoutBorders/app/src/main/res/drawable-v24/cafeteria_marker.png b/UI/AndroidApp/flavoursWithoutBorders/app/src/main/res/drawable-v24/cafeteria_marker.png new file mode 100644 index 0000000000000000000000000000000000000000..1eb3dc54b7c0c0dee75ba6fae6b1922db52ab9af GIT binary patch literal 955 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k3?#4J%UH$0z-ScU6XFWwp1F4S=DenvtF{6e zUw`}pG9V6R>;a7 zhgMJQUbFki+Wd%3rLmh2oZP;8<<4X0cGsu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V>B>Ar*0JFFjrN*g&A+;!0Vq z?@BuT%&uu|-Q6Gl`EOol?VF`}_U_bge>zp`ubn7*@JRnpafrdr)~=(z>`4-lZBo-r z9j0$I40`Psu+g|c<-EY}xb{Wq=cN}P`Xq4bl9=mlH{OYUOSiHef4%ir&C)4;fm7}8 zt*jJQDOtr3)OK>N-Xu0%WibzV0r^EQ%IjCFntTx2_}SoC#MYA{8#R=D48EouS=8}v zjlT8ey9Hf`tdHw#^|))9w({8AhuY`v9jq3Q-?*!-zuQbLOMl%0kt=sC=b6M`ZMN3n z4CJlLN!tDMS#f}<61(NbU`_q#b-&+syxunLY1f3jlrNrdzP{oM8!xIT07Gf$^pP37i9rD=>OJ=e@&?mGBUCGUXa!M?efH~BK=Y>9j_C+b+` gMIY%8_y01Um@{FA&x?HFVdQ&MBb@0IUCNSpWb4 literal 0 HcmV?d00001 diff --git a/UI/AndroidApp/flavoursWithoutBorders/app/src/main/res/drawable-v24/pub_marker.png b/UI/AndroidApp/flavoursWithoutBorders/app/src/main/res/drawable-v24/pub_marker.png new file mode 100644 index 0000000000000000000000000000000000000000..77688c3f68c3739c0e5e0b10579ae417d51b4d79 GIT binary patch literal 362 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k3?#4J%UA`Z!UKFlT!Hk%7jOTsF@});&-h|; zfg+EeJbe1_+RK~!UtQh&WdhH)*%IIO=l~~+-2Q-?eB*-tA!N4IPAmIG@`}gm^=Xj&o3l!hx>EaktaqI1+yFyJ00&R&Vf8uqQ ziYdSQZ*^Kf-KBNIFVdQ&MBb@0Gq+4p#T5? literal 0 HcmV?d00001 diff --git a/UI/AndroidApp/flavoursWithoutBorders/app/src/main/res/drawable-v24/restaurant_marker.png b/UI/AndroidApp/flavoursWithoutBorders/app/src/main/res/drawable-v24/restaurant_marker.png new file mode 100644 index 0000000000000000000000000000000000000000..b33ed3bce83d59354192e5538f8b2b244c6e1971 GIT binary patch literal 267 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k1|%Oc%$NbBE_u2*hEy=Vy}FU}umg`nVE+R_ z8z;999Oj359|-0(Ux`$#eboaLYjO(+InnFDBzR{r(P4Yy8soO;f5aw(VV1E#`?=QBIQxKuiBr!}-S9gNK9Flv-)o#}8sXFc?^CIYtnSHf*JS`c4pqpZ{E(%WLqoBiJjXG1Q5%w zU#n!Ih~o;0e?iDZz(or^J02NxO9!8=EXNQH(GjB_PVV0;NTzd76bAeIW6ew+MY<3R zsUpxQLW~1vCv`sIZL<;6U0CFAA`!PUG)uhWsFX1d9`NhuAcmii#+|Eg-hs3B1zy!Y zK;`*LT@r=4DY!TqmmE91i-agsvaPiA5}vKpVDXh6mCMDD5`xGN%e=Sr$K3{?1!leIZKXWA&>AOB? z4-DsF?#U8mi3e=D@PejGi*PM-4{)w7Um33yVj_?lEpW;y6O$ZT5b z(mk#q(+cJF|57rNo<*k#B~ z396U<6E}twnXQo05gKhqWCNB_r8LCh&CdIZzogd4s8TVOQcz?h)dTtA~h1x=G zq5oBg|9cx=A@?~FiiqFk%3`63_=xF2%2W~91R^LQCww7QN=K|ZvLz4`In>A;KLGSU VDCkU6#_s?C002ovPDHLkV1i3LLUsTE literal 0 HcmV?d00001 diff --git a/UI/AndroidApp/flavoursWithoutBorders/app/src/main/res/drawable/cafeteria_marker.png b/UI/AndroidApp/flavoursWithoutBorders/app/src/main/res/drawable/cafeteria_marker.png new file mode 100644 index 0000000000000000000000000000000000000000..1eb3dc54b7c0c0dee75ba6fae6b1922db52ab9af GIT binary patch literal 955 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k3?#4J%UH$0z-ScU6XFWwp1F4S=DenvtF{6e zUw`}pG9V6R>;a7 zhgMJQUbFki+Wd%3rLmh2oZP;8<<4X0cGsuv*}P@XiHisJ>^pSs+L5Ctj&>FtyLjW| z<=dzFN`SVUpHg}L#If@??q58(`{J#Km*+HJ-oEO}%-Sn=9$noq@7kJ~*X}<7dF|n| z+mBz|d;03(^EZ!QzJ2!k{foCBUw`=g_S4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mlH{OYUOSiHef4%ir&C)4;fm7}8 zt*jJQDOtr3)OK>N-Xu0%WibzV0r^EQ%IjCFntTx2_}SoC#MYA{8#R=D48EouS=8}v zjlT8ey9Hf`tdHw#^|))9w({8AhuY`v9jq3Q-?*!-zuQbLOMl%0kt=sC=b6M`ZMN3n z4CJlLN!tDMS#f}<61(NbU`_q#b-&+syxunLY1f3jlrNrdzP{oM8!xIT07Gf$^pP37i9rD=>OJ=e@&?mGBUCGUXa!M?efH~BK=Y>9j_C+b+` gMIY%8_y01Um@{FA&x?HFVdQ&MBb@0IUCNSpWb4 literal 0 HcmV?d00001 diff --git a/UI/AndroidApp/flavoursWithoutBorders/app/src/main/res/drawable/pub_marker.png b/UI/AndroidApp/flavoursWithoutBorders/app/src/main/res/drawable/pub_marker.png new file mode 100644 index 0000000000000000000000000000000000000000..77688c3f68c3739c0e5e0b10579ae417d51b4d79 GIT binary patch literal 362 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k3?#4J%UA`Z!UKFlT!Hk%7jOTsF@});&-h|; zfg+EeJbe1_+RK~!UtQh&WdhH)*%IIO=l~~+-2Q-?eB*-tA!N4IPAmIG@`}gm^=Xj&o3l!hx>EaktaqI1+yFyJ00&R&Vf8uqQ ziYdSQZ*^Kf-KBNIFVdQ&MBb@0Gq+4p#T5? literal 0 HcmV?d00001 diff --git a/UI/AndroidApp/flavoursWithoutBorders/app/src/main/res/drawable/restaurant_marker.png b/UI/AndroidApp/flavoursWithoutBorders/app/src/main/res/drawable/restaurant_marker.png new file mode 100644 index 0000000000000000000000000000000000000000..b33ed3bce83d59354192e5538f8b2b244c6e1971 GIT binary patch literal 267 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k1|%Oc%$NbBE_u2*hEy=Vy}FU}umg`nVE+R_ z8z;999Oj359|-0(Ux`$#eboaLYjO(+InnFDBzR{r(P4Yy8soO;f5aw(VV1E#`?=QBIQxKuiBr!}-S9gNK9Flv-)o#}8sXF