Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [markers]

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

1
vote
3answers
170 views

Changing colour of imported SVG icon in QGIS 3.4

I have imported my customised icon (which was obtained through the .jpeg image conversion) for point layers using an SVG file. This works well except for the fact that the original colour was ...
1
vote
1answer
33 views

Add point markers in QGIS 3.4 without coordinates

I am new to QGIS and trying to insert svg markers into a map I've been creating. I am struggling to find resources on my exact problem. I read about creating a new georeferenced shapefile and layering ...
0
votes
0answers
18 views

How do I call point marker icons from geojson data in leaflet

I am trying to make a map for school with unique icons for each point which I have stored in my geoJSON under "iconURL" as .png. I don't exactly know how to add them to my map. The following code ...
1
vote
1answer
45 views

Geting fitBounds and removeLayers to work in Leaflet

I am making a Leaflet map that gets its marker and popup information from a database. I have a dropdown that allows me to retrieve a subset of the entire database based on category. The drop-down and ...
0
votes
1answer
22 views

Add a popup to leaflet but only on click

is there a way to add a popup to a marker but only show it when it is clicked? As it seems to be default to show it when one is loaded? This is no good when markers are getting updated? Currently ...
1
vote
1answer
53 views

qgis2web map: performance issues with (clustered) point features

How do I get a point features layer containing roughly 2800 labeled features to perform smoothly when exported (and converted to GeoJSON) with qgis2web? Specifics: I use qgis2web 3.4.0 and QGIS 3.2.3 ...
2
votes
0answers
38 views

Using web images as markers in qgis

I'm attempting to follow along with this tutorial on using web images as markers within QGIS. I'm using static web-linked images, not webcams as in the tutorial. The code seems to be working ...
0
votes
0answers
9 views

Disperse markers - trouble with input file?

I had an excel sheet listing addresses that I imported into ArcGIS and geocoded which created a File Geodatabase Feature Class of all the points. I am trying to display the map where it disperses ...
0
votes
0answers
25 views

How add sub rules to existing symbol legend ? Python Qgis

I want to combine rules for marker form and sub rules for filled color. I don't know how I can obtain the same thing that my picture show with a python script. Here is my code for each of them: from ...
0
votes
2answers
79 views

OpenLayers 4 - Absolute Icon Size

I need to display many images (icons) on an OpenLayers map. I'm using v4.6.5 Previously, I was simply displaying 1 icon, and I was using PHP on the backend to determine a proper scale factor. This is ...
1
vote
0answers
79 views

Multiple markers on Google Maps using JavaScript, PHP and SQL

I am trying to query the MySQL database that has a table with firstname, longitude, latitude in it. I want to get the longitude and latitude and display them as multiple markers with the firstname as ...
0
votes
1answer
36 views

Leaflet - Hide marker before zoom shows marker?

I have a few thousand markers which are grouped in feature groups which i show depending on the zoom level. At the moment i run the the show/hide function for each feature group after the event zoom ...
0
votes
0answers
19 views

How to create markers based on database and Add them to Layers in Esri Map

I am trying to create three layers each with a separate set of markers based on database data from my data base. I am not sure how to do this as I am very new to this. I can get the one marker but it ...
0
votes
0answers
33 views

Spiderfy all Leaflet markerClusters with fewer than 5 markers

I am making a Leaflet map using markerCluster.js. I would like to make all clusters with fewer than 5 markers automatically "spider", regardless of the zoom level. For example in the image below, I'd ...
1
vote
1answer
50 views

Creating markers perpendicular to different lines in QGIS

I want to create markers on different lines and this markers should have always 90° on the line. I used the simple marker, with a 90° angle, but this doesn't work for every line. How can I get a 90°...
0
votes
0answers
46 views

Drawing extra markers on a leaflet map with addDrawToolbar in R

I have added a Toolbar on a leaflet map to make it easy for non-coders to draw markers. For this purpose I make use of the following R packages: leaflet, leaflet.extras, and shiny. I have a couple ...
3
votes
0answers
98 views

Markers with customs angle values

I'm trying to make some markers spinnable using this : target = document.getElementById("mapid"); target.ondragover = function(e){ e.preventDefault(); e.dataTransfer.dropEffect = "move"; }; ...
0
votes
1answer
71 views

