weiweicui / PowerBI-Routemap

23 stars 11 forks source link

Adding + & - buttons for zoom out and zoom in #8

Closed hamza005 closed 6 years ago

hamza005 commented 6 years ago

Hello everyone here! I want to add (+) & (-) buttons in Route Map for zoom in and zoom out like in google maps etc. Is it possible in Power BI custom Route Map? If yes, then what's the procedure? Thank you everyone in advance.

weiweicui commented 6 years ago

So far it not supported, but should be easy to add.

hamza005 commented 6 years ago

I think I have to bind the map zoom function with .on('click') function instead of .on('mouseover') and add both of the images on svg and append them. right?

hamza005 commented 6 years ago

I've added the buttons into the svg element but unable to add the zoom functionality to them. Because of the different coding practices. can you help me out? Here is the screen shot of code and visual:

screenshot 22 screenshot 23

weiweicui commented 6 years ago

well, i think you do not need to make your own buttons. if you do not mind using default controls, there should be initial settings you can use i guess? you can check bingmap apis.

hamza005 commented 6 years ago

okay i'll check them. What if u add my desired functionality in the heat map. I'm doing this all for heat map. so if it possible for you so...

hamza005 commented 6 years ago

Thank you so much. It was easy. done!