Skip to content

Conversation

@Stan0men
Copy link

@Stan0men Stan0men commented Aug 6, 2018

Merge with dev without issues, map is loaded only sometimes
http://skrinshoter.ru/s/060818/9TQQa3ry?a screenshot

import './Info.scss';
import slack from '../../../public/images/slack.svg';
import facebook from '../../../public/images/facebook.svg';
import github from '../../../public/images/github-logo.svg';

Choose a reason for hiding this comment

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

The path can be 'images/slack.svg'

@@ -1,33 +1,42 @@
import React from 'react';
import { InfoMap } from '../../components/InfoMap/InfoMap';
Copy link

@io-design io-design Aug 7, 2018

Choose a reason for hiding this comment

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

Not sure what is the problem but map will work properly if you import it with other name (e.g. InfoMap2) and without curly braces

Copy link

@python4g python4g Aug 8, 2018

Choose a reason for hiding this comment

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

@io-design without {} it will import GoogleApiWrapper since it's exported by default This is why you need to select different name.

<div className="map">
{
<InfoMap />
}

Choose a reason for hiding this comment

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

Do you need these curly braces?

position: relative !important;
height: 100% !important;
width: 100% !important;
border: 1px solid black;

Choose a reason for hiding this comment

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

This border style will ruin map styles.

render() {
const { google } = this.props;
return (
<Map google={google} zoom={14}>
Copy link

Choose a reason for hiding this comment

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

I hate magic numbers :)

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.

4 participants