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

WIP: Accesible Map #232

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

WIP: Accesible Map #232

wants to merge 2 commits into from

Conversation

samswagbot
Copy link

No description provided.

Copy link
Collaborator

@zoltan-dulac zoltan-dulac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a bit of housekeeping to do in your PR so far.

</main>

<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"></script>
<script>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just want to comment on common practice throughout the project (you may know this already, but I thought I'd better write this down just in case you don't).

  • we should have script tags in the bottom/maps.php file.
  • Scripts should be modules (e.g. <script type="module">). Is it possible to include leaflet.js as an import? Look at js/demos/dialog-example.js to see how we import modules into that file.
  • Instead of using unpkg to include leaflet, we should include it in the project. Please follow our documentation in README.md on including npm modules in the front-end to see what we need to do here.


</main>

<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap" async defer></script>
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zoltan-dulac add API KEY here

</head>
<body>
<main>
<h1>Interactive Map and Accessible List View</h1>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you take a look at the other pages in the body directory, you'll see that you only need the stuff inside

.

The CSS above should be linked from content/head/maps.php via the tag. Please make a LESS file to store this. It will be converted to CSS by our build scripts.

JS should be included in the content/bottom/maps.php file.

The aside directory would have notes on the top of the page like the table.php page

Can you please add this information to the README.md for this project? I think if you didn't know this, others wouldn't as well (I missed putting this in the docuementation).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants