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...
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)...
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...
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 ...
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?
...
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
...
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> {
...
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 ...
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...
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...
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...
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...
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...
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 ...
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?
...
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 can we draw the routes between two locations in MapView using the iOS 4.0? Can some one shed light on it?
...
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...
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...
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...