datamaps icon indicating copy to clipboard operation
datamaps copied to clipboard

Mouse Wheel Zoom Map

Open Hixon10 opened this issue 12 years ago • 5 comments

Hi. I saw example of static zoom. But I wish a Mouse Wheel Zoom Map. Is there some way to implement this feature?

Hixon10 avatar Nov 07 '14 22:11 Hixon10

http://jsbin.com/boribamugo/1/edit?html,output

markmarkoh avatar Apr 21 '15 20:04 markmarkoh

Hi, is it possible to change the line thickness while zooming in?

krehl avatar Oct 31 '16 16:10 krehl

This example should be well documented in the readme, it is awesome and simple!

juliohm avatar May 14 '17 01:05 juliohm

hi i need to create a map with zoom in zoom out with negative zoom out upto an (-100) .. how come i can implement that

Cristianopavan avatar Jan 19 '18 13:01 Cristianopavan

https://github.com/markmarkoh/datamaps/issues/146#issuecomment-257337180

Hi, is it possible to change the line thickness while zooming in?

This little piece worked perfectly for me:

datamap.svg.selectAll(".datamaps-arc").style("stroke-width", (1/d3.event.scale)*2+"px");

BernhardSmuts avatar Sep 23 '19 18:09 BernhardSmuts