Help for a dedicated newbie to learn to / master use Openstreet map


I have a couple of issues:

I am trying to add my own marker to a map, but it does not seem to work. Also when I try to refer the OpenLayer.js file locally the default red marker disappears.

I have found some examples on the net, but they have been unsuccessful I am afraid. So I thought to ask for some help here.

Now my code looks like this:

<div id="Map" style="height: 250px; width: 400px" ></div>


and as you can see I have tried to refer to my own marker from ‘Images/Icons/map-marker.png’ without any luck.

Also you can see that I have tried to use a local copy of the ‘OpenLayers.js’, I don’t know whether I should have it locally or always refer to ‘’, I believe referring local is good enough?

Also as I wrote earlier, if I refer the local .js file, the red marker, the zoom buttons and the OSM link disappears.

Can anyone help me out?

I have tried to follow the guidelines below, but unsuccesful.

I cannot help you in detail, but maybe there are some hints at if you do a text search for “openlayers” or “marker”

or try as an alternative to openlayers.