Questions tagged [markers]

An object used to indicate a position, place, or route

Filter by
Sorted by
Tagged with
2
votes
1answer
48 views

Turn display of marker tooltips on/off in layer control in Leaflet

I want to add tooltip which will show magnitude for each earthquake epicenter and was able to make it but I have a problem that with many epicenters in one area tooltips are overlapped. My question is ...
1
vote
1answer
47 views

Search possibility to display filtered data with Leaflet.VectorGrid

I use Leaflet and Vectorgrid and I can display markers on the map. I have a geojson file of around 42 000 markers of places in Morocco and I would like to filter it to display only markers with a ...
3
votes
2answers
89 views

Get the bounding box for a QGIS point symbol

I'm looking to do some advanced label blocking for point features, based on the bounds of the symbol, rather than the point itself. It looks like I should be able to derive this from the ...
1
vote
0answers
44 views

Setting map view with 50 miles of radius of marker with mapbox

I have a mapbox map with a marker and I want to add a radius around it, say 10 miles. Now I can add a circle to the map, even though I do not want to, but I cannot get it to fit the screen. I have ...
0
votes
0answers
12 views

Error 'appendChild' when trying to open popup

I'm trying to customize the result text of Leaflet control geocoder let searchBox = L.Control.geocoder({ geocoder: googleGeoCoderProvider, defaultMarkGeocode: false, }).on('...
1
vote
1answer
43 views

Clone one marker into multiple categories in Leaflet

I use L.control for select layers. I want posted one point in different layer, like here http://www.gistechsolutions.com/leaflet/DEMO/sports/index2.html But here, different point from different ...
0
votes
0answers
59 views

React leaflet marker cluster using dynamic GeoJSON

I try to use react-leaflet-cluster inside my project. I want to display GeoJSON which contains some polygons and points. The only way it works is by passing static data to GeoJSON component like this: ...
4
votes
4answers
149 views

Turn centroid markers into points layer in QGIS

Using QGIS, I have polygons with data for multiple individuals. The individuals do not have x,y location data; they are simply located somewhere within the polygon, and the exact location is not ...
1
vote
1answer
43 views

Change marker icon on mouseover/mouseout in Leaflet

I have a map made with Javascript, on which there are numerous points and each one of them has a specific png marker. I managed to display all the markers correctly with the following code: var ...
0
votes
2answers
41 views

Leaflet marker not added to the map after click event on div element

I am trying to add a marker after performing a search, at a specific location given latitude and longitude. For some reason, the browser runs the code but does not add the marker to the map. //...
1
vote
1answer
23 views

Bind tooltip to a marker as a result of turf.js distance method in Leaflet

I'm trying to simply put the results of the distance variable in the tooltip but keep getting undefined. I don't understand what's happening. function findDistanceToCentroid(countyPolygon, ...
0
votes
1answer
16 views

How to change the icon image when clicking off the symbol layer

In Mapbox, I can successfully swap marker images when clicking on a marker. However, I can't get it to change back when clicking an empty space on the map. This causes the pop-up to close, but the ...
1
vote
3answers
148 views

Convert MultiLineString to one LineString

TLDR: I was not able to change the String type from MultiLineString to LineString and keep the line together but there is a way to still represent that as a symbology. So my problem is solved, but the ...
1
vote
0answers
12 views

Adding location Marker/Pins on Google heatmap

I found a great free tool from Google for creating a heatmap at - https://developers.google.com/maps/documentation/javascript/examples/layer-heatmap Is it possible for the above tool to have location ...
4
votes
1answer
102 views

Using data defined override for SVG-marker lines

After not getting enough detail on that part of my problem in this post, I am now trying in a separate question. I am unable to do data defined override with SVG markers on a line layer. I'm not sure ...
-1
votes
1answer
114 views

Circle with direction pointer in Leaflet

