How to get the coordinates by touching the map. Like i want to place a pin where I have tapped on the google map in iphone application.
Kindly explain me with an example.
Thanks,
Best Regards,
Naveed Butt
You can create a draggable pin with the new sdk. Check this out Map kit annotation
Related
Hello everyone i am stuck into one problem. I am working on Application in which Mall Map required to integrate.
I need to display Mall map like this:
I have done proper r&d but not found any solution yet.
Can it be possible if yes then how can i implement this ?
Any hint or suggestion will be appreciated.
Thanks.
You could display the map in a UIImage and place this image in a UIScrollView. After that you need to divide the image into region rectangles, each identifying one room.
When the user taps the UIScrollView you need to determine which region he tapped on.
Using your room grid you can detect which room he tapped on. Of course this is easier for not zoomed images.
In a zoomed state you need to convert the touched point to the "unzoomed touched point" and check this point for the grid.
Here is the scenario...
I have a image of a map in jpeg format... I want to add it to my iPhone application and mark the coordinates in certain places (just like annotation in map kit ) and also when i move from one place to another place the current location should change and the new location should be marked in the image.
Is that possible ? How to achieve this instead of using the mkmapview ?
I found this tutorial how to add custom google maps, maybe you could use your image (.jpeg) as a overlay.
stiern.com/tutorials/adding-custom-google-maps-to-your-website
Sounds like you want to use an MKOverlay.
Essentially it boils down to looking at the TileMap sample code from WWDC 2010. It'll still load the Google Map in the background and your map over the top
I have a offline map tiles, i display it and also zoom in zoom out functionality in that and it's working very well, but now i want to drop multiple pins on offline map tiles and also want to get lat-long of that drop pin how it's possible ? please help me.
you will get definitely solution form this link Offline Maps iPhone
I have check and get lat and long when i click on map. so on click event u will drop a pin.
in this link u will see the answer which is given by Ruben Esposito.
MAy be it help.
There is a webpage I am looking at that displays a Google Map (via javascript), but certain areas of the map have an overlay (textures appear different than the rest of the map, etc.). From what I can gather, this is done on the webpage via a getTileURL function, which depends on the zoom level and current coordinate.
I am interested in portraying this same overlay in my iPhone application, which currently has a mapView set up. Is there anyway to implement the same sort of getTile function in objective-c for a mapView?
If someone could please provide some sample code or point me in the right direction I would greatly appreciate it. Thank you.
I want to make a webpage with a Google Map that marks the geographical position of my iPhone, how do I go about this?
I've looked into the Google Map API section on markers - so I can make a static marker, but I don't know how to pull the GPS data from my iPhone.
Answer is here: iPhone current user location coordinates showing as (0,0)