# Class: PhotoTrailMap

[index](../modules/index.md).PhotoTrailMap

用于展示轨迹点、线及处理各种交互逻辑
！！Map组件的所有props需要确保在传入正确的值后再渲染该组件。！！

## Table of contents

### Constructors

- [constructor](index.phototrailmap.md#constructor)

### Properties

- [env](index.phototrailmap.md#env)
- [mapObj](index.phototrailmap.md#mapobj)
- [publicConfig](index.phototrailmap.md#publicconfig)
- [queryStringConfig](index.phototrailmap.md#querystringconfig)

## Constructors

### constructor

\+ **new PhotoTrailMap**(): [*PhotoTrailMap*](index.phototrailmap.md)

**Returns:** [*PhotoTrailMap*](index.phototrailmap.md)

## Properties

### env

• **env**: *object*

父组件的全局环境变量process.env，用于库内部判断开发或生产环境

___

### mapObj

• **mapObj**: *object*

由 new mapboxgl.Map()创建的mapboxgl实例

___

### publicConfig

• **publicConfig**: [*publicConfig*](../interfaces/interface.publicconfig.md)

公共配置对象，即为原照片墙项目目录public/config.js中的对象。

___

### queryStringConfig

• `Optional` **queryStringConfig**: *undefined* \| [*queryStringConfig*](../interfaces/interface.querystringconfig.md)

原本从url中读取的查询字符串参数
