ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Overlaying a transparent PNG using Slippy map
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

bmesser

United Kingdom
221 Posts

Posted - Sep 10 2022 :  15:13:29  Show Profile  Reply
Hi

I am trying to overlay a transparent PNG on a Slippy map using stretchdraw. That works fine until I change the zoom level - the map zooms in and the weather radar overlay stays the same size. Is there someway that I can lock the PNG overlay to the map? Perhaps I should check the bounding rectangle coordinates because they are fixed lat/lons before I do the stretch draw.

Bruce.

xequte

38222 Posts

Posted - Sep 10 2022 :  16:38:37  Show Profile  Reply
Hi Bruce

SlippyMaps use a virtual bitmap, so you're going to have to repaint it each time the view changes (and scale it by the zoom level).

Alternatively, if you don't need panning (just zooming), we have support for Google Maps in our current beta, which would avoid using a virtual bitmap (though Google does charge for the service).



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

bmesser

United Kingdom
221 Posts

Posted - Sep 11 2022 :  06:20:22  Show Profile  Reply
Thanks Nigel.

I was forgetting that and trying to zoom in the usual way rather than using Map.Zoom and stepping through the zoom levels!

That's good news that you're going to be able to use Google Maps in future versions and I would think a good reason to update.

Bruce.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: