Questions tagged [baidu-map]

37 questions
3
votes
2 answers

Show directions on Baidu maps, start/end encoded in url

I can calculate directions (json) on api.map.baidu with: http://api.map.baidu.com/direction?destination=39.988710,116.432340&origin=39.940488,116.355425&mode=driving&coord_type=wgs84 How to form similar url to display same directions over map on…
watbywbarif
  • 6,487
  • 8
  • 50
  • 64
2
votes
0 answers

Baidu map Cluster differentiates by changing the Zone

Default clusters for baidu map are changing when the number of markers clustering together changes but in the google map you can set it to have different colours outside of a specific zone for example having grey colour for clusters outside of a…
N.Taa
  • 21
  • 1
2
votes
1 answer

Delete a marker in Baidu Map js Api

I want to delete the marker which I have added to the map. However, when I add the marker by the function invoked in the javascript code, I can delete it correctly, but when I add the marker by the add button, I can not delete this marker. Is there…
Vito
  • 426
  • 3
  • 11
2
votes
0 answers

Is there a way to export baidu map data same as osm?

I need to use osm data to draw a graph, but its data of some area in China is not complete, while I'm sure Baidu map provides detailed data, but I'm not sure how to export it in the same format as OSM.
M老立
  • 347
  • 7
  • 17
2
votes
1 answer

Ionic 3: Baidu map working only in browser

In an app I'm developing with Ionic 3, I'm using the npm package angular2-baidu-map for showing maps of China mainland. I have got an API key for Baidu Maps (for the JS API), and the map is working fine in a browser (i.e. ionic serve -l), but once…
Paolo Stefan
  • 10,112
  • 5
  • 45
  • 64
2
votes
0 answers

How to draw navigation path in BaiduMap in Swift?

I Want to Draw navigation path between two Annotation point in BaiduMap. I use direction api but i don't understand how to use that one. Any one can help?
Sakir Sherasiya
  • 1,562
  • 1
  • 17
  • 31
2
votes
1 answer

How to implement cluster of points with using BaiduMap SDK?

For my Chinese users, I need to use baidu maps in my app, but i don't understand how to implement clustering using BaiduSdk. There's no any utils like in a android-maps-utils. Perhaps someone can advise libs to implement clustering for BaiduMaps?
2
votes
1 answer

How to deliver parameters to Glide Callback method?

  I use Baidu Map to display shops got from server, containing picture url. I use Glide to set Icons for map.   Here is my method which using to add Marker to map. private void setMarks(List shops) { for(ShopList shopItem :…
sunpeijie
  • 115
  • 1
  • 10
2
votes
1 answer

How generate API Key for Baidu Maps

I started to migrate my Android app to Chinese Markets and I'm replacing Google Maps with Baidu Maps, but I have problems when try to create an API key for use it. I followed the instructions that described in this previous StackOverflow question,…
emacosti06
  • 21
  • 4
2
votes
3 answers

Fit Baidu map to multiple markers like Google Maps fitBounds

Is there an equivalent in Baidu like fitBounds in GoogleMap? I have multiple markers on a Baidu map and I would like to show all the markers with the proper positioning and zoom level.
Dino Dinelli
  • 21
  • 1
  • 4
1
vote
0 answers

How to add dark mode support to Baidu map (For china region) in swift?

I need to add dark mode support in my application which uses Baidu map for china region and i am unable to find any styling which can be added to achieve the required target, thanks in advance !!
Nayyer Ali
  • 11
  • 2
1
vote
1 answer

Baidu maps release build crash : NoSuchMethodError: no static method "Lvi/com/gdi/bgl/android/java/EnvDrawText; following sample baidu map app

I integrated baidu maps as per the sample code available from the baidu maps sdk example center. Everything works fine, but in the release build baidu map crashes everytime. The error was something like this. NoSuchMethodError: no static method…
Monster Brain
  • 1,950
  • 18
  • 28
1
vote
0 answers

How to set rotation for Baidu map annotation for iOS?

I have done everything using Baidu maps SDK for iOS. But I stuck at setting the course for one of the marker. I don't see any property for annotation to set rotation, where I can see for BMKMaPView.
Himanth
  • 2,381
  • 3
  • 28
  • 41
1
vote
0 answers

Execution failed for task ':react-native-baidumap-sdk:compileDebugKotlin'

I am building a react native application in which I using react-native-baidumap-sdk. When I am trying run the application I am getting below error. Execution failed for task ':react-native-baidumap-sdk:compileDebugKotlin'. Below is my…
urfusion
  • 5,528
  • 5
  • 50
  • 87
1
vote
1 answer

How do I differentiate from which store app is installed from i.e Baidu Store / Google Play Store?

My app. is deployed in Play Store as well as Baidu Store. For notificatiions, need to differentiate from where app. is installed. When I used getInstallerPackageName() method, Redmi Note 3 returns correct value but HTC returns null. Why is this…
1
2 3