Why not ask your question on the new OpenStreetMap Community Forum?

I am adding features by using

var feature = new OpenLayers.Feature.Vector( new OpenLayers.Geometry.Point( lng ,lat  ).transform(epsg4326, projectTo),  {description:'some description'} , {externalGraphic: 'mypicture.png', graphicHeight: 32, graphicWidth: 32, graphicXOffset:-16, graphicYOffset:-16} );

But they are barely visible given that almost all colors are being used in osms.

What is a good practice to make icons visible on osms?

asked 25 Nov '13, 13:41

Zurechtweiser's gravatar image

accept rate: 0%

edited 25 Nov '13, 14:33

aseerel4c26's gravatar image

aseerel4c26 ♦

I assume you mean that you are using an OSM-based map (I guess our standard "mapnik" style) in a slippy map as background to display other objects/markers on top, right?

(25 Nov '13, 14:21) aseerel4c26 ♦

@Zurechtweiser What do you mean by "osms"? Could you explain a little?

(25 Nov '13, 16:21) SomeoneElse ♦

  • OSM-related:
    • Use another map rendering style as background (see Tiles and Rendering). Examples. Remember: OSM is just data - and many different maps (and services) are made of it.
    • … But please respect the individual tile usage policies. Example: policy for osm.org's tiles
  • (not-OSM-related:) Use an "externalGraphic: 'mypicture.png'" which has a big border/shadow around it - so it sticks out of the map. Or use the shadow feature of OpenLayers. (I did not try this myself)
permanent link

answered 25 Nov '13, 14:14

aseerel4c26's gravatar image

aseerel4c26 ♦
accept rate: 18%

edited 25 Nov '13, 14:33

Your answer
toggle preview

Follow this question

By Email:

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



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:


question asked: 25 Nov '13, 13:41

question was seen: 2,977 times

last updated: 25 Nov '13, 16:21

powered by OSQA