Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the basic attributes of WeChat Mini Programs Map map development?

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "what are the basic attributes of WeChat Mini Programs Map map development", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn what are the basic attributes of WeChat Mini Programs Map map development.

Map

Attribute name type default value indicates longitudeNumber center longitude latitudeNumber center latitude scaleNumber1 scale level markersArray marked point coversArray overlay

Marked point

Marked points are used to display the location of markers on the map, and icons and styles cannot be customized.

Attribute description type required remarks latitude latitude Number is a floating point number, range-90 ~ 90longitude longitude Number is a floating point number, range-180 ~ 180name label dot name String is desc dimension point detailed description String No

Covering material

The overlay is used to display custom icons on the map, customizable icons and styles

Attribute description type required remarks latitude latitude Number is a floating point number, range-90 ~ 90longitude longitude Number is a floating point number, range-180 ~ 180iconPath display icon String is the image path under the project directory, support relative path writing rotate rotation angle Number rotation angle clockwise, range 0 ~ 360. default is 0.

The longitude and latitude of the map component is required. If you do not fill in the longitude and latitude, the default value is the longitude and latitude of Beijing.

The marked point markers can only be set during initialization and does not support dynamic updates.

Example:

/ map.jsPage ({data: {markers: [{latitude: 23.099994, longitude: 113.324520, name: 'T.I.T Creative Park', desc: 'where I am'}], covers: [{latitude: 23.099794, longitude: 113.324520, icaonPath:'.. / images/car.png', rotate: 10}, {latitude: 23.099298, longitude: 113.324129 IconPath:'.. / images/car.png', rotate: 90}]}}) so far I believe that everyone has a deeper understanding of "what are the basic attributes of WeChat Mini Programs Map map development". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report