Frage

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.

War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top