-
Notifications
You must be signed in to change notification settings - Fork 5
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
base: main
Are you sure you want to change the base?
WIP: Accesible Map #232
Conversation
There was a problem hiding this 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> |
There was a problem hiding this comment.
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 atjs/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> |
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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).
No description provided.