Skip to main content

Questions tagged [mouse-position]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
897 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 ...
Kim Gunnarsson's user avatar
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(...
user759792's user avatar
1 vote
0 answers
382 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: ...
barteloma's user avatar
  • 1,704
1 vote
1 answer
219 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 ...
Javier G's user avatar
  • 113
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 ...
CaptainAhab's user avatar
  • 1,012
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/...
wei shiuan's user avatar
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; ...
Vishal's user avatar
  • 95
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 ...
jbrtrnd's user avatar
  • 101
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 ...
me2's user avatar
  • 53
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)
Alexis_A's user avatar
  • 752
3 votes
0 answers
176 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 ...
Adrian 's user avatar
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 ...
gwydion93's user avatar
  • 1,903
4 votes
1 answer
648 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 ...
Jochen Schwarze's user avatar
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....
Alexis_A's user avatar
  • 752
2 votes
1 answer
966 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 ...
spatialapp's user avatar
0 votes
1 answer
331 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 ...
Asanda Lamba's user avatar
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 ...
Beshman88's user avatar
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) ...
Jamie's user avatar
  • 1,694
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?
Snaileater's user avatar
  • 5,743
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....
Leehan's user avatar
  • 1,234
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.
Justin's user avatar
  • 71
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> ...
Sam007's user avatar
  • 4,405