feature/leaflet-map #61

Merged
aadil merged 16 commits from feature/leaflet-map into main 2022-12-19 07:49:52 +00:00
Member

Ignore the test commits that was to get the preview working.

This branch adds a leaflet map, which can be implemented with a shortcode in any markdown file like

{{< map geoJson="data/geojsonContributors.json">}}

This way you can display a map on any page with any data.

If you wanna display new data in the tooltips just add a new property key/value.

e.g.

      "properties": {
        "a": "new value",
      }

One catcha is that Javascipt always output the order of the object in alfabetic order, there is nothing to do about this.

Key names groupName and listOfNames are reserved.
This will display it in the way it does now on the map
e.g.

"properties": {
  "groupName": "The Question of Funding",
   "listOfNames": [
     "Adele Jarrar",
     "Amany Khalifa",
     ]
}

So just to be clear if you want extra value under it, give the key name a letter that is after the l in the alfabet.
e.g.

"properties": {
 "groupName": "The Question of Funding",
  "listOfNames": [
     "Adele Jarrar",
     "Amany Khalifa",
    ],
  "m": "value under the list"
}

The new added value will alway be displayed the same and will be in a <p> tag.

Ignore the test commits that was to get the preview working. This branch adds a leaflet map, which can be implemented with a shortcode in any markdown file like ``` {{< map geoJson="data/geojsonContributors.json">}} ``` This way you can display a map on any page with any data. If you wanna display new data in the tooltips just add a new property key/value. e.g. ``` "properties": { "a": "new value", } ``` One catcha is that Javascipt always output the order of the object in alfabetic order, there is nothing to do about this. Key names `groupName` and `listOfNames` are reserved. This will display it in the way it does now on the map e.g. ``` "properties": { "groupName": "The Question of Funding", "listOfNames": [ "Adele Jarrar", "Amany Khalifa", ] } ``` So just to be clear if you want extra value under it, give the key name a letter that is after the `l` in the alfabet. e.g. ``` "properties": { "groupName": "The Question of Funding", "listOfNames": [ "Adele Jarrar", "Amany Khalifa", ], "m": "value under the list" } ``` The new added value will alway be displayed the same and will be in a `<p>` tag.
Esthetech added 6 commits 2022-09-15 11:54:17 +00:00
Esthetech added 1 commit 2022-09-15 12:05:06 +00:00
Esthetech added 1 commit 2022-09-15 12:10:56 +00:00
aadil added 1 commit 2022-09-20 06:46:29 +00:00
Esthetech added 2 commits 2022-09-23 12:23:53 +00:00
aadil added 1 commit 2022-11-18 10:39:33 +00:00
aadil added 1 commit 2022-12-15 09:58:03 +00:00
aadil added 1 commit 2022-12-15 10:06:35 +00:00
aadil added 1 commit 2022-12-16 05:02:11 +00:00
aadil added 1 commit 2022-12-19 07:47:36 +00:00
aadil merged commit f61390ef61 into main 2022-12-19 07:49:52 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ruangrupa/lumbung.space#61
No description provided.