Working with Google Map MyLocation

1. Issue. how to delete markers ?

Click on marker shows title and geolocation. Let’s say long click on a map and we’ll check for marker near that (within .02 for example). To delete marker I have to call Marker.clear() or remove(). I don’t have marker object… I can remove all markers and draw remaining ones.

a.  http://stackoverflow.com/questions/16236439/restoring-map-state-position-and-markers-of-google-maps-v2-on-rotate-and-on

this has good complete code

I found and implemented this code: drag marker to a trash icon. Used this for starting point;http://stackoverflow.com/questions/17460315/delete-map-marker-while-dragged-on-an-imageview-bounds

 

 

2. Issue. Long click starts drag action. However drag Start message has coordinates that are off from original position. I can’t use these coordinates to snap the marker back in place.
After reading I think I have to maintain HashMap of markers with a key that is key to database entries.

3. Other useful sources:

Bunch of sample code but not clear what for and what’s quality, have to download and see.

http://www.androidhive.info/2012/08/android-working-with-google-places-and-maps-tutorial/

 

4. Marker lifecycle collection of sources.
http://stackoverflow.com/questions/16236439/restoring-map-state-position-and-markers-of-google-maps-v2-on-rotate-and-on

http://stackoverflow.com/questions/13762150/how-to-persist-marker-from-google-api-android-v2/13816635

How to instantiate map after rotation etc
http://stackoverflow.com/questions/14114131/how-to-add-overlay-in-google-maps-api-v2-android

 

5. Overlays. Not sure if I have to use Overlays. Seems it’s V1. But I will collect sources
http://stackoverflow.com/questions/6295203/adding-multiple-marker-on-google-map-in-android?rq=1

6. Google sources
https://developers.google.com/maps/documentation/android/marker
https://developers.google.com/maps/documentation/android/reference/com/google/android/gms/maps/package-summary

7. Info Window. If I change content of info window during drag- nothing happens.
http://stackoverflow.com/questions/15503266/dynamic-contents-in-maps-v2-infowindow/15512984#15512984
This might help. InfoWindowAdapter.
Next, this is about creating multiple custom infoWindow . Lot of code.
http://stackoverflow.com/questions/13763545/android-maps-api-v2-with-custom-markers
Next, onMarkerClick show/hide window issues and animaring the camera
http://stackoverflow.com/questions/14055785/android-onmarkerclick-doesnt-call-after-infowindow-hiding-in-googlemap-google-m
Minor next: http://stackoverflow.com/questions/17154027/hide-infowindow-when-clicked-marker-second-time-google-map-android-api-v2 – post answer to return true if I can

8. Map extensions
https://code.google.com/p/android-maps-extensions/

9. Draggable marker example
http://android-er.blogspot.com/2013/01/google-maps-android-api-v2-example_7.html

10: cool code to animate the marker from one geopoint to another:
http://stackoverflow.com/questions/13728041/move-markers-in-google-map-v2-android

Advertisements

Plan to start iOS development from scratch

I never worked on Mac. I never owned any Apple equipment. I never wrote Java script or Objective C. Not true, I wrote some Java Script 15 years ago and 2 years ago in a class, just a little. I can write Java ok and I worked as developer in C++ 10 years ago. That’s stats. My Business Partner is asking to develop iOS version of the Android app that we did recently. We have to do this on absolutely minimal budget.
Hardware selection: Apple Mini is less cost.
Requirement by Apple: an Intel-based Mac running Snow Leopard or later
I asked for recommendations how much memory is necessary for development. One strong developer came back with 12-16 Gb. Another one said 8Gb or more. And up to date processor, whatever that means.
Newegg has aftermarket memory.
Question 1. Do I need 2 Dimms that are same 4*2 Gb or can keep one from whatever comes with the purchase and buy 1 chip?
http://www.newegg.com/MemoryFinder/#RIJ+I9G0bB0AAD company called crucial.
Question 2. What connectors I need to connect to VGA, does device have multiple USB ports or I need another splitter? At some reason my existing USB splitter doesn’t see all devices that I stick into it.
Question 3. Can i use my existing external drives?

Will update the post after I figure this out.

Links:
http://store.apple.com/us/buy-mac/mac-mini?product=MD387LL/A&step=config
http://www.iosdevelopmenttutorials.com/getting-started-with-ios-app-development/hardware-needed-to-develop-ios-apps/
BTW this http://www.iosdevelopmenttutorials.com has tutorial for getting started with Objective C
http://www.iosdevelopmenttutorials.com/objective-c-tutorial/create-your-first-objective-c-application/