Skip to content
Advertisement

Tag: zooming

HERE map controls not loading in React

I’m trying to display zoom in and zoom out control in HERE maps in React. I’ve followed the steps mentioned in the documentation, but I’m not getting any help from there. I’ve followed everything in the link: https://developer.here.com/tutorials/react/ My map component link: https://gist.github.com/pranay414/84f5fe4ed1b704c1ff34409a957c37d7 This is the error message I’m getting: Answer I’m trying to display zoom in and zoom out

Javascript zoom in/out to mouse x/y coordinates

I managed to make the mouse dragging to scroll the div, but the zooming in/out with the mouse is not complete. It works, but I would like for the mouse pointer to hold the image in that position and scale it at the same time, like so: I need to use scrollBy() to return the scrolling back to the previous

Move (drag/pan) and zoom object (image or div) in pure js

I’m working on a little script that makes an object (div or img) moveable and zoomable within a given frame. However I came across a few problems I’m not really sure of, because I’m a javascript beginner – so explanation of why those problems occure would be appreciated. Problems: Calling the functions start_drag(), while_drag() and stop_drag() returns undefined – why

raphael js Pan functionality using raphael-pan-zoom

I found a plugin called raphael-pan-zoom that I use to zoom-in and zoom-out my raphaeljs elements in my paper, the zoom worked perfectly, but when I wanted to move the paper to the left, right, top or down I didn’t success. I found in the “raphael.pan-zoom.js” the pan function : I don’t know what is deltaX and deltaY and how

Catch browser’s “zoom” event in JavaScript

Is it possible to detect, using JavaScript, when the user changes the zoom in a page? I simply want to catch a “zoom” event and respond to it (similar to window.onresize event). Thanks. Answer There’s no way to actively detect if there’s a zoom. I found a good entry here on how you can attempt to implement it. I’ve found

Advertisement