Questions tagged [mouse-position]
The mouse-position tag has no usage guidance.
22
questions
1
vote
0
answers
877
views
Only get pointermove event from OpenLayers when mouse button is pressed
I'm trying to get hover position with 'pointermove' event from OpenLayers Map.
const source = new OlXYZ({
url: 'https://tile.osm.org/{z}/{x}/{y}.png'
});
this.layer = new ...
0
votes
2
answers
1k
views
OpenLayers MousePosition control listening to position, using generic change event
I want to add a MousePosition control, without using a HTML-control as target, but just put it in a variable.
map.addControl(new ol.control.MousePosition({
coordinateFormat: function(...
1
vote
0
answers
372
views
How to change Openlayers MousePosition control as mouse up?
I am using openlayers 6.x and Mouse position control.
this.control = new MousePosition({
coordinateFormat: createStringXY(this.precision),
className: this.className || "mouse-position",
target: ...
1
vote
1
answer
214
views
pyqgis: Get the Click on canvas standalone app
I added a subwindow in a MDI area containing a QgsMapCanvas.
Defined the clic tool QgsMapToolEmitPoint.
But when I click on the canvas there's no response, al least it should print 'clicked'.
¿¿May ...
8
votes
3
answers
3k
views
Mouseover actions on symbology in QGIS
I have a layer in my system that displays nautical sectorlights.
If sectorlights are close together the symbology overlaps, wрich I don't want.
I would like to see the star at all times, but see the ...
6
votes
2
answers
19k
views
Leaflet mouse move to get coordinate
I hope to be able to display the coordinates on the map when the mouse moves, not to use marker.
But my code can't run successfully.
This is my code:
<html lang="en-US" xmlns="http://www.w3.org/...
4
votes
1
answer
7k
views
GetFeatureInfo on mouse hover on feature in OpenLayers 3
I am able to get popup onclick on the feature but want to get popup also on mouse hover on the feature (polygon,point). Can anyone help me out.
For onclick I used below code -
var feature_onClick;
...
0
votes
1
answer
1k
views
Mousemove on Geoserver Tile with Leaflet
Coming from intensive usage of Leaflet with open source tiles and remote data layers (multipolygons, markers, etc...) retrieved from a PostgreSql database, I wanted to try Geoserver capabilities to ...
1
vote
1
answer
129
views
no MousePosition() while using FullScreen() in ol3 map
The problem is: the MousePosition() is working and shown. But in FullScreen it's not!?
I tried Rotate() and ScaleLine(). Both are working in FullScreen() but i never saw any coordinates.
I'm using ...
4
votes
2
answers
4k
views
OpenLayers 3 - Feature Popup without Jquery/Bootstrap
How do you create tooltips (context) on OpenLayers 3 map, using standard Javascript and flat CSS. (No extra libraries)
3
votes
0
answers
170
views
Video Game Controller as a mouse to use in GIS [closed]
I work using ArcFM mapping electric utilities and am rather new to GIS, my question is would it be possible to hook up a video game controller like an Xbox controller to my computer and use it as a ...
0
votes
0
answers
88
views
When the mouse moves on the grid, so does the corresponding point on the map
I am trying to create a specific functionality in mapping application.
The application currently lets users draw a profile line on a map and click run. The map then takes a DEM file and creates a ...
4
votes
1
answer
625
views
QGIS status line wrong coordinate format
I have a QGIS [2.14.5.LTR] project with crs EPSG:31468 which has metric units. In the status line at the bottom of QGIS main window the coordinates are displayed in degree lat/lon:
However, when ...
3
votes
2
answers
8k
views
OpenLayers 3.10.1 - Feature Popup
I saw many examples of Feature Popup activated when the cursor is moved over a feature for OpenLayers 2.0 but none for OpenLayers 3.0.
Does anyone know how to do the following : http://jorix.github....
2
votes
1
answer
960
views
Using OSGB (ESPG: 27700) projection in Openlayers with MousePosition
I am trying to display Ordnance Survey Grid references (ESPG:27700) on a set of BaseMaps with the MousePosition control.
From looking through the OpenLayers samples, and this forum, samples I have ...
0
votes
1
answer
330
views
GeoExt Toolbar Mouse Position
I am new to GeoExt and OpenLayers world. I am currently using OpenLayers 2 and GeoExt 2. I want to add a mouse position on the toolbar. Currently my mouse position is on the lower right corner of the ...
2
votes
1
answer
2k
views
Add a label to a mouse pointer
I am drawing a bearing line using a line with max vertices of 2, I have the calculations for figuring out the actual bearing from the lat lon of the original point and the mouse latlon
I want to ...
1
vote
0
answers
2k
views
Google Maps and Displaying Coordinates while drawing?
Currently we are doing this on a project:
google.maps.event.addListener(map, 'mousemove', function (event) {
displayCoordinates(event.latLng);
});
function displayCoordinates(pnt) ...
0
votes
2
answers
2k
views
Is there a way to take control of the mouse pointer using python in QGIS?
I would like to take control of the mouse pointer in QGIS (for example constraining it to a given extent...) Is there any way to do that using PyQGIS?
0
votes
1
answer
2k
views
OpenLayers 2 mousePosition projection on the fly
I'm displaying coordinates in epsg:3857 using ol.control.MousePosition() with OSM.
I'd like to convert these on the fly in another epsg:2154.
I call in the header :
<script> src="http://cdnjs....
7
votes
1
answer
2k
views
How do I allow users to select features with the mouse?
I am using PyQGis API to create a custom application.
How do I allow users to select features with the mouse? Is there a mapTool for this? Surely with a product as powerful as QGIS there must be.
2
votes
1
answer
5k
views
Trying to set the OpenLayers MouseOver position to be outside the Map
This is my code and I am trying to obtain the MouseOver to be displayed outside the Map container.
<!DOCTYPE html>
<html>
<head>
<title>My Map</title>
...