Hi Manuel,

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.

>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?

The more info you can share about your data and workflow the more likely it is 
someone will be able to help.

Regards,

Alexei

On Wed, 10 Apr 2024, at 08:27, Manuel Fernandez wrote:
> Hello Alexei.
> 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 :
> 
> var totcmnosLayer = L.geoJson(null);
> $.getJSON("data/tot_cmnos.geojson", function(data){
> totcmnosLayer.addData(data);
> onEachFeature: function(feature, layer) {
> if (feature.properties && feature.properties.DENOMINACI1) {
> layer.bindPopup(feature.properties.DENOMINACI1);
> }
> }
> or layer.bindLabel, bindTooltip 
> But I doesn't work. :(
> Thanks a lot
> 
> 
> 
> El mié, 10 abr 2024 a las 9:16, Alexei Schwab via QGIS-User 
> (<qgis-user@lists.osgeo.org>) escribió:
>> __
>> Hi Manuel,
>> 
>> You can change the position of the label in the layer label settings: 
>> https://docs.qgis.org/3.34/en/docs/user_manual/style_library/label_settings.html#placement-for-line-layers
>> 
>> Under the Placement tab > General settings section, you can change the text 
>> position from Above line to On line.
>> 
>> You might want to add a buffer or backgroiund to the text to keep it legible 
>> over the line.
>> 
>> Regards,
>> 
>> Alexei
>> 
>> On Tue, 9 Apr 2024, at 15:50, Manuel Fernandez via QGIS-User wrote:
>>> I have a streets layer in geojson. Is it possible to put the name tag on 
>>> the line? Not in a popup.
>>> Thanks a lot
>>> _______________________________________________
>>> QGIS-User mailing list
>>> QGIS-User@lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> 
>> 
>> _______________________________________________
>> QGIS-User mailing list
>> QGIS-User@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to