Openlayers only Popup for Marker but NOT for Polygon [duplicate]

I only want popups for the layer of the markers (icon), but not for the layer of the polygons (WFS). var defaultStyle_polygon_1 = new ol.style.Style({ fill: new ol.style.Fill({ ...
1
vote
1answer
54 views

How to slow down mouse before modifyend with openlayers3

I have a map with a draggable marker (ol.style.icon in fact). There is a strange issue: If I try to move marker, it is like trying to reel in a marlin but after a zoomin/out, marker naturally slows ...
2
votes
1answer
47 views

QGIS Draw dynamically marker's heading from field in a postgres database

General description: I am using QGIS as quick visualization tool, where I make a "PostGIS" database layer and I see user generated events. Table structure as follows: Id | time_of_event | ...
1
vote
0answers
108 views

Making custom markers resizable in Leaflet?

This fiddle (from Stefan_Fairphone) is a quick example of what I need to do for a project. But i need to add two features for these custom markers: make them scalable and spinnable. I'm trying to ...
1
vote
1answer
57 views

Different SVG markers for different attributes

I am using QGIS 3.0. I want to use different angle arc SVG markers depending on the data in the attribute table. For example, some points require a 60-degree marker, other a 35-degree marker etc. to ...
5
votes
2answers
89 views

Fail to open SVG graphics as SVG Marker in QGIS

I have an SVG graphic which should be placed in certain locations on my map in QGIS 2.18. I can open it through Adobe Photoshop, Inkscape, Chrome, it even obeys Internet Explorer. As for me, ...
1
vote
0answers
46 views

Popover displacing from position when zooming OpenLayers 3

I have some markers in position with OpenLayers 3, and now I am trying to get the Popover onto them. The problem is that when zooming in/out, Popovers don't remain with the marker. I want to make it ...
0
votes
1answer
191 views

Dynamically assign feature properties on L.marker popup interactions

I have a Leaflet based map on which a user can click to create a marker. Then, if one clicks on the marker a popup is opening, where one can change text in a textarea, activate the camera of the ...
1
vote
0answers
18 views

Marker symbols from a WMS not behaving with a rotated data frame?

I have unchecked "Rotate marker symbols with dataframe" in ArcGIS, which works as normal for marker symbols from locally sourced shapefiles, however, the WMS layer marker symbols do not respect the ...
0
votes
1answer
176 views

How can I stop 'drag' moving my whole map in Leaflet.

I have a leaflet map, containing a tileLayer, and a layerGroup In the layerGroup, I plot circleMarkers, and then connect them with a polyline. Though the markers are defined as draggable, I get no ...
0
votes
1answer
165 views

How can I create layers depending on a property?

I have a .js file with coordinates for internships: var internships = [{ "features": [ {"type":"Feature","properties":{"category":"entretient","Name":"green"},"geometry":{"type":"Point","...
1
vote
0answers
76 views

Feature is undefined when click on map

I try to get feature from map that I add route and marker already but when I click at it. I get nothing from it. Do I miss something? I used typescript(angular 4) this is map declare: ngOnInit() { ...
0
votes
1answer
605 views

how to change color of all circlemarkers in leaflet.js

I have a leaflet map that has the data loaded as points, using: pointlayer = new L.GeoJSON(geojson, { pointToLayer: function (feature, latlng) { return L.circleMarker(latlng, ...
0
votes
0answers
208 views

Leaflet - Popup description anchor on top of Marker

I am using Leaflet.js and ingest a Geojson file in order to create Popups and associate them with (geojson) Features. For the icons i use this library (~>Leaflet.ExtraMarkers). Below you can see the ...
0
votes
1answer
31 views

Leaflet draw - adding actions to prefilled markers

There are a bunch of markers which need to be loaded by default. The user can edit these markers and their corresponding properties in the popup window. The user can also add new markers and fill in ...
0
votes
0answers
175 views

Mapbox GL JS Marker Collision?

I want to make it such that my markers at higher zoom levels are replaced by one marker. This is similar to the cluster function, which I have also not been able to make work either. I believe that ...
0
votes
0answers
59 views

Using external data source with Leaflet / GeoJSON? [duplicate]

First of all, I've been looking everywhere and I have not found a functional solution. I need to display the points from a data file exported from Qgis. I tried Qgis2web, but I'd like to put ...
3
votes
0answers
107 views

Leaflet Marker placement with minimum distance [closed]

I am using Leaflet and plotting huge marker. There are a lot of places where the markers overlapping each other like this (Don't confuse to see Google map layer. I am using leaflet.) Is there any ...
6
votes
1answer
127 views

“Orphan Symbol” problem with QGIS marker line symbol

I'm experiencing a problem with the way QGIS Essen 2.14.12 draws a marker line symbol at the end of a polyline. It only occurs sometimes, and sometimes moving (even slightly) the mapping within the ...
2
votes
1answer
951 views

Leaflet populate L.divIcon marker's html option from feature properties

I am using Leaflet.js to make a timeline-based playback of marker locations, using a Leaflet Playback listed on Leaflet Plugins. I am defining an L.divIcon earlier in my code: var busIcon = L....
0
votes
1answer
71 views

Avoiding pre-opened popups in Leaflet?

I'm using Leaflet to show some info for points: var m1 = L.marker([20, 90], {icon: picture}).addTo(mymap); m1.bindPopup('<h1 class="center">Caption</h1> <br><b>Info: </b>...
0
votes
1answer
689 views

Leaflet - resize marker at same time as map zoom animation

I have a marker (L.divIcon) object in Leaflet. The html content of the marker is an svg. I'm looking to have the divIcon resize when zooming the map. I've got the necessary code to resize the icons ...
1
vote
2answers
24k views

error message 'module' object has no attribute 'MarkerCluster'

I'm trying to create a very simple leaflet/folium map using python. It works without marker clusters (all the relevant locations show up on the map), but when I try using MarkerCluster I get the ...
1
vote
1answer
556 views

Leaflet tooltip classname not applying

I am trying to overwrite the styling of the leaflet tooltips on a map but it does not seem to use my CSS style. I am using angular and electron but as far as I know neither should cause any changes to ...
3
votes
0answers
343 views

Is it possible to color the cluster base on marker color?

So far, I've been able to generate the marker color base on query from my MySQL DB. What I would like to attempt now is to cluster those markers with the dominant marker color. For example, if I ...
0
votes
1answer
505 views

Leaflet L.DomEvent.On returning an error on marker click

I used two button in my marker popup. I need to trigger a function by clicking on marker. I used the following code. Its working fine. But when I am clicking on marker it's returning an error in ...
2
votes
0answers
213 views

R Leaflet plot ship direction

I want to plot ships and its direction on the map using R Leaflet. I tried to represent a ship as a circle and its direction with a line from the center as in the following picture. The problem is ...
2
votes
1answer
733 views

Highlight L.divIcon on mouseover or programmatically in Leaflet map

I want to highlight L.divIcon svg markers on mouseover and/or from an "outside action" like pressing a button. here is a simplified testcase https://jsfiddle.net/sxvLykkt/5/ Markers are generated ...
0
votes
1answer
1k views

Multiple Markers on OpenLayers using Javascript

Using Openlayers 2.13, I am trying to set up multiple markers for New expatriates in our suburb. As a new user of both JS and Openlayers, I am stuck - I have managed one marker but cannot add another ...
4
votes
2answers
150 views

How to make QGIS place markers at greater distances evenly?

I am trying to get waterlines visualized with arrow lines, but when zoomed out I can't get them to be spacious enough. So as you can see on the markerline settings, i set 100 pixels as an interval, ...
3
votes
1answer
192 views

How to get the number of clusters and its markers with Leaflet?

I would like to know the number of clusters and its markers as soon as I open the map without zoom-in. I'm using: Leaflet 1.2.0 Leaflet.MarkerCluster 1.2.0 Firefox 57.0.1 OS/Platform On the image ...
2
votes
1answer
385 views

Cluster GeoJSON (linestrings and markers) into circles using Leaflet

I have different hiking routes (in geoJSON format) displayed on a map. They contain linestrings, multilinestrings and markers. Currently, it looks like this: http://www.hikethisway.today/Sweden.html. ...
1
vote
1answer
956 views

Leaflet mouseover popup makes whole map move

I was following a couple of examples to get my leaflet map to show the popup for the marker when I hover over it. This example to show popup on hover. I also used example to do leaflet marker ...