Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8662785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:48:57+00:00 2026-06-12T16:48:57+00:00

I am getting the MapView of current location by passing longitude and latitude parameters

  • 0

I am getting the MapView of current location by passing longitude and latitude parameters correctly. But i want to draw paint just like free hand (i.e names or lines and so..on) on that MapView image. from that i want total image of MapViewimage on that paint by user.
How can I do this?

when user send his path to another user like shown below…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T16:48:58+00:00Added an answer on June 12, 2026 at 4:48 pm

    Use an overlay. See this example Overlays

    Here’s example code:

    public class overlayGeoPoints  extends Overlay {
    
        private GeoPoint geoPoint;
        private int radius = 20;
    
        @Override
        public boolean onTap(GeoPoint geoPoint, MapView mapView){
              this.geoPoint = geoPoint;
        }
    
        @Override
        public void draw(Canvas canvas, MapView mapView, boolean shadow) {
    
            // put your logic here to draw on the overlay
            // ie draw a circle
            Projection projection = mapView.getProjection();
            Point point = new Point();
            projection.toPixels(geoPoint, point);
    
            int px = point.x;
            int py = point.y;
            Paint paint = new Paint(paintSecondary.ANTI_ALIAS_FLAG);
            hl.setColor(intColor);
            canvas.drawCircle(px, py, radius, paint);
            canvas.save();
    
        }
    }
    

    Just add this overlay to your map.

    Edit

    Here is a step by step (generic):

    AFTER your map object (map) is created

    // get a handle to the map overlays
    List<Overlay> overlays = mapView.getOverlays();
    
    // reset overlays as necessary
    //overlays.clear();
    
    // create your custom overly class
    overlayGeoPoints olay = new overlayGeoPoints();
    
    // append overlay to map overlays
    overlays.add(olay);
    
    // tell the map object to redraw
    mapView.postInvalidate();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a MapView application which shows my current location's latitude and
i was successful in getting the latitude and longitude of my current position from
i'm looking for answer about getting latitude and longitude from uimapkit. there is same
i'm testing an app of getting current location with sumsung galaxy spica, it show
I am doing an app based on mapview. I am getting the location(place) and
I'm getting the location through - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation . It
I'm trying to run the Android MapView example, and am getting a 'Cannot cast
I have an application that uses the mapview-overlay-manager code to draw map markers on
I'm using the following code to setup a mapview in android and display location
About App:--This is a simple app which find the user current location. Problem:-- The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.