<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}
p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi Manuel,<br></div><div><br></div><div>Can you give some more info about your data and how you are trying to use it? If you can share a link to a copy or sample of the data, even better.<br></div><div><br></div><div>From your sample it looks like you're maybe trying to make a webmap - where does QGIS fit in? Are you using the qgis2web plugin?<br></div><div><br></div><div>The more info you can share about your data and workflow the more likely it is someone will be able to help.<br></div><div><br></div><div>Regards,<br></div><div><br></div><div>Alexei<br></div><div><br></div><div>On Wed, 10 Apr 2024, at 08:27, Manuel Fernandez wrote:<br></div><blockquote type="cite" id="qt" style=""><div dir="ltr"><div>Hello Alexei.<br></div><div>My problem is that I can't put the street name tag. My file is a geojson. And the field es name. I have trid :<br></div><div><br></div><div><div>var totcmnosLayer = L.geoJson(null);<br></div><div>$.getJSON("data/tot_cmnos.geojson", function(data){<br></div><div>totcmnosLayer.addData(data);<br></div><div>onEachFeature: function(feature, layer) {<br></div><div>if (feature.properties && feature.properties.DENOMINACI1) {<br></div><div>layer.bindPopup(feature.properties.DENOMINACI1);<br></div><div>}<br></div><div>}<br></div></div><div>or layer.bindLabel, bindTooltip <br></div><div>But I doesn't work. :(<br></div><div>Thanks a lot<br></div></div><div dir="ltr"><pre id="qt-m_-3208856701853627840gmail-tw-target-text" aria-label="Texto traducido" dir="ltr" style="font-size:28px;line-height:36px;background-color:rgb(248, 249, 250);border-top-width:medium;border-top-style:none;border-top-color:currentcolor;border-right-width:medium;border-right-style:none;border-right-color:currentcolor;border-bottom-width:medium;border-bottom-style:none;border-bottom-color:currentcolor;border-left-width:medium;border-left-style:none;border-left-color:currentcolor;border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;padding-top:2px;padding-right:0.14em;padding-bottom:2px;padding-left:0px;font-family:inherit;overflow-x:hidden;overflow-y:hidden;width:270px;color:rgb(31, 31, 31);"><span lang="en"></span><br></pre><pre id="qt-m_-3208856701853627840gmail-tw-target-text" aria-label="Texto traducido" dir="ltr" style="font-size:28px;line-height:36px;background-color:rgb(248, 249, 250);border-top-width:medium;border-top-style:none;border-top-color:currentcolor;border-right-width:medium;border-right-style:none;border-right-color:currentcolor;border-bottom-width:medium;border-bottom-style:none;border-bottom-color:currentcolor;border-left-width:medium;border-left-style:none;border-left-color:currentcolor;border-image-outset:0;border-image-repeat:stretch;border-image-slice:100%;border-image-source:none;border-image-width:1;padding-top:2px;padding-right:0.14em;padding-bottom:2px;padding-left:0px;font-family:inherit;overflow-x:hidden;overflow-y:hidden;width:270px;color:rgb(31, 31, 31);"><br></pre></div><div><br></div><div class="qt-gmail_quote"><div dir="ltr" class="qt-gmail_attr">El mié, 10 abr 2024 a las 9:16, Alexei Schwab via QGIS-User (<<a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a>>) escribió:<br></div><blockquote class="qt-gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;"><div><div><u></u><br></div><div><div>Hi Manuel,<br></div><div><br></div><div>You can change the position of the label in the layer label settings: <a href="https://docs.qgis.org/3.34/en/docs/user_manual/style_library/label_settings.html#placement-for-line-layers" target="_blank">https://docs.qgis.org/3.34/en/docs/user_manual/style_library/label_settings.html#placement-for-line-layers</a><br></div><div><br></div><div>Under the Placement tab > General settings section, you can change the text position from Above line to On line.<br></div><div><br></div><div>You might want to add a buffer or backgroiund to the text to keep it legible over the line.<br></div><div><br></div><div>Regards,<br></div><div><br></div><div>Alexei<br></div><div><br></div><div>On Tue, 9 Apr 2024, at 15:50, Manuel Fernandez via QGIS-User wrote:<br></div><blockquote type="cite" id="qt-m_-3208856701853627840m_7389006301614687375qt"><div dir="ltr"><div>I have a streets layer in geojson. Is it possible to put the name tag on the line? Not in a popup.<br></div><div>Thanks a lot<br></div></div><div>_______________________________________________<br></div><div>QGIS-User mailing list<br></div><div><a href="mailto:QGIS-User@lists.osgeo.org" target="_blank">QGIS-User@lists.osgeo.org</a><br></div><div>List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></div><div>Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></div><div><br></div></blockquote><div><br></div></div><div>_______________________________________________<br></div><div>QGIS-User mailing list<br></div><div><a href="mailto:QGIS-User@lists.osgeo.org" target="_blank">QGIS-User@lists.osgeo.org</a><br></div><div>List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></div><div>Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br></div></div></blockquote></div></blockquote><div><br></div></body></html>