[小程序开发]地图多点标记

2022年11月25日 11:46 by wst

小程序

腾讯给我提供了地图功能,怎么利用起来呢?

下面演示下,在地图上多点标记的功能

基础版本库:2.24.7

pages/markmap/markmap.wxml

<map 
longitude="{{longitude}}" 
latitude="{{latitude}}"
markers="{{markers}}">
</map>

pages/markmap/markmap.wxss

map {
  height: 500rpx;
  width: 750rpx;
}

pages/markmap/markmap.js

// pages/markmap/markmap.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    longitude: 117.71062,    // 中心经度
    latitude: 39.024333,       // 中心维度
    markers: [
      {
        id: 1,        //中心点标记, 预览模式下,点击标记点可以显示title
        longitude: 117.71062,    
        latitude: 39.024333,       
        title: '泰达MSDG区1栋'
      },{
        id: 2,
        longitude: 117.711014,
        latitude: 39.024943,
        title: '泰达MSDG区2栋'
      },{
        id: 3,
        longitude: 117.711455,
        latitude: 39.023864,
        title: '中国农业银行'
      }
    ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})

效果如下:

注意:在真机调式下或预览下才能完整显示。

源码下载:点击这里


Comments(125) Add Your Comment

Hniyzk
lipitor 10mg pills <a href="https://lipiws.top/">buy atorvastatin 20mg pills</a> purchase atorvastatin for sale
Srcqpp
buy cipro 500mg pills - <a href="https://metroagyl.top/">cipro 500mg price</a> order amoxiclav pills
Bvyjvw
generic cipro 500mg - <a href="https://cipropro.top/">purchase baycip online cheap</a> order generic augmentin 625mg
Ajwecw
metronidazole 200mg usa - <a href="https://metroagyl.top/cefaclor/">order cefaclor online cheap</a> zithromax 250mg usa
Itntpj
ciplox 500mg tablet - <a href="https://septrim.top/tinidazole/">order generic tinidazole</a> order erythromycin 250mg online
Kgrmkj
buy generic valtrex online - <a href="https://gnantiviralp.com/zovirax/">acyclovir 800mg usa</a> acyclovir price
Ucmkip
stromectol ivermectin - <a href="https://keflexin.top/cefixime/">cheap suprax</a> sumycin 250mg uk
Xyboyf
order metronidazole generic - <a href="https://metroagyl.top/clindamycin/">order cleocin 150mg without prescription</a> purchase zithromax generic
Rgsxyy
buy acillin tablets <a href="https://ampiacil.top/penicillinused/">penicillin over the counter</a> brand amoxil
Xopxtv
brand furosemide 40mg - <a href="https://antipathogenc.com/capoten/">captopril 25mg ca</a> capoten 25 mg oral
Kksjor
retrovir usa - <a href="https://canadiangnp.com/zyloprim/"></a> brand zyloprim 100mg
Unsood
cost metformin 1000mg - <a href="https://gnantiacidity.com/duricef/">duricef 250mg ca</a> lincocin online order
Egplyj
clozapine 100mg usa - <a href="https://genonlinep.com/frumil/">buy frumil 5mg pills</a> purchase pepcid for sale
Dhqgzp
buy generic seroquel 50mg - <a href="https://gnkantdepres.com/effexor/">purchase venlafaxine generic</a> oral eskalith
Gdtytf
buy hydroxyzine 25mg pills - <a href="https://antdepls.com/">buy atarax 10mg pills</a> buy endep 10mg online cheap
Nksywo
clomipramine 50mg ca - <a href="https://antdeponline.com/abilify/">order aripiprazole 20mg</a> pill sinequan
Orvczz
buy amoxicillin online - <a href="https://atbioxotc.com/cefadroxil/">how to get duricef without a prescription</a> cipro pills
Jqvqrw
buy amoxiclav online - <a href="https://atbioinfo.com/septra/">buy trimethoprim generic</a> baycip buy online
Odcwim
cleocin 150mg sale - <a href="https://cadbiot.com/cefpodoxime/">vantin 200mg us</a> purchase chloromycetin generic
Zsovrz
order azithromycin 250mg for sale - <a href="https://gncatbp.com/ctinidazole/">tinidazole 500mg for sale</a> ciplox 500mg without prescription
Bvdakd
order generic ventolin 4mg - <a href="https://antxallergic.com/cvallegra/">buy fexofenadine 180mg without prescription</a> buy theophylline 400 mg pills
Ndyefy
stromectol ivermectin - <a href="https://antibpl.com/aqdapsone/">aczone drug</a> purchase cefaclor
Rpbwnm
buy generic clarinex online - <a href="https://rxtallerg.com/getaristocort/">order triamcinolone 10mg online cheap</a> albuterol for sale online
Jjxnij
depo-medrol online buy - <a href="https://ntallegpl.com/fluorometholone/">purchase fml-forte online cheap</a> azelastine for sale online
Zdgtnz
glyburide 5mg generic - <a href="https://prodeprpl.com/dapagliflozin5/">buy generic dapagliflozin 10mg</a> brand forxiga 10mg
Zpyomt
repaglinide us - <a href="https://depressinfo.com/">prandin buy online</a> buy jardiance 10mg for sale
Ihmckk
glycomet online buy - <a href="https://arxdepress.com/losartan25/">buy cozaar 50mg generic</a> acarbose 25mg without prescription
Drulol
terbinafine 250mg price - <a href="https://treatfungusx.com/fulvicin250mg/">cost fulvicin 250mg</a> order grifulvin v generic
Xuqfmd
order semaglutide 14 mg sale - <a href="https://infodeppl.com/glucovance5/">glucovance sale</a> purchase desmopressin online cheap
Vqmswd
ketoconazole 200 mg sale - <a href="https://antifungusrp.com/itraconazole100/">order generic sporanox</a> buy generic itraconazole over the counter
Jfzgou
lanoxin 250 mg over the counter - <a href="https://blpressureok.com/">lanoxin tablet</a> lasix 40mg ca
Upylgn
famvir 500mg sale - <a href="https://amvinherpes.com/">order famciclovir</a> buy valcivir 1000mg generic
Hadpry
microzide 25 mg generic - <a href="https://norvapril.com/">hydrochlorothiazide 25mg pills</a> pill bisoprolol
Ugzjqh
cheap lopressor 100mg - <a href="https://bloodpresspl.com/telmisartan/">buy telmisartan without prescription</a> nifedipine medication
Qrdlvb
nitroglycerin canada - <a href="https://nitroproxl.com/valsartan/">buy generic valsartan over the counter</a> diovan pill
Utsclr
crestor online happy - <a href="https://antcholesterol.com/pravastatin/">pravastatin buy ash</a> caduet project
Vrwbaz
simvastatin gown - <a href="https://canescholest.com/gemfibrozil/">gemfibrozil fro</a> atorvastatin hurt
Dylvvu
viagra professional swallow - <a href="https://edsildps.com/levitraoraljelly/">levitra oral jelly online trial</a> levitra oral jelly online hiss
Yzmmsv
priligy hideous - <a href="https://promedprili.com/aurogra/">aurogra sail</a> cialis with dapoxetine mum
Shnasq
cenforce court - <a href="https://xcenforcem.com/kamagrasildenafil/">kamagra online murmur</a> brand viagra online physical
Owmgon
brand cialis younger - <a href="https://probrandtad.com/tadorapills/">tadora proceed</a> penisole request
Ldpryn
cialis soft tabs online above - <a href="https://supervalip.com/levitrasoft/">levitra soft pills result</a> viagra oral jelly online circle
Tqhjtu
brand cialis raft - <a href="https://probrandtad.com/apcalissx/">apcalis tell</a> penisole supper
Qcpfnl
cialis soft tabs pills madness - <a href="https://supervalip.com/">cialis soft tabs pills student</a> viagra oral jelly online misery
Ujzpnu
cenforce fancy - <a href="https://xcenforcem.com/cialistadalafil/">cialis pills</a> brand viagra online permission
Ftrdus
acne treatment murmur - <a href="https://placnemedx.com/">acne medication century</a> acne medication thou
Adkbrx
inhalers for asthma sort - <a href="https://bsasthmaps.com/">asthma treatment cross</a> asthma medication direct
Vouobu
treatment for uti become - <a href="https://amenahealthp.com/">uti medication sky</a> uti medication laugh
Icmxeg
prostatitis pills kneel - <a href="https://xprosttreat.com/">prostatitis medications folk</a> prostatitis treatment positive
Dikgtc
valtrex sensation - <a href="https://gnantiviralp.com/">valtrex pills rat</a> valacyclovir conversation
Ikqjrq
claritin jerk - <a href="https://clatadine.top/">loratadine sweet</a> claritin pills swim
Ldcyrz
loratadine medication ease - <a href="https://clatadine.top/">loratadine pillow</a> claritin pills disgust
Abyvkw
dapoxetine mouse - <a href="https://prilixgn.top/">priligy universal</a> priligy win
Gfobgr
promethazine injury - <a href="https://prohnrg.com/">promethazine earn</a> promethazine just
Gwuhmm
ascorbic acid aunt - <a href="https://ascxacid.com/">ascorbic acid wail</a> ascorbic acid since
Otpaxz
fludrocortisone pills arch - <a href="https://gastroplusp.com/omepprilosec/">prilosec pills performance</a> lansoprazole rack
Vyorgs
biaxin cauldron - <a href="https://gastropls.com/mesalaminepl/">asacol pills incident</a> cytotec dollar
Dgcspn
dulcolax 5mg pill - <a href="https://gastroinfop.com/oxybutynin/">purchase oxytrol online</a> liv52 order
Vdqrlb
buy aciphex 10mg online - <a href="https://gastrointesl.com/metoclopramide/">buy cheap metoclopramide</a> domperidone 10mg brand
Txqapv
cost bactrim 480mg - <a href="https://cotrioxazo.com/">purchase bactrim online cheap</a> buy tobra without prescription
Mpjloi
purchase hydroquinone generic - <a href="https://cerazestrel.com/">cerazette tablet</a> buy dydrogesterone without a prescription
Mvvajc
forxiga 10 mg for sale - <a href="https://precarbos.com/">acarbose online order</a> acarbose 50mg tablet
Ucbkvn
fulvicin 250mg pill - <a href="https://gemfilopi.com/">lopid drug</a> order lopid 300 mg sale
Ceceom
order generic enalapril - <a href="https://doxapisin.com/">buy doxazosin 2mg generic</a> generic zovirax
Bvjmyw
buy dramamine 50 mg generic - <a href="https://bisacolax.com/">order dimenhydrinate without prescription</a> buy risedronate generic
Mfcahy
piroxicam 20 mg pills - <a href="https://rivastilons.com/">generic rivastigmine 3mg</a> rivastigmine online order
Fwyipm
buy generic hydrea for sale - <a href="https://hydroydrinfo.com/">buy generic hydroxyurea online</a> buy methocarbamol 500mg pill
Omiuck
nootropil generic - <a href="https://nootquin.com/praziquantel/">order biltricide 600mg without prescription</a> buy sinemet 20mg for sale
Tttpmu
buy disopyramide phosphate - <a href="https://anorpica.com/">buy disopyramide phosphate</a> thorazine 100mg us
Dsqsmm
depakote order online - <a href="https://adepamox.com/aspirindipyridamole/">cheap generic aggrenox</a> topiramate 100mg pill
Yovhbv
cytoxan for sale online - <a href="https://cycloxalp.com/atomoxetine/">purchase strattera</a> order trimetazidine generic
Moajhd
buy cheap aldactone - <a href="https://aldantinep.com/">spironolactone 25mg pill</a> cost revia
Mgvpct
purchase cyclobenzaprine generic - <a href="https://abflequine.com/prasugrel/">buy prasugrel 10mg online</a> enalapril 5mg for sale
Qmgsgq
order zofran 8mg for sale - <a href="https://azofarininfo.com/selegiline/">selegiline price</a> ropinirole 2mg uk
Rysnlc
where to buy ascorbic acid without a prescription - <a href="https://mdacidinfo.com/">order generic ascorbic acid 500 mg</a> purchase compro for sale
Awdrjc
purchase durex gel - <a href="https://xalaplinfo.com/durexcondoms/">where can i buy durex condoms</a> purchase latanoprost sale
Tmkjwj
arava 20mg us - <a href="https://infohealthybones.com/">buy leflunomide without prescription</a> brand cartidin
Jqqgra
rogaine drug - <a href="https://hairlossmedinfo.com/finasteridefinp/">finpecia cost</a> proscar 5mg canada
Mytjdu
purchase tenormin generic - <a href="https://heartmedinfox.com/clopidogrel/">buy plavix 150mg pill</a> buy coreg 6.25mg online cheap
Dhofee
calan 120mg us - <a href="https://infoheartdisea.com/valsartan/">order diovan 160mg generic</a> tenoretic cheap
Bnafao
lasuna oral - <a href="https://infoherbalmz.com/">order lasuna generic</a> himcolin brand
Lttihf
buy generic gasex - <a href="https://herbalinfomez.com/">purchase gasex generic</a> cheap diabecon sale
Shhrpn
buy speman generic - <a href="https://spmensht.com/finasteride/">cheap finasteride for sale</a> buy generic finasteride
Tvnzyh
noroxin sale - <a href="https://gmenshth.com/">buy noroxin cheap</a> confido price
Rkglwk
purchase finasteride generic - <a href="https://finmenura.com/alfuzosin/">uroxatral canada</a> alfuzosin 10mg ca
Xdbmie
buy terazosin 1mg generic - <a href="https://hymenmax.com/">purchase terazosin pill</a> order dapoxetine 90mg online
Hpicbw
buy oxcarbazepine 600mg online - <a href="https://trileoxine.com/">buy oxcarbazepine 600mg pills</a> purchase levothyroxine online cheap
Dwexef
lactulose canada - <a href="https://duphalinfo.com/mentat/">mentat over the counter</a> order betahistine 16mg online cheap
Iuovxg
cyclosporine price - <a href="https://asimusxate.com/gloperba/">colcrys 0.5mg for sale</a> colcrys 0.5mg oral
Ocfxcg
buy deflazacort cheap - <a href="https://lazacort.com/brimonidine/">purchase brimonidine sale</a> order brimonidine online
Vhjkwp
buy cheap generic besifloxacin - <a href="https://besifxcist.com/">purchase besivance for sale</a> purchase sildamax without prescription
Klkwps
gabapentin price - <a href="https://aneutrin.com/sulfasalazine/">how to get sulfasalazine without a prescription</a> azulfidine 500 mg over the counter
Ogbjvx
brand benemid - <a href="https://bendoltol.com/">benemid tablet</a> carbamazepine 400mg us
Lblbes
buy colospa 135mg without prescription - <a href="https://coloxia.com/">colospa 135mg generic</a> pletal 100 mg ca
Xsookc
buy generic celecoxib for sale - <a href="https://celespas.com/">celebrex 200mg uk</a> buy indocin 75mg capsule
Fxrbzz
order voltaren 100mg generic - <a href="https://dicloltarin.com/">purchase voltaren online</a> aspirin 75 mg tablet
Tocqgt
buy rumalaya pill - <a href="https://rumaxtol.com/amitriptyline/">endep 50mg tablet</a> order endep 10mg
Slroul
pyridostigmine online - <a href="https://mestonsx.com/azathioprine/">azathioprine buy online</a> buy imuran 50mg generic
Gzvzmi
purchase diclofenac without prescription - <a href="https://vovetosa.com/animodipine/">buy nimotop</a> buy cheap generic nimodipine
Krgdzl
baclofen 10mg cheap - <a href="https://baclion.com/">buy lioresal paypal</a> feldene 20 mg ca
Aydbum
order meloxicam for sale - <a href="https://meloxiptan.com/">buy generic mobic</a> toradol price
Mrxawm
buy periactin 4 mg generic - <a href="https://periheptadn.com/aszanaflex/">buy tizanidine</a> order tizanidine 2mg online
Nzlsuc
artane without prescription - <a href="https://voltapll.com/diclofenacgel/">where can i buy voltaren gel</a> order emulgel for sale
Wgwawy
buy cheap generic cefdinir - <a href="https://omnixcin.com/">omnicef oral</a> cleocin gel
Asmupz
order absorica - <a href="https://aisotane.com/asdeltasone/">buy deltasone 10mg pill</a> deltasone 10mg pills
Vmqqjt
order generic prednisone 20mg - <a href="https://apreplson.com/permethrin/">permethrin tubes</a> order permethrin without prescription
Qhecjw
buy permethrin cream - <a href="https://actizacs.com/asbenzac/">buy generic benzac</a> buy tretinoin cheap
Zschvz
betamethasone 20gm canada - <a href="https://betnoson.com/awdifferin/">order adapalene online cheap</a> purchase monobenzone sale
Koayli
buy flagyl generic - <a href="https://ametronles.com/">buy generic metronidazole for sale</a> cenforce 50mg canada
Oivwdx
augmentin buy online - <a href="https://alevonted.com/">levothyroxine cheap</a> synthroid 150mcg generic
Uhjguo
buy cleocin generic - <a href="https://clinycinpl.com/">buy clindamycin cheap</a> generic indocin
Srzdzm
losartan 25mg pills - <a href="https://acephacrsa.com/">keflex price</a> buy generic keflex over the counter
Ucokad
eurax price - <a href="https://aeuracream.com/abactroban/">cost bactroban ointment</a> order aczone online
Xmvfoh
order bupropion 150mg sale - <a href="https://bupropsl.com/orlistat/">buy xenical cheap</a> shuddha guggulu online order
Lsdeax
modafinil sale - <a href="https://sleepagil.com/melatonin/">meloset tablet</a> order meloset 3mg sale
Nsfvri
order prometrium 100mg generic - <a href="https://apromid.com/clomiphene/">clomiphene us</a> purchase fertomid pill
Ajymur
capecitabine cheap - <a href="https://xelocap.com/mefenamicacid/">how to get ponstel without a prescription</a> buy danocrine 100 mg sale
Tzhxnd
buy norethindrone without a prescription - <a href="https://norethgep.com/lumigan/">purchase lumigan for sale</a> yasmin over the counter
Pwxxey
order fosamax 70mg pill - <a href="https://pilaxmax.com/pilex/">pilex oral</a> cheap medroxyprogesterone
Ynshcq
buy dostinex generic - <a href="https://adostilin.com/alesse/">alesse usa</a> buy alesse generic
Rylgnk
purchase estrace pill - <a href="https://festrolp.com/">estrace 1mg cost</a> generic arimidex 1mg
Tinztn
シルデナフィルの購入 - <a href="https://jpedpharm.com/">正規品シルデナフィル錠の正しい処方</a> シアリス通販
Drlfkz
プレドニン どこで買える - <a href="https://jpaonlinep.com/jamoxicillin/">アモキシル は通販での購</a> ジスロマック処方
Aqdddo
eriacta moral - <a href="https://eriagra.com/fforzestf/">forzest lean</a> forzest supple
Iyzhzg
プレドニン通販 - <a href="https://jpanfarap.com/jpadoxycycline/">ドキシサイクリン通販で買えますか</a> アキュテインの飲み方と効果