https://lh3.googleusercontent.com/-A6VHppSxRyk/TrkVmkzTPDI/AAAAAAAACaQ/sEDVPWNcmIs/s293/Untitled.png
I am trying to show weather condition in my map as shown above, How can I implement this?
Make a class that extends Overlay and add it as overlay. In tha class you override
@Override
public void draw(Canvas c, MapView mapView, boolean shadow) {
//super.draw(c, mapView, shadow);
if (shadow) return; // no shadows
Rect canvasRekt = new Rect(0, 0, c.getWidth(), c.getHeight());
Rect kortRekt = ...
c.drawBitmap(overlejretKort, canvasRekt, kortRekt, paint);
c.drawRect(kortRekt, paint);
}
The kortRekt should contain the rectangle of your bitmap (here its called overlejretKort)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.