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

Map first draft #8

Merged
merged 4 commits into from
Mar 12, 2021
Merged

Map first draft #8

merged 4 commits into from
Mar 12, 2021

Conversation

AlexeyTeterin
Copy link
Collaborator

Features:

  • interactive map (leaflet + mapbox),
  • marker for capital + popup with its name (doesn't show correct name yet, as db isn't filled),
  • labels translation,
  • shows current country's border,
  • full screen icon (doesn't work yet)

right: 0.5rem;
cursor: pointer;
font-size: 1.5rem;
transition: opacity 0.2s, transform 0.2s !important;
Copy link
Owner

Choose a reason for hiding this comment

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

Хорошо бы избегать использования !important. Почему в этом месте без него не получается? Что перекрывает?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Там на иконке из material-icons висит какой-то бесполезный транзишн )

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

попробую без импортанта сейчас

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

import Leaflet from 'leaflet';
import FullScreenIcon from '@material-ui/icons/FullscreenRounded';
import rootConnector, { rootProps } from '../../store/rootConnector';
import './Map.scss';
Copy link
Owner

Choose a reason for hiding this comment

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

Давай стили в конец, или хотя бы после типов

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@AlexeyTeterin AlexeyTeterin merged commit 2328329 into develop Mar 12, 2021
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.

3 participants