Get your own customer support community
 

Single Image MapProvider

Hello ModestMappers!

We are trying to use ModestMaps to implement a floorplan viewer. We would like to reuse the pan and zoom functionality of MM, but our image sizes don't warrant slicing up into tiles. Just scaling them as a zoom is perfect.

At first I was trying them as Overlays (or even markers, maybe), but it seems like I should be able to create my own MapProvider that only ever returns a single image at the middle zoom level and lets the zoom in/out levels scale from that middle level.

This kind of works, but I need help. What should I be doing in terms of Transformations and Projections? How do I specify the boundaries? What should my getTileUrls function look like?

Thanks in advance for any advice!
 
indifferent I’m undecided
Inappropriate?
1 person has this question

User_default_medium