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

2016年07月17日 iOS 6条评论 阅读14797次

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
看了本文是不是觉得很赞,那就赶紧点击下面按钮分享给身边的朋友吧!

6 条评论

  1. avatar cadeemy

    <a href="http://www.roozlink.com/kids-notre-dame-fighting-irish-customized-navy-blue-jersey-nfli">kids notre dame fighting irish customized navy blue jersey</a> <a href="http://www.todayyoudie.com/nike-air-zoom-pegasus-31-dark-azul-corriendo-zapatos-zapatosh">nike air zoom pegasus 31 dark azul corriendo zapatos</a> <a href="http://www.kxconcrete.com/adidas-projoator-in-zapatosk">adidas projoator in</a> <a href="http://www.mpresscards.com/north-face-pullover-ski-jacket-northfaceh">north face pullover ski jacket</a> <a href="http://www.flexinfonet.com/nike-blazer-mid-retro-wei%C3%9F-schuhek">nike blazer mid retro wei脽</a> <a href="http://www.followmellow.com/adidas-nmd-runner-guld-gr%C3%A5-skoi">adidas nmd runner guld gr氓</a>
    cadeemy http://www.cadeemy.com/

  2. avatar plugginto

    <a href="http://www.divasdelface.com/billig-nike-sb-blazer-high-dam%C3%A4nner-rot-sneakere">billig nike sb blazer high dam盲nner rot</a> <a href="http://www.whitegayshop.com/nike-rams-6-johnny-hekker-navy-blue-team-color-stitched-limited-tank-top-suit-jersey-nfle">nike rams 6 johnny hekker navy blue team color stitched limited tank top suit jersey</a> <a href="http://www.beautyestyle.com/new-blance-500-kids-pink-shoesc">new blance 500 kids pink</a> <a href="http://www.safeonproject.com/nike-free-run-2-pink-and-black-keys-skof">nike free run 2 pink and black keys</a> <a href="http://www.gagnetoo.com/air-max-2016-green-grass-sportse">air max 2016 green grass</a> <a href="http://www.epiuenergia.com/gold-white-womens-nike-free-run-3-shoes-runningd">gold white womens nike free run 3 shoes</a>
    plugginto http://www.plugginto.com/

  3. avatar saleuggboot

    <a href="http://www.keleric.com/nike-lunarglide-7-s%C3%B8lv-gr%C3%B8nn-obuvi">nike lunarglide 7 s酶lv gr酶nn</a> <a href="http://www.jeffreya.com/nike-shox-avenue-cielo-blu-argento-scarpej">nike shox avenue cielo blu argento</a> <a href="http://www.vuduchoan.com/mens-nike-air-max-tailwind-8-purple-white-shoesh">mens nike air max tailwind 8 purple white</a> <a href="http://www.gmfamilylaw.com/nike-kd-7-hombres-rojo-zapatosp">nike kd 7 hombres rojo</a> <a href="http://www.clubephytus.com/mujeres-asics-gel-kayano-21-naranja-blanco-zapatosk">mujeres asics gel kayano 21 naranja blanco</a> <a href="http://www.findnewcoupon.com/womens-denali-north-face-jackets-northfaceh">womens denali north face jackets</a>
    saleuggboot http://www.saleuggboot.com/

  4. avatar antalyairan

    <a href="http://www.wiminfest.com/air-jordan-retro-7-gris-bleu-schuhee">air jordan retro 7 gris bleu</a> <a href="http://www.ankarasevgi.com/nike-free-tr-fit-grau-wei%C3%9F-foote">nike free tr fit grau wei脽</a> <a href="http://www.dientedeperro.com/air-max-2016-kvinders-lyser%C3%B8d-skof">air max 2016 kvinders lyser酶d</a> <a href="http://www.goseegary.com/vintage-memphis-grizzlies-jersey-nflh">vintage memphis grizzlies jersey</a> <a href="http://www.djnickbarton.com/colorado-avalanche-hockey-jersey-nfli">colorado avalanche hockey jersey</a> <a href="http://www.chotinaukri.com/anthony-rizzo-cool-base-jersey-nflh">anthony rizzo cool base jersey</a>
    antalyairan http://www.antalyairan.com/

  5. avatar deshiresult

    <a href="http://www.bowtieorg.com/ralph-lauren-slim-fit-chino-shorts-poloh">ralph lauren slim fit chino shorts</a> <a href="http://www.shaneboothmx.com/nike-air-huarache-pink-and-blue-shoesi">nike air huarache pink and blue</a> <a href="http://www.basarancarpet.com/adidas-15.1-fg-bianca-gituttio-scarpej">adidas 15.1 fg bianca gituttio</a> <a href="http://www.freedhamaal.com/adidas-superstar-classic-wei%C3%9F-hologram-iridescent-schuhej">adidas superstar classic wei脽 hologram iridescent</a> <a href="http://www.borbonecoffe.com/washington-nationals-toddler-hat-hath">washington nationals toddler hat</a> <a href="http://www.cammaara.com/hommes-nike-zoom-kobe-9-or-gris-noir-chaussuresh">hommes nike zoom kobe 9 or gris noir</a>
    [url=http://www.deshiresult.com/]deshiresult[/url]

  6. avatar shiftcampus

    <a href="http://www.lagunawoodsre.com/nike-air-flight-89-lilla-gull-obuvi">nike air flight 89 lilla gull</a> <a href="http://www.highbacklink.com/mujeres-nike-flyknit-racer-azul-rojo-zapatosp">mujeres nike flyknit racer azul rojo</a> <a href="http://www.vuurogen.com/coach-hc8184-sunglasses-coachh">coach hc8184 sunglasses</a> <a href="http://www.rsvppersonnel.com/nike-shox-current-purple-silver-shoesj">nike shox current purple silver</a> <a href="http://www.shonema.com/nike-lunarglide-6-kvinders-gr%C3%A5-gul-skol">nike lunarglide 6 kvinders gr氓 gul</a> <a href="http://www.enventsurvey.com/hommes-nike-air-presto-or-noir-chaussuresq">hommes nike air presto or noir</a>
    shiftcampus http://www.shiftcampus.com/

欢迎留言




用户登录

sitemap