This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Load image as a point as a point Tile Mill

0

Ok so I'm trying to load an image as a point on a blank map canvas. Earlier I tried loading an image as a background using:

Map {
    background-image: url(somefolder/someimage.jpg);
}

This worked but I got the same image repeated ad-infinitum. So someone suggested loading the image as a point. I made a CSV file with lat and lon of zero and added a new layer, I attempted to load the image using the same relative address as before:

Map {
    background-color: #b8dee6;
}
#pointlayer {
    point-file: url(somefolder/someimage.jpg);
}

But nothing shows up with this method. Can anyone shed some light as to whats going wrong here? Is the background hiding the image? I've tried flushing the cache.

asked 27 Jul '12, 14:08

DamoPock's gravatar image

DamoPock
1222
accept rate: 0%

edited 27 Jul '12, 19:59

scai's gravatar image

scai ♦
33.3k21309459


2 Answers:

0

If you are sure that the image file is on the right path, you can try to use the point-allow-overlap: true command.

#pointlayer {
     point-file: url(somefolder/someimage.jpg);
     point-allow-overlap: true;
}

answered 27 Jul '12, 18:27

Gilliard%20Lopes's gravatar image

Gilliard Lopes
11224
accept rate: 0%

0

Does it work with the default styling? See if a red dot shows up (it does for me, TileMill 0.10.1, Mac OS X). If it does, your CSS or jpg is at fault; if it doesn't, your CSV is at fault.

answered 20 May '14, 22:09

josephcheek's gravatar image

josephcheek
1
accept rate: 0%

Source code available on GitHub .