Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

Radar map real events #17

Merged
merged 1 commit into from
Aug 10, 2017
Merged

Radar map real events #17

merged 1 commit into from
Aug 10, 2017

Conversation

cybri0nix
Copy link
Collaborator

{this.state.events}

  • массив событий
  • для одного события там может быть один элемент

остальную доку напишу в компоненте

@Tamik Tamik changed the base branch from master to develop August 10, 2017 14:04
Copy link
Owner

@Tamik Tamik left a comment

Choose a reason for hiding this comment

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

Approved

const MYLOCATION_STYLE_PRESET = 'islands#geolocationIcon'

const INIT_ZOOM = 13 // zoom: 1..23
const MIN_ZOOM = 10
Copy link
Owner

Choose a reason for hiding this comment

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

MAX_ZOOM тоже нужен тогда :)

preset: MYLOCATION_STYLE_PRESET,
}

export default class MixMap extends Component {
Copy link
Owner

Choose a reason for hiding this comment

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

Почему MixMap?


// Устанавливаем тип "event" меткам, если тип не установлен
for (let i in props.points) {
if (false === props.points[i].hasOwnProperty('type')) {
Copy link
Owner

Choose a reason for hiding this comment

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

Часто работаешь с арабами?

componentDidMount() { }

/**
* Обработчик выполнится после успешно определенной текущего местоположения
Copy link
Owner

Choose a reason for hiding this comment

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

Забыл @description

preset: 'islands#blueDotIcon'
}}
/> */}
import MixMap from '../../map/MixMap'
Copy link
Owner

Choose a reason for hiding this comment

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

Используй глобальные пути, и раз ты экспортировал в map/index.js компонент, то ты можешь обращаться к нему так: import ComponentName from 'components/map'.

@Tamik Tamik merged commit b0dc070 into develop Aug 10, 2017
@Tamik Tamik deleted the radar-map-real-events branch August 10, 2017 14:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants