mapview

loading MapView from Main Activity slow animation almost hangs for a moment

i have the following code in a TabHost/TabWdiget for an activity in a Tab that has a ListView that calls my MapView if(_list.get(position).enabled) { convertView.setOnClickListener( new OnClickListener() { public void onClick(View v) { _context.startActivity(i); } }); } When the animatio...

OverlayItem not displaying markers!

Hello, I have the following code and the markers are not appearing on the map at all! private class SitesOverlay extends ItemizedOverlay<pfOverlayItem> { private List<pfOverlayItem> items=new ArrayList<pfOverlayItem>(); //private PopupPanel panel=new PopupPanel(R.layout.popup); public SitesOverlay() { super(null)...

Get current OverlayItem being drawn

I want to be able to get some reference to the curent object being drawn @Override public void draw(Canvas canvas, MapView mapView,boolean shadow) { //Log.i("DRAW","MARKER"); super.draw(canvas, mapView, false); } Above is my draw method and I want to extend the draw method to write the title und...

Map View errors when I used it for the second time in Android (Titanium)

Hi I have records on the table list contains data that has latitude & longitude on the listing widow. When I click on each row, it passes to the detail window that display the mapview and its annotation of that record. I zoom in & out, moved to different area and I clicked "back" button to go back to the record list. Then, I selected ...

In android how do i run an event after a google mapview completely loads?

Every time the bounds of the mapview change, i want to get them. The only problem is that I cant just listen to an ontouchevent or something similar because the map still doesn't have the new bounds by the time that method is called since it is asynchronous. How can i get this information efficiently and accurately? ...

Save an Android MapView and reload

Hi all! I had found a lot of stackoverflow post about save an Activity and the reload it. My question: How can I have an Activity with an MapView and after reload the same mapview ? What is the best way to switch between activity and views ? Thanks:Karoly ...

initializing the mapkit with a particular latitude and longitude Iphone

Iam making an iphone app, which should take in latitude and longitudes from an array and should locate and display the map with a customized annotation/pins. I have used the mapkit here's how: //MapViewController.h #import <UIKit/UIKit.h> #import <MapKit/MapKit.h> @interface MapViewController : UIViewController <MKMapViewDelegate> { ...

Touching both a MapView and a Button on Android

Hey there!! I created a MapActivity that contains a MapView and a Button on the top of the MapView. Like this: I would like that the user touch a point of the mapView with a finger and then touch the button "Add Place" with another finger (the MapView is still pushed by the first finger). The problem is when the first finger touch ...

Use Layout as OverlayItem on MapView?

Is it possible to use a layout defined in XML as an OverlayItem to be added to a MapView instead of just a single drawable? I have several Overlays being drawn on the map but they are just single images, I would now like to place Overlays that are more complex objects instead of just a simple drawable. I am planning on drawing a marker...

Resource usage in Google's MapActivity for Android.

Does anyone happen to know if Google's MapActivity will eat up extra resources if an Activity does not use Google's MapView? The reason I ask it because I'd like to have a base activity class (which would extend MapActivity) for my activities in my application, but I don't want my resources to be eaten up when the user is in an activity...

How to use multiple MapActivities/MapViews per Android application/process

My situation is the following: I have written one MapActivity class that is able to display a set of places as well as single places. On startup, the application creates an instance of this MapActivity and displays multiple places. If the user clicks on a certain place, then a new Activity is launched that shows the details of the select...

How do I view a map location's info by long clicking in a custom activity ?

I have an activity that extends MapActivty that renders out a marker. I would like the map to handle long clicks the same way the native Maps app does in finding the physical address of the geo point, displaying the address, then allow me to press the caption containing the address to view more details ie driving directions, what's near...

How to know when activity is laid out?

I've got a mapview that I want to put some markers on top of. I'll retrieve these from a webservice when I start the activity, so I need to know the minimum and maximum lat/lng pairs for the current viewport. I'm calling mMapView.getWidth() mMapView.getHeight() But they both return 0 while the activity is starting. I tried putting it...

Android draw a path on a mapView from a large amount of longitude/latitude points

I am writing a application that needs to draw a "route" comprised of lots of GPS points (long+lat). The points are close together and don't follow roads, simply drawing a line between each point is ideal. The current implementation I have is very slow as I am looping over all the GPS coordinates and creating a new Point and overlayitem ...

3d map on UIMapview in iphone

I want to show 3D google map on my mapview . Is it possible if yes then give me some reference or any link for help? ...

Weird shadow behavior for android MapView

I am putting several markers on a MapView by subclassing an ItemizedOverlay. The hitch is that the marker I am passing to the ItemizedOverlay is a custom Drawable. That is to say, I've subclassed "Drawable" and I have overwritten the draw() method. The point of this was to add a color filter to the Drawable, and add custom text: publ...

How to draw route between two locations in iPhone?

How can we draw the routes between two locations in MapView using the iOS 4.0? Can some one shed light on it? ...

Android map overlay icon with relative/fixed position to the screen

I am trying to have a drawable (basically an icon/button) that sits on the mapview with a fixed position at the corner of the map. Similar to the zoom controller, and unlike a typical marker, it shouldn't move when I pan the map. When I click on the icon it should bring up an activity. I am currently implementing it as an OverlayItem...

removing/stopping a specific mkAnnotationView from being reused.

Hi all, I've been playing around with the MapKit and came across a puzzling scenario that i'm not creative/knowledgable enough to work my way around of. In my map application, I have a mapView that I would like to drop pins onto. My dilema arrises from the fact that mapView reuses it's annotationViews. what I would idealy like to do, is...

How to make MapView height take the Android status bar into account?

I have clickable icons on a map showing a PopupWindow just above the icon when clicked. However, if the icon is on the topmost part of the map the PopupWindow will be hidden under the Android Status Bar. The PopupWindow will automatically adjust to the right and left edges of the screen, and also to the top edge but doesn't take the sta...