kneczaj / pi-puppids

Automatically exported from code.google.com/p/pi-puppids
0 stars 0 forks source link

Show places on the map #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Show the all the places of the city a player plays in or within a certain 
radius around the player location on the map. 
Give the map markers either the icon of the resource they yield or the icon of 
the place type (airport, etc) 

Original issue reported on code.google.com by peter.re...@gmail.com on 24 Dec 2012 at 11:24

GoogleCodeExporter commented 8 years ago

Original comment by peter.re...@gmail.com on 24 Dec 2012 at 11:44

GoogleCodeExporter commented 8 years ago

Original comment by peter.re...@gmail.com on 24 Dec 2012 at 11:45

GoogleCodeExporter commented 8 years ago
I pushed a first version of this feature today. It shows places within a radius 
of 1km around the player location, with the icon of the resource the place 
yields. 
Things still missing/wrong and open questions:
1) Using the native Google Places API (exchange with controller function in the 
future)
2) The places API is limited to 60 results for a search. Can we work around 
that with our own wrapper?
3) Using placeholder icons for now (replace with our own resource icons in the 
future)
4) The current version only requests 7 different types of places from Google 
and has hardcoded resource icons (would be nice to load our existing 
place->resource mapping and assign the icons automatically, but I had no luck 
in a first try)

Original comment by peter.re...@gmail.com on 29 Dec 2012 at 3:09

GoogleCodeExporter commented 8 years ago
5) For some places the default marker icon is used (somehow the search returns 
places that are not part of the requested types and therefore the default 
switch case is hit; should be solved as soon as we use the mapping to assign 
the icons since we request all place types then) 

Original comment by peter.re...@gmail.com on 29 Dec 2012 at 3:15

GoogleCodeExporter commented 8 years ago
closing this. fixing the rest in followups.

Original comment by peter.re...@gmail.com on 9 Jan 2013 at 4:49

GoogleCodeExporter commented 8 years ago

Original comment by peter.re...@gmail.com on 9 Jan 2013 at 4:50