Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage Multiple Locations with JSON file #49

Open
3 of 4 tasks
nicolocarpignoli opened this issue Apr 22, 2020 · 3 comments · May be fixed by #71
Open
3 of 4 tasks

Manage Multiple Locations with JSON file #49

nicolocarpignoli opened this issue Apr 22, 2020 · 3 comments · May be fixed by #71
Assignees
Labels
1.0.0 PR_opened Issue related to an opened pull request

Comments

@nicolocarpignoli
Copy link
Member

nicolocarpignoli commented Apr 22, 2020

  • Define JSON structure
  • Create the anchor to download the JSON example file
  • Create the button to upload the user JSON file
  • Load and show on map the locations

image

@faace faace self-assigned this Apr 25, 2020
@nicolocarpignoli nicolocarpignoli self-assigned this Apr 29, 2020
@nicolocarpignoli
Copy link
Member Author

@faace To start, a first JSON template can be the following:

{
    "showDistance": true/false, // if true, show distance from origin (distanceMsg property) for every place
    "showName": true/false, // if true, show place name for every place
    "heightFromGround": 0,  // if true, change Y position for every place
    "places": [
        {
            "id": 0,
            "name": "Colosseum",
            "latitude": 0.0000,
            "longitude": 0.000
        },
        {
            "id": 1,
            "name": "Arco di Traiano",
            "latitude": 0.0000,
            "longitude": 0.000
        },
        {
            "id": 2,
            "name": "Stadio Olimpico",
            "latitude": 0.0000,
            "longitude": 0.000
        }
        // ....
    ]
}

The user will define those parameters uploading a JSON. Instead, content will be uploaded from the frontend and will be the same for every place. What will make every place different is the distance and name.

@nicolocarpignoli nicolocarpignoli changed the title Define a template and create JSON file to be download for multiple location based Manage Multiple Locations with JSON file May 29, 2020
@nicolocarpignoli
Copy link
Member Author

@faace I have added checklist for this issue on main post

@faace
Copy link
Collaborator

faace commented Jun 5, 2020

@nicolocarpignoli Created new branch #49. And I have finished step 2 and step3. But the last step needs the implementation of issue #48 because after uploading the JSON file, the multi-locations need to be shown in the list.

@nicolocarpignoli nicolocarpignoli linked a pull request Jun 15, 2020 that will close this issue
@gciandro13 gciandro13 added the PR_opened Issue related to an opened pull request label Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.0.0 PR_opened Issue related to an opened pull request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants