Get your own customer support community
 

Overlay a single geographic image on a map

Hello,

I have a single image of the United Kingdom (see below) that I want to use as a map layer. I'll be putting small dot markers onto the map (specified by their lat,lon).

I've used the Map Transformation Calculator to get the information for the graphic. I'm having trouble figuring out which MapProvider to subclass. Most providers are tile-based but my map will be at this small, fixed size and zoom level so I don't need that level of complexity.

Should I subclass the AbstractMapProvider and override the paint() method to paint this image? How I should use the coordinate parameter that's passed in as I don't see how the row/column properties map to an x,y position on the screen.

Can anyone give me a hint on where to start with this or perhaps point me in the directions of an example please.

Many thanks,
Andrew

 
sad I’m confused
Inappropriate?
1 person has this question

User_default_medium