0

I'm displaying a map on my site. The map image is set as the background for the main division. I have a grid overlay (tranparent png) over this map.

I'm using zoomooz (http://janne.aukia.com/zoomooz/) to zoom in to different areas of interest on the map.

Currently, when I zoom both the map and the overlay zoom in. I'm looking to have only the map zoom, and keep the grid at a constant size.

I've set the positioning on the overlay to be fixed but everything still seems to zoom together.

Mark Parnell
  • 9,175
  • 9
  • 31
  • 36
blinduck
  • 428
  • 1
  • 5
  • 20

1 Answers1

1

Over lay must not be part of root document there,

see the setting code in documentation you have sent,

// root element to zoom relative to
// (this element needs to be positioned)
root: $(document.body), // here enter the parent div you want to zoom. with respect to his it will zoom(like wrapper)

I have not done practical as you have not provided code but of zoom applied to whole document. then everything will zoom, its simple.

You need to identify the area(div) and specify its id as root. "Overlay must not be inside that (div)" else will be zooming again.

I hope this will do :)

for more help create fiddle and/or post all supporting code.

thank you

MarmiK
  • 5,639
  • 6
  • 40
  • 49