I am new to Leaflet and I am using leaflet 1.7.1. My need is to put some custom markers on map. I am currently using circles (as in: L.circle([lat, lon], {radius: rad}).addTo(map);) as markers (note ...
1
vote
0answers
20 views

Removing previous markers when new markers are added

Actually, I am using leaflet map to display city markers when country is clicked. Everything works fine. But, when I click on new country, the previous country markers remain on its position. Now, ...
0
votes
0answers
37 views

How To Show Labels marker From Database [duplicate]

I want to show labels in my maps, How to show label from database, permanent labels Here's my code: <!DOCTYPE html> <html> <?php session_start(); if($_SESSION['status']!="...
4
votes
1answer
57 views

Text from attribute table as symbols (font marker?) not showing correct in legend (QGIS)

I need to place symbols (point layer) with abbreviations from a attribute table. I solved that with "font marker" and data defined override as you can see in the screenshot below. The result ...
1
vote
1answer
85 views

Make point markers lead to a webpage link on click using Leaflet?

I would like to make my map markers lead to a webpage link on click but I'm not quite sure how to make that happen. I'm looking for a way to make my point marker lead to a link on click, rather than a ...
1
vote
1answer
64 views

Keep popup opened on spiderfy events with leaflet.markerClusterGroup?

With the markerClusterGroup leaflet plugin, calling the spiderfy function twice automatically closes the opened popup. This seems to be due to this piece of code in the unspiderfy function, that is ...
2
votes
1answer
232 views

Stop propagation of 'drag' event for marker in Leaflet

Is there a possibility to prevent Leaflet dragstart event from triggering just moment after start dragging a marker. According to Leaflet documentation all you have to do is: L.DomEvent.on(div, 'click'...
0
votes
1answer
32 views

Controlling links in Leaflet markers

How to make Leaflet markers go to unique link? Currently marker.on near the bottom gets the same link for each marker. I would like it to assign the corresponding link from var data for each. Cannot ...
1
vote
1answer
70 views

Creating categorized renderer with SVG symbols using PyQGIS

I'm trying to create a renderer with SVG symbols and I can't seem to find any example on this. Inspired from categorized renderer for regular symbols, I wrote this, but I get an error saying that the ...
1
vote
1answer
154 views

Leaflet MarkerCluster - extra marker underneath the cluster circle before it is exploded

I am programmatically adding new markers to my map with this code: const geojsonLayer = L.geoJSON(null,{ pointToLayer: function(feature, latlng) { return new L.marker(latlng) ...
1
vote
1answer
267 views

Custom marker for each category on Leaflet Mapbox

I am trying to place an image for each category I have but I can't get it to work. I am using GeoJSON to get the data from a Wordpress. I have tried many things but I don't know exactly where to ...
1
vote
1answer
101 views

Leaflet Circle Rendering as Marker

I'm trying to create a map with circles of different size radii, to this end I'm trying to use the Leaflet circle class. The issue I'm having is that despite specifying circle and passing a radius the ...
1
vote
2answers
165 views

Pop up on circle markers not working with polygons in Leaflet when using clustering

I am using two GeoJSON data, one for Multi-Polygons and another for markers (Point) in the following functions: var basegeomap; function loadbasemapstate() /*polygon data*/ { basegeomap= L.geoJson(...
3
votes
1answer
61 views

QGIS symbol placement

I have multilines (vector) with two SVG symbols. I use marker placement with interval and offset along the line. How can I set that if a symbol is some distance from the end of a line (symbolised by ...
1
vote
0answers
44 views

OpenLayers icon interaction: feature.get(...).getImage is not a function

I try to add a hover and click interaction to the points (displayed as marker icons) I show in my map. I want to display a border around the icon that is selected/hovered. I started by using the ...
2
votes
1answer
644 views

Marker position in Leaflet

I use 2 markers : Icon and Tooltip. The problem is that given the sames Lon & Lat they are not at the same position. The Icon position is right, the tooltip position not. This is my js code for ...
-1
votes
1answer
121 views

Adding distance markers to Leaflet track

I would like to add a kind of label every x km along a track. x would be a parameter depending on the total distance, zero meaning no marker. This is an example of track fly 210420. I get it using the ...
0
votes
2answers
663 views

When using react-leaflet, for Marker it shows <img src=[object Module]>

When using react-leaflet with create-react-app, for Marker it shows <img src=[object Module]> in console after changing the default icon as given in here - https://github.com/PaulLeCam/react-...
0
votes
2answers
99 views

Leaflet Icon not pointing directly on mouse position [duplicate]

I have a project where I need to add a custom marker when the user clicks on the map. I have created my own SVG in order to show this custom marker. The problem I am facing is that the marker doesn't ...
0
votes
0answers
50 views

Displaying icon callout when no text in data field using QGIS [duplicate]

I am using QGIS. On my maps, I have SVG Parking symbols. I need to use callouts to move them away. I have also a reference number beside many of these icons, but not all. How best to set this up? I ...
2
votes
2answers
114 views

Showing marker symbol even when no value in field using QGIS

In QGIS, I have been learning a few expressions to style my trail maps but still know little and am stumped on what to use to filter my symbol data. I am showing Parking locations on my map. I use a ...
0
votes
0answers
120 views

Finding nearest points based on distance and the user location and display on a Folium or Leaflet map?

I want to display the nearest 'services' points using the distance function on the Folium map. I need to pass the user location from the form and find the nearest services based on the current ...
1
vote
1answer
170 views

Adding labels after meeting a zoom threshold in Leaflet

I'm making a map in Leaflet and I have up to two labels per marker: var redIcon = new L.Icon({ iconUrl: 'https://raw.githubusercontent.com/pointhi/leaflet-color-markers/master/img/marker-icon-2x-red....
0
votes
0answers
32 views

Drawing custom markers on Mapbox

I'am using mapbox-gl-js draw, and I need to draw custom markers inside the map. I can't find anyway in the documentation that talked about this issue. Work around is needed, any ideas?
1
vote
1answer
32 views

Customising a marker after performing a spatial search query

I'm have a geodjango app that uses leaflet for a front-end. I have integrated the search function on the front-end to be able to search a customer location in real-time, of which the code below does ...
0
votes
0answers
65 views

How to integrate and plot both heatmap and quivers/arrows for different timestamps using folium?

I want to plot wind velocity heatmap and wind direction quivers together for different timestamps on top of a map using folium. I could not find any plugin for this integrated operation. Can you ...
1
vote
2answers
867 views

Changing leaflet circle marker colour and size when clicked upon

I am currently using GIS to plot train stations within Wales I have currently made a custom circle marker to point to that of the stations latlng successfully adding it to the map. I am wanting the ...
-1
votes
1answer
292 views

GeoJSON custom marker for different data sources

I need help how to show markers with two different colors for two different GeoJSON data sources. Here's first source geojson.php: { "type": "FeatureCollection", "...
2
votes
1answer
56 views

Changing symbology from simple marker into a vector (print of a building)

I've got a question about changing the symbology of a certain rule-based layer. See below as to the current simple marker: As you can see the house is given this grey color because of the added 'topo'...
3
votes
2answers
704 views

Adding GeoJSON properties when creating marker in Leaflet

I used a manual marker input development under Leaflet found on this website : http://www.gistechsolutions.com/leaflet/DEMO/basic/addmarker.html I have added two properties to the markers: name and ...
4
votes
1answer
202 views

Removing and adding markers every 5 seconds freeze the browser after a several minutes

I am creating around 300 markers on Leaflet map and every 5 seconds I am getting new data from the server and I'm removing markers from the map and adding markers with new data. But the problem is ...
3
votes
1answer
189 views

QGIS 3 - default marker symbology

Working with QGIS3 (QGIS 3.2.3) Is it possible to change what the default point symbol is when adding a new point layer to a new project? Context: I have to work with massive point layers very often. ...
0
votes
0answers
86 views

Search possibility to create markers with Leaflet, with name and description

I am looking for a possibility to create markers on a map with Leaflet. These markers will have a name and a possible description. I have seen on the website of the University of Ben-Gurion, a ...
0
votes
1answer
1k views

Is there a way to add custom ids to Leaflet markers derived from a GeoJSON file?

I'm fairly new to JavaScript and I'm currently trying to connect each of my Leaflet markers to a certain portion of text in another div so that when a user clicks the marker, the site will auto scroll ...
1
vote
1answer
265 views

Clustering markers from GeoJSON after adding data to layer in Leaflet

I am trying to add clusters in my leaflet map. I use overlayMaps which helps to choose one of the active layers, and in that case I want my marker to be a cluster. But it is not clustering. Again ...

1
2 3 4 5
9