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. 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 ‘www.openlayers.org’, 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. The OpenLayers Marker documentation provides an example for a custom marker icon. You have to create a OpenLayers.Icon object: Where did you get your local OpenLayers.js copy from? It might be outdated if it doesn’t work compared to the one version. And that’s usually the reason why you want to keep a local copy of your libraries, because they won’t change to a newer version automatically. You should also make sure that the example you got from the web is up to date. Ideally you use one of the official OpenLayers examples. Source.