Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use the built-in map for store navigation on Mini Program

Shulou Source: shulou.com Published: 2022-06-01 05:47:02 10月03日 Update

This article mainly explains "how Mini Program uses the built-in map for store navigation". 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 how Mini Program uses the built-in map for store navigation.

The realization of Mini Program Map Navigation Mini Program Map Navigation function the text on Mini Program map explains how to achieve Mini Program map and how to obtain two points of distance.

Html

Add bindtap= "click" to map.wxml, click on the map and jump to navigation

Javascript

Click: function (e) {

Wx.openLocation ({

Latitude: 23.362490

Longitude: 116.715790

Scale: 18

Name: Huaqian Mansion

93 Changping Road, Jinping District, address:''

})

}

Wx.openLocation is location API, the role is to open Wechat built-in map, click on the built-in map can be called for navigation, can be used as a store navigation category.

At this point, I believe you have a better understanding of "how Mini Program uses the built-in map for store navigation". 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!

Tags: Maps programs navigation stores content learning practical deeper functions interests functions district heads buildings practicality practical simple operation text methods more friends Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Linux Shulou Technology OPPO Reno MySQL