Hi,
I did the following but my map displays the default red marker instead of the one I wanted it to.
var showTripOnMap = function (jobId, newLonlat)
{
var olMap = Map1.GetOpenLayersMap();
var tripMarkerOverlay = olMap.getLayer("TripMarkerOverlay");
var size = new OpenLayers.Size(10, 17);
var offset = new OpenLayers.Pixel(-(size.w/2), -size.h);
var icon = new OpenLayers.Icon('10.0.90.2:2178/Icons/tripBlue.png', size, offset);
var mapLocation = new OpenLayers.LonLat(newLonlat.x, newLonlat.y, icon.clone());
var marker1 = new OpenLayers.Marker(mapLocation);
markers[jobId] = marker1;
tripMarkerOverlay.addMarker(marker1);
}
I can display my icon using url 10.0.90.2:2178/Icons/tripBlue.png in my IE so I'm pretty sure the path is correct.
Thanks,
Tracy