Пример #1
0
                protected internal override void onPostExecute(IList <Dictionary <string, string> > list)
                {
                    Log.d("Map", "list size: " + list.Count);

                    outerInstance.mMap.clear();

                    for (int i = 0; i < list.Count; i++)
                    {
                        MarkerOptions markerOptions         = new MarkerOptions();
                        Dictionary <string, string> hmPlace = list[i];
                        double lat  = double.Parse(hmPlace["lat"]);
                        double lng  = double.Parse(hmPlace["lng"]);
                        string name = hmPlace["place_name"];
                        Log.d("Map", "place: " + name);
                        string vicinity = hmPlace["vicinity"];
                        LatLng latLng   = new LatLng(lat, lng);
                        markerOptions.position(latLng);
                        markerOptions.title(name + " : " + vicinity);
                        markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_MAGENTA));
                        Marker m = outerInstance.mMap.addMarker(markerOptions);
                    }
                }