• Resolved waimek

    (@waimek)


    Hello,

    I’m currently creating a map with Waymark. I imported my layers from a geojson file.

    I would know if it’s possible to see my features data on the map (for example when i click on a marker), when i import my geojson file.

    I would like to display some data fields from my geojson when i click on map features.

    It’s a big geojson file so i cannot rewrite all data.

    Thanks

    • This topic was modified 1 year, 6 months ago by waimek.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Joe

    (@morehawes)

    Hi @waimek,

    Thanks for reaching out. To confirm, are you talking about GeoJSON “properties” which are stored like my_property here?:

    {
      "type": "Feature",
      "geometry": {
        "type": "Point",
        "coordinates": [125.6, 10.1]
      },
      "properties": {
        "my_property": "Some content here"
      }
    }

    If that is the case currently Waymark ignores these and does not import them.

    Are you asking for them to be imported and then then display in the Info window/bubble when clicking? If so, could you provide a sample file, or more details about the kind of data stored in these properties and how you would like them displayed?

    Cheers,

    Joe

    Thread Starter waimek

    (@waimek)

    Hello,

    You perfectly understood what i want to do.

    Here is a sample:

    {

    “type”: “Feature”,

    “geometry”: {

    “type”: “Point”,

    “coordinates”: [125.6, 10.1] },

    “properties”: {

    “AuthorizationOwner”: “Mr XXX” ,

    “AuthorizationDate”: “10/02/2022”,

    “EndDate”: “10/03/2023”

    “AuthorizationNumber”: “12344”

    }

    }

    There are some more fields, but display these could be a good first step for my Map.

    The best for me should be to display it on hover in a bubble (replacing the property key by a pretty string)

    Regards

    Plugin Author Joe

    (@morehawes)

    Hi @waimek,

    I have just added the ability to do this in the latest release (v0.9.28).

    You can now read GeoJSON feature properties when importing from file by adding them in Waymark Settings > Overlays > Properties. If Waymark finds data for these properties it will be added to the Overlay description when it is imported.

    Please let me know if you encounter any issues.

    Cheers,

    Joe

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using data from geojson’ is closed to new replies.