Title: fixed lable function
Last modified: April 27, 2022

---

# fixed lable function

 *  [teddyyun](https://wordpress.org/support/users/teddyyun/)
 * (@teddyyun)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/fixed-lable-function/)
 * Hi,
    Thank you for your excellent map plugin. Can I use a fixed label instead
   of a pop-up?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/fixed-lable-function/#post-15596209)
 * Do you mean you would like to get a tooltip on hover only?
 *  Thread Starter [teddyyun](https://wordpress.org/support/users/teddyyun/)
 * (@teddyyun)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/fixed-lable-function/#post-15596617)
 * Instead of showing the point label as a popup, I want to display it directly 
   on the map.
 *  Plugin Author [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/fixed-lable-function/#post-15596764)
 * This works with marker only:
    `[leaflet-marker lat=28.41 lng=-81.58 visible]Marker[/
   leaflet-marker]` For `leaflet-geojson` you can use `[hover]` to show a tooltip
   on hover. The content of the tooltip is the same as of popup.
 *  Thread Starter [teddyyun](https://wordpress.org/support/users/teddyyun/)
 * (@teddyyun)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/fixed-lable-function/#post-15597011)
 * Can I add the name of the point in the Geojson file?
 * [Example](https://www.geonomad.net/leaflet-label/)
 *  Plugin Author [hupe13](https://wordpress.org/support/users/hupe13/)
 * (@hupe13)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/fixed-lable-function/#post-15597505)
 * Of course. Do you have an example of one point in your geojson file?
    Its property
   should look like this, see [https://en.wikipedia.org/wiki/GeoJSON](https://en.wikipedia.org/wiki/GeoJSON):
 *     ```
       {
             "type": "Feature",
             "geometry": {
               "type": "Point",
               "coordinates": [102.0, 0.5]
             },
             "properties": {
               "prop0": "value0"
             }
         },
       ```
   
 * Then you can write:
    `[leaflet-geojson src="my.geojson"]{@prop0}[/leaflet-geojson]`

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘fixed lable function’ is closed to new replies.

 * ![](https://ps.w.org/extensions-leaflet-map/assets/icon-256x256.png?rev=3067862)
 * [Extensions for Leaflet Map](https://wordpress.org/plugins/extensions-leaflet-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/extensions-leaflet-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/extensions-leaflet-map/)
 * [Active Topics](https://wordpress.org/support/plugin/extensions-leaflet-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/extensions-leaflet-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/extensions-leaflet-map/reviews/)

## Tags

 * [geoJSON](https://wordpress.org/support/topic-tag/geojson/)

 * 5 replies
 * 2 participants
 * Last reply from: [hupe13](https://wordpress.org/support/users/hupe13/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/fixed-lable-function/#post-15597505)
 * Status: not resolved