thanks for ur concerns,

@Frank
I have JPEG sketch of my apartment, getting just geocode of my
apartment doesnt serve my purpose.
i want to do location markup on that JPEG image,  i have stored
location information which i want to mark on the image using android
API's
so i want to convert my image as a google map then use android API's
to mark location on that. let me know if u need more information.

@Igor
As i am new to android
can u give me simple example with main activity illustrating on " how
to draw JPEG image on MapView with overlays to mark on the co-ordinate
of the image"
i tried doing it but i am getting NULL exception while using overlays

rgds
Sal

On Dec 6, 6:46 am, ip332 <[email protected]> wrote:
> I used the Overlay class for this purpose.
> Here is the main part of the MyOverlay::Draw() method:
>         // convert bitmap's bounding box into pixels
>         Point top_left = new Point();
>         mapView.getProjection().toPixels(min, top_left);
>         Point bottom_right = new Point();
>         mapView.getProjection().toPixels(max, bottom_right);
>         // Prepare two rectangles (pixels)
>         Rect src = new Rect( 0,0,bmp.getWidth() - 1, bmp.getHeight() -
> 1 );
>         Rect dst = new Rect( top_left.x, bottom_right.y,
> bottom_right.x,top_left.y );
>         // draw bitmap
>         canvas.drawBitmap( bmp, src, dst, null);
> Since it uses current mapView then zooming and panning are supported
> automatically.
> Obviously you need to know left top (GeoPoint min in the code above)
> and right bottom (GeoPoint max) coordinates for your picture (I used
> Google Earth for this purpose).
> Good luck.
> Igor
>
> On Dec 5, 6:36 am, suhail ahmed <[email protected]> wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I have JPEG, PDF of sketch of my apartment, i want to make it as a google
> > map so that i can use Google API's (geocoding, reverse geocoding) on that.
>
> > may i know the solution for the problem
>
> > regards
> > Sal

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to