Question

I created markers with custom html for my bing map (doesn't matter if is was google maps). The new marker contains kinetic js stage that contains layers interactive to the user. everything is working just fine except that now I want to resize my marker when my map zooms out or in. I want to give my marker max and min sizes and it should change it's size when map is zoomed in or out.

I'm not getting any idea how I can resize my kineticjs canvas.

Était-ce utile?

La solution

If I'm understanding correctly, you should be able to handle that by simply changing the scale of the stage.

stage.scale({x: newXScale, y: newYScale})

http://kineticjs.com/docs/Kinetic.Stage.html#scale

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top