当前位置:网站首页>Coordinate location interface of wechat applet (II) map plug-in
Coordinate location interface of wechat applet (II) map plug-in
2022-06-13 02:55:00 【Tianma 3798】
Use and arrangement of coordinate position interface of wechat applet ( Two ) Map plugin
official Api: Wechat applet plug-in | Tencent location service
One 、 Plug in Introduction , plug-in unit ID:wx50b5593e81dd937a
Premise applied APIkey, And configure Api Supported applet AppID.

1、 Plug in application for access :
In Tencent wechat public platform , “ Wechat applet official background - Set up - Third party service - Plug-in management ” Click inside “ Add the plug-in ”, Search for “ Tencent location service route planning ” apply , After application, the applet developer can use the plug-in in the applet .
2、 Introducing plug-in packages : Route planning appId: wx50b5593e81dd937a
"plugins": {
"routePlan": {
"version": "1.0.18",
"provider": "wx50b5593e81dd937a"
}
}3、 Set location Authorization :
The route planning plug-in requires the applet to provide positioning authorization before it can normally use the positioning function :
"permission": {
"scope.userLocation": {
"desc": " Your location information will be used to show the effect of the applet location interface "
}
},Two 、 Route planning
Route planning using plug-ins : The travel mode cannot be fixed , Hide start position .
let plugin = requirePlugin('routePlan');
let key = '2CUBZ-ZB4RO-54LWT-SSU65-EXAJ6-CSBOG'; // Using the application in Tencent location service key
let referer = ' Applet mall '; // Calling the plug-in app The name of
let endPoint = JSON.stringify({ // End
'name': ' Yoshino ( Beijing West Railway Station Beikou store )',
'latitude': 39.89631551,
'longitude': 116.323459711
});
wx.navigateTo({
url: 'plugin://routePlan/index?key=' + key + '&referer=' + referer + '&endPoint=' + endPoint
});

3、 ... and 、 Map point selection
To be improved
Four 、 City selection
To be improved
more :
Use and arrangement of coordinate position interface of wechat applet ( Two ) Map interface
Use and arrangement of coordinate position interface of wechat applet ( One )
Wechat applet switch Style rewriting
边栏推荐
- Perfect square
- Ijkplayer source code - audio playback
- Ijkplayer source code --- decode
- mysql索引
- OpenCVSharpSample04WinForms
- Linked list: the entry node of the link in the linked list
- CV 06 demonstrates backgroundworker
- Why does it feel that most papers still use RESNET as the backbone network rather than densenet?
- Introduction and download of common data sets for in-depth learning (with network disk link)
- Opencv 17 face recognition
猜你喜欢
![[data analysis and visualization] key points of data drawing 4- problems of pie chart](/img/e1/618ff53b33b4b1de6acf4942130c17.jpg)
[data analysis and visualization] key points of data drawing 4- problems of pie chart

When the flutter runs the project, the gradle download fails, and the running gradle task 'assemblydebug' is always displayed

Detailed explanation of UCI datasets and their data processing (with 148 datasets and processing codes attached)

Data processing in detailed machine learning (II) -- Feature Normalization
![HEAP[xxx.exe]: Invalid address specified to RtlValidateHeap( 0xxxxxx, 0x000xx)](/img/c9/884aa008a185a471dfe252c0756fc1.png)
HEAP[xxx.exe]: Invalid address specified to RtlValidateHeap( 0xxxxxx, 0x000xx)

Bi modal progressive mask attention for fine graded recognition

【pytorch 记录】pytorch的变量parameter、buffer。self.register_buffer()、self.register_parameter()
![[data analysis and visualization] key points of data mapping 7- over mapping](/img/ae/d4e251b37ec4857c99f738ca981092.jpg)
[data analysis and visualization] key points of data mapping 7- over mapping

Summary of innovative ideas of transformer model in CV

Five old code farmers, program life review: peace of mind is not the place to go
随机推荐
[deep learning] fast Reid tutorial
Exam23 named windows and simplified paths, grayscale conversion
The weight of the input and textarea components of the applet is higher than that of the fixed Z-index
Delphi implements adding a column of serial number to the CXGRID list
冲刺强基计划数学物理专题一
Rounding in JS
JS multiple judgment writing
The latest Matlab r2020 B ultrasonic detailed installation tutorial (with complete installation files)
Stack: daily temperature
[data analysis and visualization] key points of data drawing 9- color selection
Prometheus node_exporter安装并注册为服务
Binary tree initialization code
Hash table: whether alien languages are sorted
How to manage the IT R & D department?
Control scanner in Delphi
House raiding
Techniques for collecting stringgrid
[data analysis and visualization] key points of data drawing 4- problems of pie chart
The extra money we made in those years
Implementing fillet in custom dialog