国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Home WeChat Applet Mini Program Development WeChat Mini Program Map Detailed Explanation and Simple Examples

WeChat Mini Program Map Detailed Explanation and Simple Examples

May 24, 2018 am 09:24 AM

WeChat Mini Program Map

WeChat Mini Program map

MAP

##longitudeNumberCentral longitudelatitudeNumberCentral latitudescaleNumber1zoom levelmarkersArrayMark pointscoversArrayCovering
Attribute Name Type Default value Description

Marker point

Marker point is used to display the location of the marker on the map. The icon and style cannot be customized

AttributesDescriptionTypeRequiredRemarkslatitudeLatitudeNumber is a floating point number, ranging from -90 ~ 90longitudeLongitudeNumber is a floating point number, ranging from -180 ~ 180nameMark the roll callString isdescMarking point detailed descriptionStringNo

Cover

The overlay is used to display custom icons on the map. The icons and styles can be customized

PropertiesDescriptionTypeRequiredRemarks##latitudelongitudeiconPathrotateThe longitude and latitude of the map component is required, if If you do not fill in the longitude and latitude, the default value is the longitude and latitude of Beijing.
Latitude Number is a floating point number, ranging from -90 ~ 90
Longitude Number is a floating point number, ranging from -180 ~ 180
The displayed icon String is the image path in the project directory, supporting relative path writing
Rotation angle Number No The angle of clockwise rotation, range 0 ~ 360, default is 0

Markers can only be set during initialization and do not support dynamic updates.

Example:

<!-- map.wxml -->
<map longitude="23.099994" latitude="113.324520" markers="{{markers}}" covers="{{covers}}"
 style="width: 375px; height: 200px;">
</map>
// map.js
Page({
 data: {
  markers: [{
   latitude: 23.099994,
   longitude: 113.324520,
   name: &#39;T.I.T 創(chuàng)意園&#39;,
   desc: &#39;我現(xiàn)在的位置&#39;
  }],
  covers: [{
   latitude: 23.099794,
   longitude: 113.324520,
   icaonPath: &#39;../images/car.png&#39;,
   rotate: 10
  }, {
   latitude: 23.099298,
   longitude: 113.324129,
   iconPath: &#39;../images/car.png&#39;,
   rotate: 90
  }]
 }
})
Bug & Tip

tip: Do not use the map component in scroll-view

Thanks for reading , hope it can help everyone, thank you for your support of this site!

For more WeChat applet map details and simple examples, please pay attention to the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)