Questions tagged [markers]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
19 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
121 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
11 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
89 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
62 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
17 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
21 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
55 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
72 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
48 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
169 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
31 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
52 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
134 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
208 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
66 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
128 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
55 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
39 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
397 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
104 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
551 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
90 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
109 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
106 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
133 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
26 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
24 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
60 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
749 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
246 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
615 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
159 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
172 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
19 views

How to Change and Display Marker Color and Marker Icon in GeoJSON Leaflet? [duplicate]

I have two files, .geojson and .html format, I want to use and display marker-color and marker-symbol (marker icon) in .geojson file. How to? I've displayed the basic blue popup and marker with the ...
0
votes
0answers
76 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
231 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 ...
0
votes
1answer
146 views

RemoveMarkers() is not working for PruneCluster markers in Leaflet

I have a set of markers clustered with PruneCluster plugin. The data of these markers is rendered from GeoJSON layers, the way to do it is like this: var propsAmp = amphibiens.features var ...
4
votes
1answer
108 views

Prevent marker from moving in QGIS when zooming

I was wondering how I can prevent the movement of my markers when zooming out in QGIS. I have this sample image of Auckland on a larger scale where everything seems to be ok: Then I zoom out a little ...
1
vote
1answer
379 views

Cluster GeoJSON data with PruneCluster

I'm trying to create a cluster with categories using PruneCluster around my GeoJSON layers. As the example in GitHub They are creating randomly some markers then adding them to the cluster. I did the ...
0
votes
1answer
63 views

What do the acronyms OBT and OCIP mean on a survey plan?

When looking at survey plans for British Columbia, Canada, there are various acronyms used to describe survey markers. Ones that I do know include: BT - bearing tree CIP - capped iron post PP - "...
2
votes
2answers
364 views

Removing individual Leaflet markers added through L.geoJSON

I'd like to click on a button in a sidebar outside a Leaflet map and remove a marker associated with that button. But when I bulk add data through L.geoJSON, the function appears to not create ...
0
votes
0answers
372 views

How to add points (marker) in Mapbox real time geolocation with Cassandra database?

I am now using Angular in web and ionic in mobile with spring-boot for communicate between web and mobile and I use Cassandra for database. I get longitude and latitude of mobile geolocation in real ...
0
votes
0answers
46 views

How do I create more makers with more unique popups?

I am attempting to create a map with Leaflet that has unique files attached to different popups. I can generate a marker with the popups I want but I can not generate a second marker with different ...
1
vote
1answer
1k views

Assign Markers to Polygons in Leaflet

I want to visualize polygons in Leaflet. I do this via L.geoJson, no problem here. But each polygon shall has it's own set of Markers, which should be dispayed, when the polygon is clicked and hidden, ...
1
vote
1answer
245 views

L.divIcon and aria-label attribute

I have three type of layer and for each layer a different marker, which I styled in CSS. The problem now is, that if someone uses VoiceOver or something like this, it's reading the 'html'. In my case, ...

1
2 3 4 5
9