Stack Exchange Network

Stack Exchange network consists of 175 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

0
votes
1answer
39 views

React-Leaflet: Marker has wrong position after zoom out

When I show a marker in the center of the map it is OK. But when I zoom out, the marker is like staying at the same place. Finally its position is very wrong. Why is it not moving together with the ...
2
votes
1answer
64 views

QGIS very slow and stops when increasing points size / number

I used the "graduated" style option to represent data by year. Then for each year I used this method with a custom function to increase point size according to the number of points at the same ...
1
vote
2answers
56 views

Bouncing markers when hover over sidebar

I would like the markers on my leaflet map to bounce when hover over corresponding list-item in sidebar. How to connect markers and list-items. List-items and popups all generated dynamically, their ...
1
vote
0answers
53 views

OpenLayers Icon with ngClick

I am working off the OpenLayers Icon Symbolizer example (https://openlayers.org/en/latest/examples/icon.html) to create an equivalent to a Google Maps marker new google.maps.Marker({...}) With ...
0
votes
1answer
80 views

How to cluster markers using the “Geojson-dashboard” in Leaflet JavaScript

I know how to use Leaflet.markercluster, but for some reason I can't use with geojson-dashboard framework template for Leaflet (http://fulcrumapp.github.io/geojson-dashboard/). But I have a simple ...
0
votes
1answer
63 views

Open the popups of all markers that are visible on the map with a zoom > 10

I need to open all the markers that are visible on the map at Zoom > 10. I am using leaflet.markercluster plugin. Init map: initMap() { this.map = L.map('map', { center: [55.55, 37.61], ...
0
votes
0answers
81 views

Leaflet markers at same geo location (ClusterGroup)

I have a map created with leaflet with different markers. Sometimes the markers have the same (1:1) geo position. I have already tested the great addon clustergroup, but I need the function to be ...
0
votes
0answers
69 views

How to save marker and polyline in database?

I want to store marker and polyline in the database. In this script, I have 3 functions, that is to draw a polyline, marker and the point of destination. Can anyone fix my script below? var map; var ...
1
vote
1answer
63 views

Adding Altitude to a marker in WebGLEarth

Im trying to add an altitude to a marker in WebGLEarth but i cant figure out how to do it. I cannot find anything in documentation either. The idea is that my markers act as satellites so i need the ...
0
votes
1answer
1k views

OpenLayers 5 add multiple markers

I'm using OpenLayers 5 to show a map and add markers to it. I can see the map without any problems but only the last marker is shown. I saw an answer about using .clone() method on the marker that's ...
2
votes
1answer
90 views

How to create circles around points

I'm new to QGIS so please bear with me. I'm using QGIS 3.6. So I imported a CSV-file with latitude longitude coordinates (WGS 84), created markers and set them to have different colors (to show ...
0
votes
1answer
111 views

Changing marker shape to circles in Leaflet

I was wondering how to change the default marker shape in a Leaflet map to circles $.ajax("data/StatesPopulation.geojson", { dataType: "json", success: function(response){ ...
1
vote
1answer
164 views

Highlighting selected geojson feature and return to previous state when another one is selected using Leaflet?

I've a map with a geojson layer containing markers, polygons and lines. I made a module so that when a feature is clicked, its properties are displayed in a frame and not in standard Leaflet popup. ...
4
votes
1answer
502 views

What are possible values of iconSize in Leaflet Marker Icon Options?

I have a very standard script: var redIcon = L.icon({ iconUrl: '1.png', iconSize: [10, 10], // size of the icon iconAnchor: [5, 5], // point of the icon which will correspond ...
1
vote
2answers
375 views

Leaflet - How to show feature properties in a box that is not a popup?

Popup giving features properties are interesting but I would like to make a side bar where properties of a clicked feature would show. I've got the traditional code for displaying geojson features ...
1
vote
1answer
213 views

Changing marker symbol in Leaflet AJAX

I have got a .json file to display in Leaflet map.The points are shown with custom blue dot markers. I cannot get to change them.How do I get to change the symbol? var greenIcon = L.icon({ ...
1
vote
0answers
143 views

Including iframe in tooltip in Marker?

Can we include an iframe in tooltip in Marker? import folium var=open("yolo.html", "r") var2 = var.read() map = folium.Map(location=[19.179180,72.972580],zoom_start=6, tiles="Mapbox Control Room") ...
0
votes
1answer
38 views

Drawing a marker on a shapefile with the given latitude and longitude?

I am using shapefiles to draw a custom map. They were created successfully with the help of ArcGIS Desktop. Now I need to draw a marker on shapefile based on an existing tuple of lat, lng. How can I ...
2
votes
3answers
655 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
263 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 ...
1
vote
1answer
99 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
437 views

Adding popup to Leaflet but only on click?

As 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
137 views

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
73 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
27 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
2answers
904 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
1answer
902 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
238 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 ...
1
vote
1answer
518 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
153 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°...
3
votes
0answers
277 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
230 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
62 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
93 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
288 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
99 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
137 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
118 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
634 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
21 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
291 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
439 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
134 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() { ...
1
vote
1answer
1k 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
326 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
87 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
233 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
88 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
174 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
136 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 ...