Hi 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:
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. Can anyone help me out? I have tried to follow the guidelines below, but unsuccesful. http://wiki.openstreetmap.org/wiki/Marker_API asked 24 May '13, 14:11 zorroguy Frederik Ramm ♦ |
The question has been closed for the following reason "Question is off-topic or not relevant" by Frederik Ramm 24 May '13, 14:29
Your problem is an OpenLayers problem, not an OpenStreetMap problem. Check the documentation/mailing lists linked on www.openlayers.org for OpenLayers help. The documentation you mention at the end of your post is not related to OpenLayers, it uses a different library named KHtml and is therefore not relevant to your problem. answered 24 May '13, 14:29 Frederik Ramm ♦ |
Yes, but seen aside from the openlayers part. Can I get some help here with setting custom marks on my openstreetmap, without openlayers? I am rather new in this, and I would like to learn and master OSM.