views:

45

answers:

1

Hi! I'm doing a project using OpenStreetMap. There is this one working code snippet that I found that I'm using for adding markers:

...
styleMap: new OpenLayers.StyleMap(
  graphicYOffset: -25, // shift graphic up 28 pixels
  label : "${name}", // Set the external graphic and background graphic images.
  externalGraphic: "${icon}",
  backgroundGraphic: "../images/marker-shadow.png",
  ...

I found 2 API docs for the StyleMap Class:

http://dev.openlayers.org/apidocs/files/OpenLayers/StyleMap-js.html

and

http://dev.openlayers.org/docs/files/OpenLayers/StyleMap-js.html.

Though I have two source, they both don't have documentation about the properties (like graphicYOffset) there. Someone was able to code, so the COMPLETE API docs must exist. Where can I find these COMPLETE API docs. Thanks in advance!

A: 

http://docs.openlayers.org/

http://dev.openlayers.org/releases/OpenLayers-2.9.1/doc/apidocs/files/OpenLayers-js.html

With regard to StyleMap properties:

http://docs.openlayers.org/library/feature_styling.html#style-properties

And this may also be helpful getting started:

http://openlayers.org/doc/

relet
http://dev.openlayers.org/releases/OpenLayers-2.9/doc/apidocs/files/OpenLayers/StyleMap-js.html<<it still doesn't have the properties I'm looking for :(