Popup text from geojson-file

  • Pleppo
  • Pleppo's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
2 months 2 weeks ago #14199 by Pleppo
Popup text from geojson-file was created by Pleppo
Hello,
I use a geojson file to represent paths.
The paths are displayed correctly on my map.
but no text is displayed in the popup for the respective quadrants.
How can I display e.g. TKnr and name?

many Greetings
F.

Attachments:

Please Log in or Create an account to join the conversation.

More
2 months 2 weeks ago - 2 months 2 weeks ago #14201 by Dima
Replied by Dima on topic Popup text from geojson-file
Hi
I need page with your map and layer.
Is this file created by yourself or not?

If you did it manual, try to rename property "Name" to "name", probably it is case sensitive.

In my code I'll getting 2 properties (which is defined, that I use)
first check
layer.feature.properties.popupContent
then
layer.feature.properties.name

Don't forget support my developments: post review in JED , donate , help with thanslation ;)
Last edit: 2 months 2 weeks ago by Dima.
The following user(s) said Thank You: Pleppo

Please Log in or Create an account to join the conversation.

  • Pleppo
  • Pleppo's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
2 months 2 weeks ago #14202 by Pleppo
Replied by Pleppo on topic Popup text from geojson-file
oh,
right the word "name" must be written in lower case.
:-)

Please Log in or Create an account to join the conversation.

Time to create page: 10.090 seconds

Donate


Go to top