jcoletaylor

Show Partial Map

Recommended Posts

I've looked for an answer to this in the forums, but either I missed it, or I don't know how to search for what I'm looking for... I've found that there's no way to do a "zoom" in and out feature in fusion maps right now, and while the drilldown examples are great, they're not really what I need. In effect, I have a map of a state, and I would like to be able to, on clicking a county, show the county and the surrounding region in a smaller map, but not the whole state again. In that map I would have some markers for cities, etc. There aren't "regional" maps for pieces of states, and there aren't individual county maps, and since fusionmaps doesn't (yet?) support zooming in and out, I was wondering if there's a way to just show part of a map? I didn't see anything like it in the documentation, but oddly enough, I inadvertently sent some non-encoded xml to a map at one point, and it showed me just a segment of the map, like a few counties sliced off and made large. It wasn't intentional, and the map was non-functional, but it made me wonder if there's a way to do that intentionally, just showing a region, or even just making the map substantially larger but hiding all but a window to the desired region, or something like that.

 

 

 

Thanks!

Share this post


Link to post
Share on other sites

Hi,

 

 

 

Yes, if you can combine and adjust values of mapTopMargin, mapLeftMargin, mapRightMargin and mapBottomMargin in some negative values, you can achieve that. Need to go for some tiral and error processes.

 

 

 

We are thinking of developing a zoom-pan addon JavaScript Object for this which might help in that. We would post the Object (with Documentation ) throughout the development stages of it up here in the forum.

 

 

 

Please try and provide us feedback once you try out the addon.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now