Questions tagged [markers]
An object used to indicate a position, place, or route
460
questions
0
votes
0
answers
33
views
Setting specific zooms when clicking on different circle markers from the same layer in Leaflet?
I'm creating a Leaflet Map with circle markers designating specific plots of forest land across the U.S. When the user clicks on a marker, a popup shows up with information about the plot. Since the ...
2
votes
2
answers
40
views
Using marker drag event instead mouseover on each polygan layer in Leaflet?
I want to use this leaflet example:
https://leafletjs.com/examples/choropleth/example.html
with some changes:
add a marker to map. i done it like this:
var center=[ 37.8, -96 ];
marker = new L....
0
votes
1
answer
76
views
Displaying layer marker only after feature found with search plugin in Leaflet
I have been playing with different Leaflet plugins. One I am especially interested in is the Leaflet search plugin (https://github.com/stefanocudini/leaflet-search).
I have been able to implement it ...
0
votes
2
answers
79
views
Highlight all markers with the same feature value upon marker click in Leaflet
I have created a map with several points in qgis2web.
I was wondering if there is a way to edit the final leaflet JavaScript code or HMTL in order to, when clicking on one of the points in the map the ...
1
vote
1
answer
69
views
Setting custom SVG icon for external GeoJSON point layer in Leaflet
I am attempting to make a public transport map of Berlin within Leaflet. I have exported layers from QGIS as GeoJSON and edited the file and added a var within a text editor. I am having some ...
0
votes
1
answer
71
views
MarkerCluster element popup does not appear when clicking a spiderfy element, instead unspiderfy is triggered in Leaflet
I have created a custom popup that appears whenever an element on my map is clicked. However, when spiderfy happens (when a marker cluster is clicked and the map cannot zoom to a level that would ...
1
vote
0
answers
135
views
MarkerCluster does not zoom when cluster clicked if it cannot reach a zoom level that will separate elements. How can I check for this? [closed]
I have a map with a maximum zoom level of 18. It is possible to have data points that are so close together that they are still clustered at zoom 18, and it is also possible to have multiple data ...
0
votes
1
answer
68
views
Property e.propgatedFrom.feature not available in marker cluster click event in Leaflet
In a Leaflet map, when a point feature is clicked I want to capture its attributes and pass them onto some variables. The point feature is part of a cluster.
The leaflet marker cluster is sourced as ...
0
votes
1
answer
966
views
Setting marker cluster icon color dynamically in Leaflet?
In a Leaflet map, when a school point is clicked it passes an id of that school and adds a student point layer specific to that school. The point layer is rendered on the map as marker cluster. So, ...
0
votes
1
answer
51
views
How to extract the GPS data of the markers that I added in my shapefile in QGIS?
I was wondering, is it possible to extract the GPS coordinates of the red markers that I added in a shapefile in QGIS?
1
vote
0
answers
277
views
How to add a point to an OpenLayers map
I have this:
let draw;
let save;
let dibujo;
let coordinates = [];
let old_coordinates = [];
let map;
const source = new ol.source.Vector({ wrapX: false });
const raster = new ol.layer.Tile({
...
1
vote
1
answer
323
views
Adding, removing and modifying markers in OpenLayers
I am making a web page with a map which requires some operations with markers/waypoints. I need to add markers to a map, one of them should move to a given point which would be updated each second/...
5
votes
2
answers
168
views
Create line-type symbology perpendicular to a segment in QGIS
I want to create a symbology (line type) for a point layer in QGIS. This line must be perpendicular to the segments of a polygon. I attach an image:
To do this I entered an expression in the rotation ...
1
vote
1
answer
91
views
Highlight marker when click and remove previous highlight in Leaflet
This is a follow up question to "Error changing marker icon when clicked in Leaflet".
I want to highlight a marker when clicked but at the same time reset previously highlighted marker. I ...
1
vote
1
answer
181
views
Error changing marker icon when clicked in Leaflet
I am trying to highlight a marker using a different icon when clicked. There are many posts about it but I am getting different error:
.setIcon is not a function.
This is my point data and the click ...
1
vote
1
answer
398
views
Use data from JSON file with Leaflet GeoJSON marker
I have a JSON file that I am fetching from and I would like to use the 'LAT' and 'LON' attribute to place markers. The problem is I am unable to see any markers appear. I think it's because the file ...
1
vote
0
answers
85
views
Adding markers to the map in standalone PyQGIS
I want to add markers to the map at geographical coordinates, preferably numbered labels as I need to identify different addresses given in a list. Later I want to export the map into PDF using ...
2
votes
1
answer
239
views
Create a toggle for users to place markers in Leaflet?
I am working on an webpage that uses Leaflet. The users can currently place a marker on the map when they click a specific area. I was wondering if there is a way to add a toggle so that the user can ...
2
votes
1
answer
98
views
QGIS: Markers of actual size
I'm looking for the best way to plot ship outlines to the correct size in QGIS.
I have a series of GPS positions inserted as points and I know the dimensions of the ship relative to the location of ...
2
votes
1
answer
54
views
How to display in QGIS a mountain saddle with a symbol which indicates the orientation of the saddle?
I exported mountain saddles (natural=saddle) from overpass-turbo.eu as GeoJSON.
I manged to display the saddles on a map with a symbol/marker like a point.
I'd rather like to display the saddles on ...
0
votes
1
answer
29
views
PyQGIS Rastermarker Maximum Size/Scale
I am trying to set a "Maximum" scale or size limit for a RasterMarker inside PyQGIS. - Qgis 3.22
self.marker = QgsVectorLayer("Point?crs=epsg:4326", "marker", "...
2
votes
0
answers
116
views
Rotating marker symbols using QGIS
I imported a delimiter text layer in QGIS with 4 columns (lon,lat,angle,norm). My goal is to show these points with a specific symbol (an arrow), oriented accordidng to the angle field.
I think I ...
1
vote
0
answers
500
views
Getting the source marker of an on click event in Leaflet? [closed]
I create multiple Markers in leaflet and bind an on click event handler to each of them, such as:
marker = L.marker(
geoJsonPoint.geometry.coordinates,
{ icon: someIcon }
)....
0
votes
0
answers
122
views
Converting data symbology from Fill to Marker
I'm new to QGIS and can't seem to find any way to convert data from "Fill" to "Marker" I have some data that I would like to overlay on a basemap as Markers which vary in size ...
4
votes
1
answer
168
views
Changing the shape of the overview marker in QGIS print composer
I was wondering if it is possible to change the marker in an overview while working on an atlas in print composer of QGIS.
Could I change the shape of the marker to the actual form of the polygons in ...
1
vote
1
answer
911
views
Folium: export coordinates from markers
I'm looking for a way to export the coordinates from markers on the map in folium. I know that one can get the coordinates over the current mouse position, but I would like to use this information for ...
3
votes
2
answers
351
views
Choose and save specific SVG markers in QGIS for different text values within the same field in the attribute table
I have a vector layer with different types of retail units on a map. For instance: hairdresser, baker, butcher, supermarket, etc. This information is stored within a same field column called "...
2
votes
1
answer
207
views
Creating Proportional Symbols with Leaflet
After converting the data in this table to geojson, I want to present it on the map by sizing it according to the "y_2021" values, but I get many errors like in the picture. Can you help me ...
0
votes
1
answer
515
views
Leaflet extra markers displaying icon but not marker
My code for formatting a JS Leaflet Extra Marker is like below where I've clearly given a marker color.
let parkMarkerIcon = L.ExtraMarkers.icon({
shape: 'circle',
markerColor: 'green',
prefix: '...
1
vote
0
answers
181
views
Is there any way to create a dynamic marker with a self-populating pie chart (within the marker) in QGIS?
I have to plot security incidents on a map, and while I have been having great success on QGIS with the general mapping, as well as using clusters to indicate more than one incident on the same ...
0
votes
0
answers
10
views
Outline image markersymbol in esri maps
I have a marker , i need to populate the same with ouline color ,
var bufferedArea = geometryEngine.buffer(results[x].geometry, 1);
var bufferedGraphic = new Graphic(bufferedArea, BufferSymbol);
map....
2
votes
1
answer
314
views
SVG or PNG image from web as maker symbol (QGIS)
Is it possible to use a image (SVG oder PNG) from web (http) to use it as maker icon in QGIS?
In my case: Hiking Trails in OSM sometimes have a symbol as way marking (wiki:symbol). Here is one: https:/...
4
votes
1
answer
133
views
QGIS Triangle marker size control
I have a series of points along a line and I want to project a 'beam' of acoustic energy from each one. I am looking to see how the beam might overlap. The beam is 0.5 degrees (+/- 0.25 degrees) and ...
1
vote
1
answer
139
views
Sort items of Leaflet List Markers plugin control?
I'm reading shapefiles with the leaflet library. I print the list of markers on the left in a list via the Leaflet List Markers library. I should sort the list of map markers that are shown to me on ...
2
votes
2
answers
667
views
Show markers on each point of GeoJSON polyline in Leaflet?
I have a line feature and would like to visualize all vertices. I am able to do this in QGIS (see screenshot) but I am wondering how I can do this in my Leaflet map?
My JavaScript code drawing a ...
2
votes
1
answer
887
views
Updating thousands of features in OpenLayers
I am a new to using OpenLayers and I am trying to properly show thousands (~5000) of features (ol.geom.Point) in a layer. I have a slider that represents years (year), and when I move the slider the ...
1
vote
1
answer
195
views
Maptiler and OpenLayers marks don't work well together
I am trying to use Maptiler together with OpenLayers. I followed the instructions in MapTiler site and cannot make the markers to show properly over the map. What happens is that the map features (...
2
votes
1
answer
2k
views
Showing popup with info about all markers in the clustered marker in Leaflet?
I'm using Leaflet PlugIn markercluster for leaflet https://github.com/Leaflet/Leaflet.markercluster to visualize Points.
My goal is to stop the process of "getting closer" to the points, so ...
2
votes
1
answer
691
views
Styling Leaflet markers according to property in GeoJSON file
I´m trying to place markers on a map according to some properties on the GeoJSON file, but for some reason it doesn't work.
I have a JSON file which have a property named Issue and that´s what I want ...
0
votes
0
answers
17
views
Automatically assigned marker colors for markers within a group too similar, anyway to get unique colors assigned?
Automatically assigned marker colors for markers within a group are too similar, is there anyway to get unique colors assigned?
I could go through the symbology of each marker and manually change them ...
1
vote
1
answer
724
views
Create custom legend control using L.ExtraMarkers.icon icons in Leaflet?
Is there any way I can add Leaflet Extramarkers to my legend? From what I googled, it seems I'll have to add an image of markers... however I was hoping I could use the ones I created.
var Icon = L....
1
vote
1
answer
640
views
Move and update a marker to a fixed coordinate
I used Leaflet and leaflet.draw-src.js with this code : http://bl.ocks.org/TetsuyaKimotsuki/0156c511e3217edf58beb206633308f8
After creating a marker, I want to move it to the coordinates indicated in ...
1
vote
0
answers
66
views
Isolated marker won't be displayed when filters are applied to be the single one amongst nearby clusters
I have markers all around the world, thousands of them. In some areas more close to each others, in other areas some even have a number of countries between them.
Let's take the SINGLE marker in ...
2
votes
2
answers
663
views
Saving "on mouse click" created markers to be available after reloading the browser in Leaflet?
I have found that when I manually add a marker, the marker stays on the map even after reloading the browser page. Example:
var marker = L.marker([51.5, -0.09]).addTo(map);
However, all of my markers ...
1
vote
1
answer
797
views
Changing label position based on circle marker radius in Leaflet?
I have a circle marker var circle = L.circleMarker(latLngCoords, { radius: 5, weight: 1, color: 'black' }).addTo(map); that changes the radius based on the map zoom:
map.on('zoomend', function (e) {
...
2
votes
2
answers
4k
views
Changing marker icon on click and then back to original state when click elsewhere in Leaflet?
I'm trying to get this function on my custom Leaflet map https://rodadagua.netlify.app/
I've found some very close examples and questions on here but being a complete novice unfortunately I have no ...
0
votes
1
answer
55
views
Set marker size equal to GPS accuracy with variable opacity?
I have an exported collection of iNaturalist observations which have latitude and longitude values, but also report the GPS accuracy in meters. This data is in the form of a csv file.
The accuracy ...
3
votes
1
answer
223
views
Making marker label rotate with marker using QGIS
I have an arrow marker (svg) that I use for photo location and direction on maps.
Under the arrow I want a label that is the number of the photo (photos by number are located elsewhere in a report). ...
1
vote
0
answers
432
views
Pop-Up position compared to the marker clicked in OpenLayers
I would like to center a pop-up on the marker where I click now it is moved to the right and above the marker.
I tried two methods:
Method 1:
var f = map.forEachFeatureAtPixel(
event.pixel,
...
6
votes
3
answers
440
views
Creating ellipse marker with line pattern fill in QGIS
How can I create an ellipse marker with line pattern fill in QGIS?
Like this:
I have already made simpler symbols, but there is no solution with the ellipse