zooming

Javascript OpenLayers before zoom event listener

隐身守侯 提交于 2021-02-06 11:22:45
问题 I am trying to set up OpenLayers to not display the vector layer just before a zoom starts and make it reappear after a zoom ends. I have the zoom ends part already established like this: map = new OpenLayers.Map('map_element', { eventListeners: { "zoomend": mapEvent}}); function mapEvent(event) { if(event.type == "zoomend") { hide_vector_layer(); } } But I don't see any kind of event listener for the start of a zoom in the documentation. There is a "movestart" which covers moving, panning,

Javascript OpenLayers before zoom event listener

对着背影说爱祢 提交于 2021-02-06 11:22:33
问题 I am trying to set up OpenLayers to not display the vector layer just before a zoom starts and make it reappear after a zoom ends. I have the zoom ends part already established like this: map = new OpenLayers.Map('map_element', { eventListeners: { "zoomend": mapEvent}}); function mapEvent(event) { if(event.type == "zoomend") { hide_vector_layer(); } } But I don't see any kind of event listener for the start of a zoom in the documentation. There is a "movestart" which covers moving, panning,

Is there a way to start a plot already zoomed on a specific area using plotly?

两盒软妹~` 提交于 2021-01-27 04:49:00
问题 I have a scatter plot made with plotly (specifically offline plotly with the Python API on a Jupyter Notebook) and as you know, plotly makes it easy for the user to zoom and frame specific areas, but I'd like the plot to start already focussed on a specific area of my choosing. I can't find anything relevant in the documentation (maybe because I don't know where to look or what terms to look up). Is there a way to do this, and if so, how? And how does the setting differ when using subplots

Is there a way to start a plot already zoomed on a specific area using plotly?

徘徊边缘 提交于 2021-01-27 04:47:11
问题 I have a scatter plot made with plotly (specifically offline plotly with the Python API on a Jupyter Notebook) and as you know, plotly makes it easy for the user to zoom and frame specific areas, but I'd like the plot to start already focussed on a specific area of my choosing. I can't find anything relevant in the documentation (maybe because I don't know where to look or what terms to look up). Is there a way to do this, and if so, how? And how does the setting differ when using subplots

如何使用Google Maps API禁用鼠标滚轮缩放

社会主义新天地 提交于 2020-10-02 11:33:50
问题: I am using Google Maps API (v3) to draw a few maps on a page. 我正在使用Google Maps API(v3)在页面上绘制一些地图。 One thing I'd like to do is disable zooming when you scroll the mouse wheel over the map, but I'm unsure how. 我想做的一件事是在地图上滚动鼠标滚轮时禁用缩放,但我不确定如何。 I have disabled the scaleControl (ie removed the scaling UI element), but this doesn't prevent scroll wheel scaling. 我已禁用scaleControl(即删除了缩放UI元素),但这不会阻止滚轮缩放。 Here is part of my function (it's a simple jQuery plugin): 这是我的函数的一部分(它是一个简单的jQuery插件): $.fn.showMap = function(options, addr){ options = $.extend({ navigationControl: false, mapTypeControl: false,

How to zoom into a GraphStream View?

做~自己de王妃 提交于 2020-06-15 19:27:50
问题 In GraphStream visualizations Graphs can be dense. The enableAutoLayout method gives a global visualization of the Graph and so zooming is needed. How to zoom into a GraphStream View? Graph go=...; Viewer viewer = new Viewer(go, Viewer.ThreadingModel.GRAPH_IN_ANOTHER_THREAD); viewer.enableAutoLayout(); View view = viewer.addDefaultView(false); swingNode.setContent((JComponent) view); 回答1: I tried to find a way to zoom to the mouse cursor using the mouse wheel and stumbled across this thread,

How to set iOS WkWebview zoom scale

生来就可爱ヽ(ⅴ<●) 提交于 2020-05-29 07:35:25
问题 My iOS app has a WKWebView component which shows an full-screen WebApp (1280x800) with different aspect ratio and size then a iPad (4:3, 1024x768) I want to set the WkWebView zoom factor to 0.8, to fit it in landscape mode. How can I control the zoom scale of the WkWebView? I tried to set the the zoom scale of the WkWebView scrollview, but it doesn't scale for values below 1, even when I set the minimumZoomScale accordingly. [self.webView.scrollView setMinimumZoomScale:0.8]; [self.webView

EaselJS - broken panning on zoomed image

故事扮演 提交于 2020-05-15 05:58:22
问题 I'm having trouble fixing panning in this example - it works fine unless you move the zoomed image and then zoom again(offset is set to default value and the view jumps to initial position - http://jsfiddle.net/p2Qzg/). Any ideas on how to fix that? I've been trying to solve that for three days now, without any good results. var canvas= document.getElementById("myCanvas"); canvas.width = window.innerWidth; canvas.height = window.innerHeight; var stage = new createjs.Stage("myCanvas");

EaselJS - broken panning on zoomed image

我的梦境 提交于 2020-05-15 05:58:06
问题 I'm having trouble fixing panning in this example - it works fine unless you move the zoomed image and then zoom again(offset is set to default value and the view jumps to initial position - http://jsfiddle.net/p2Qzg/). Any ideas on how to fix that? I've been trying to solve that for three days now, without any good results. var canvas= document.getElementById("myCanvas"); canvas.width = window.innerWidth; canvas.height = window.innerHeight; var stage = new createjs.Stage("myCanvas");

Zooming into a Canvas without modifying the size of specific child controls

大憨熊 提交于 2020-04-10 08:52:25
问题 So I realize that I am venturing outside of the intended use of a Canvas here and will likely have to come up with a more manual solution. However, not being overly experienced in WPF I was hoping that there may be some solution which would allow me to continue using a Canvas control and the features it gives you for free. The issue revolves around a Canvas which is used to zoom in and out of an image and some number of child controls that belong to the Canvas. These child controls are to be