Untitled
unknown
plain_text
2 years ago
874 B
5
Indexable
var mviewer = mviewer || {};
mviewer.featureStyles = {};
mviewer.featureStyles.clubs_football = new ol.style.Style({
image: new ol.style.Circle({
radius: 5,
fill: new ol.style.Fill({
color: "#3AA8B3", opacity: 0.5
}),
stroke: new ol.style.Stroke({
color: "#095A62",
width: 0.5,
}),
}),
text: new ol.style.Text({
text: textLabelClubFootball,
offsetY: -10, // Ajustez cette valeur pour positionner l'étiquette
fill: new ol.style.Fill({
color: '#000' // Couleur du texte
}),
stroke: new ol.style.Stroke({
color: '#fff', // Couleur du contour du texte
width: 2
}),
}),
minResolution: 8, // Ajustez cette valeur en fonction du niveau de zoom souhaité (1/50000 est un exemple)
});
var textLabelClubFootball = function (feature) {
var value = feature.get("nom_club")
return value;
}Editor is loading...
Leave a Comment