您好,请您说下您那边选择的地图框架,每个地图框架都能实现,具体的您可以在百度查下。
我以iclient for openlayer为例
point = new ol.geom.Point([104, 30]);
var iconStyle = new ol.style.Style({
image: new ol.style.Icon(({
src: '../img/markerbig_select.png'
}))
});
var feature = new ol.Feature(point);
feature.setStyle(iconStyle);
var pointSource = new ol.source.Vector({
features: [feature],
wrapX: false
});
vectorLayer = new ol.layer.Vector({
source: pointSource
});
map.addLayer(vectorLayer);