WMS in an overlay for google maps? load url image

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

WMS in an overlay for google maps? load url image

Postby Perrapurr » Tue Jul 07, 2009 6:20 pm

Hi

I am trying to use a web map service in an overlay for google maps. I have so far loaded the url image in the Draw method in the overlay class but the performance is relly poor when showing the overlay.

Does someone know if I can get an event or something when the google map has been updated so that I can start loading and drawing the map image? For example when the map has been finished panning etc... Or does have anyone some other idea how I can do this??

Please help because its very frustrating... ;)

public void draw(Canvas canvas, MapView mapView,
boolean shadow) {
super.draw(canvas, mapView, shadow);
WMSLoader wmsloader = new WMSLoader();
Bitmap image = wmsloader.loadMap(canvas.getWidth(), canvas.getHeight(), MapUtils.getTopLeftCornerCoordinates(mapView.getProjection(), canvas), MapUtils.getLowRightCornerCoordinates(mapView.getProjection(), canvas));

etc.....
Perrapurr
Freshman
Freshman
 
Posts: 5
Joined: Mon Jan 07, 2008 4:29 pm

Top

Return to Map Problems

Who is online

Users browsing this forum: No registered users and 2 guests