iOS百度地图SDK不显示地图只显示网格及默认显示北京天安门的问题

2016年07月17日 iOS 5条评论 阅读12005次

iOS百度地图SDK不显示地图只显示网格及默认显示北京天安门的问题

在iOS上集成百度地图SDK,遇到了两个问题,记录在此文。

  1. iOS百度地图SDK只显示网格,不显示地图

    这个多数情况下是和申请的AK有关,现在百度地图的API控制台中,AK申请时还必须要填写bound identifier,这个应用的bound identifier是和AK关联的,在开发中两个必须都要和申请时一致,否则就会出现本错误现象。

  2. iOS地图SDK上, 初始显示北京

    这种情况只能说是百度地图SDK挖的一个大坑,翻遍提供demo中所有的代码,也没有看到设置初始显示区域/城市为北京的坐标代码或城市ID等信息。

    和个多亏网上论坛上有人指点,才得知,想要在地图上显示自己指定的区域/城市,需要在ViewContrlller的viewwillappear方法里,百度地图[mapView viewwillappear ];之前对mapView调用下centerCoordinate方法即可把自己想要的坐标设置一下即可。

此致,文末。



分享本文至:

WRITTEN BY

avatar
本文标签:iOSbaidumapsdk
看了本文是不是觉得很赞,那就赶紧点击下面按钮分享给身边的朋友吧!

5 条评论

  1. avatar tvpchicago

    <a href="http://www.claudefremont.com/nike-kwazi-action-noir-vert-chaussuresf">nike kwazi action noir vert</a> <a href="http://www.jlredcross.com/jordan-superfly-3-alle-wei%C3%9F-butya">jordan superfly 3 alle wei脽</a> <a href="http://www.maracamp.com/air-max-90-cuir-schuheg">air max 90 cuir</a> <a href="http://www.neveudigital.com/ralph-lauren-shorts-rosa-rot-polou">ralph lauren shorts rosa rot</a> <a href="http://www.obervall.com/nike-hyperdunk-2016-rot-and-schwarz-chaussuresa">nike hyperdunk 2016 rot and schwarz</a> <a href="http://www.twiggyallure.com/nike-flyknit-roshe-run-triple-gris-schuhed">nike flyknit roshe run triple gris</a>
    tvpchicago http://www.tvpchicago.com/

  2. avatar umuttekelbayi

    <a href="http://www.bhcsboosters.com/jordan-2-hvit-and-gr%C3%A5-chaussuresa">jordan 2 hvit and gr氓</a> <a href="http://www.denisgoulart.com/game-jason-fox-jersey-miami-dolphins-74-road-white-nflg">game jason fox jersey miami dolphins 74 road white</a> <a href="http://www.donggeomdo.com/adidas-nmd-runner-pk-on-feet-runningg">adidas nmd runner pk on feet</a> <a href="http://www.ozoessaouira.com/zdeno-chara-33-boston-bruins-reebok-premier-alternate-jersey-small-nflv">zdeno chara 33 boston bruins reebok premier alternate jersey small</a> <a href="http://www.annomaplexel.com/nike-air-jordan-11-low-blue-trainersa">nike air jordan 11 low blue</a> <a href="http://www.bringribben.com/adidas-john-wtodas-3-p%C3%BArpura-oro-scarpec">adidas john wtodas 3 p煤rpura oro</a>
    umuttekelbayi http://www.umuttekelbayi.com/

  3. avatar cathmanuel

    <a href="http://www.newjerseycdl.com/nike-flyknit-air-vapormax-blu-arancia-scarpea">nike flyknit air vapormax blu arancia</a> <a href="http://www.rongifc.com/adidas-rose-773-2-blau-kurpese">adidas rose 773 2 blau</a> <a href="http://www.theartofdecay.com/nfl-morgan-cox-womens-purple-46-baltimore-ravens-nike-name-number-logo-long-sleeve-t-shirt-nflr">nfl morgan cox womens purple 46 baltimore ravens nike name number logo long sleeve t shirt</a> <a href="http://www.uffelfinn.com/nike-roshe-two-flyknit-guld-brun-kurpese">nike roshe two flyknit guld brun</a> <a href="http://www.abbiemorrison.com/flyknit-trainer-orange-bl%C3%A5-cross-schuhef">flyknit trainer orange bl氓 cross</a> <a href="http://www.buditrek.com/nike-air-max-lunar-1-for-venta-obuvg">nike air max lunar 1 for venta</a>
    cathmanuel http://www.cathmanuel.com/

  4. avatar donggeomdo

    <a href="http://www.miendiation.com/new-balance-990-purple-blue-runninge">new balance 990 purple blue</a> <a href="http://www.powfarm.com/adidas-pr%C3%B8dator-uk-salg-schuhea">adidas pr酶dator uk salg</a> <a href="http://www.nongmobacon.com/adidas-battle-pack-projoator-mercadolibre-scarpeb">adidas battle pack projoator mercadolibre</a> <a href="http://www.rentalloka.com/nike-air-max-95-green-spain-shoeso">nike air max 95 green spain</a> <a href="http://www.casamentosweb.com/nike-flyknit-racer-lagoon-blau-label-kurpesb">nike flyknit racer lagoon blau label</a> <a href="http://www.perheopas.com/air-jordan-phase-23-zapatost">air jordan phase 23</a>
    [url=http://www.donggeomdo.com/]donggeomdo[/url]

  5. avatar gfkofl99

    <a href="http://www.wwc3s90g.com/air-jordan-reveal-orange-lyser%C3%B8d-butye">air jordan reveal orange lyser酶d</a> <a href="http://www.18ykuccs.com/zx-630-svart-l%C3%B8ping-scarped">zx 630 svart l酶ping</a> <a href="http://www.ofv56fjb.com/air-jordan-retro-11-negro-brojo-schuhea">air jordan retro 11 negro brojo</a> <a href="http://www.iwd661th.com/kvinders-nike-lunarglide-6-bl%C3%A5-hvid-kurpesb">kvinders nike lunarglide 6 bl氓 hvid</a> <a href="http://www.lv5sb333.com/jordan-4-rosso-laser-schuhef">jordan 4 rosso laser</a> <a href="http://www.dzpzobo7.com/nike-flyknit-agility-marr%C3%B3n-azul-butye">nike flyknit agility marr贸n azul</a>
    gfkofl99 http://www.gfkofl99.com/

欢迎留言




用户登录

sitemap