We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I could not find any example for drawing road labels. I tried modifying the india-label example -
india-label
if (feature.layer.name === 'addresspoint') { console.log('Found layer = ' + feature.layer.name); style.staticLabel = function() { var style = { html: feature.properties.BLDG_NUM, iconSize: [33,33], cssClass: 'label-icon-text' }; return style; }; } if (feature.layer.name === 'roadlabel') { console.log('Found layer = ' + feature.layer.name); style.staticLabel = function() { var style = { html: feature.properties.NAME, iconSize: [33,33], cssClass: 'label-icon-text' }; return style; }; }
The addresspoints get displayed correctly, because they are of the type Point.
Point
But the roadlabels being of type LineString do not get displayed. I face the same problem with labels of type Polygon.
LineString
Polygon
So how do I show labels other than Point type?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I could not find any example for drawing road labels. I tried modifying the
india-label
example -The addresspoints get displayed correctly, because they are of the type
Point
.But the roadlabels being of type
LineString
do not get displayed. I face the same problem with labels of typePolygon
.So how do I show labels other than
Point
type?The text was updated successfully, but these errors were encountered: