質問

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.

役に立ちましたか?

解決

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

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top