-
Notifications
You must be signed in to change notification settings - Fork 0
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.
Approved
const MYLOCATION_STYLE_PRESET = 'islands#geolocationIcon' | ||
|
||
const INIT_ZOOM = 13 // zoom: 1..23 | ||
const MIN_ZOOM = 10 |
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.
MAX_ZOOM тоже нужен тогда :)
preset: MYLOCATION_STYLE_PRESET, | ||
} | ||
|
||
export default class MixMap extends Component { |
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.
Почему MixMap?
|
||
// Устанавливаем тип "event" меткам, если тип не установлен | ||
for (let i in props.points) { | ||
if (false === props.points[i].hasOwnProperty('type')) { |
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.
Часто работаешь с арабами?
componentDidMount() { } | ||
|
||
/** | ||
* Обработчик выполнится после успешно определенной текущего местоположения |
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.
Забыл @description
preset: 'islands#blueDotIcon' | ||
}} | ||
/> */} | ||
import MixMap from '../../map/MixMap' |
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.
Используй глобальные пути, и раз ты экспортировал в map/index.js компонент, то ты можешь обращаться к нему так: import ComponentName from 'components/map'
.
{this.state.events}
остальную доку напишу в компоненте