NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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


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;
}
permanent link

answered 27 Jul '12, 18:27

Gilliard%20Lopes's gravatar image

Gilliard Lopes
11224
accept rate: 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.

permanent link

answered 20 May '14, 22:09

josephcheek's gravatar image

josephcheek
1
accept rate: 0%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×535
×60
×39
×25
×6

question asked: 27 Jul '12, 14:08

question was seen: 7,979 times

last updated: 20 May '14, 22:09

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum