New answers tagged markers
1
I have fixed the problem by adding the iconAnchor: [10, 40] property to the icon object:
var svg = `<svg width="19px" height="29px" viewBox="0 0 19 29" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Combined Shape</title>
...
0
I made an SVG yesterday in Inkscape. It definitely used the centre location of my symmetric icon - a boat.
But I had the opposite problem. I needed the position to be at the front of the boat, not the centre. I solved it by doubling the height of the icon canvas and only using the bottom half for the boat. Maybe you can do something similar.
Think of the ...
1
Modify the data in PLot to contain a space instead of a Null. Then the problem may go away. Or use a ? to indicate to the viewer that the number of the lot is unknown. That may be important. Features without attributes are usually not as good as features with attributes.
1
So ... you are using a rule-based symbology.
I think you could try the following (even if we don't see the rules you use) :
Instead of "PLot" only try to label your sites with coalesce("PLot",'') that should enable you to handle NULL cases.
A second possibility could be to elaborate the rules of your symbology a bit more in order to ...
Top 50 recent answers are included
Related Tags
markers × 388leaflet × 160
qgis × 55
javascript × 40
openlayers-2 × 38
geojson × 38
google-maps × 32
clustering × 31
popup × 30
openlayers × 26
symbology × 25
icon × 17
layers × 16
mapbox × 15
style × 14
arcgis-desktop × 12
google-maps-api × 12
openstreetmap × 10
labeling × 10
line × 10
carto × 10
svg × 10
vector × 9
zoom × 9
postgis × 7