问题标签 [yandex-maps]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - 如何获取地理编码更改侦听器 Yandex mapkit android?
我使用 yandex mapkit 尝试获得准确的 latlng,但它绘制准确但没有让听众失败我使用链接https://github.com/yandexmobile/yandexmapkit-android/blob/master/yandexmapkit-sample/src/ru/mapkittest/ geocode/OverlayGeoCode.java但未调用监听器 如何在每个点移动时获取监听器
谢谢, 沙比尔穆罕默德
android - Yandex Marker 在 Android 中的当前 Latlong 值
我无法在 Android 中获取 Yandex 默认标记的当前 Latlong 值。我真正感兴趣的是从 android mobile 中捕获当前的 latlong 值,而 yandex 地图标记的位置正是我所需要的。有没有人使用yandex地图来获取当前用户位置?你能帮忙吗?
更新 1
在使用 Google 和 Yandex 研究这个 latlong 问题时,我发现了来自http://gpsfix.android.informer.com/的“GPS Fix”应用程序链接。在 Android 设备上安装此应用并执行“开始修复”后,Yandex SDK 现在在我的自定义应用中提供的 latlong 值现在更接近标记的值。但是仍然有一些点显示在路边的建筑物上(我现在可以调整)。我相信“GPS 修复”应用程序确实会刷新 GPS 缓存???不确定是否有这样的事情。我仍在等待一个干净的解决方案,该解决方案无需其他应用程序的支持即可工作。
谢谢,赫曼特
javascript - Javascript - 错误的函数调用
我想要一个在每次编辑路线时都会调用一些计算的函数。
route_has_been_edited事件仅由现有路由发出(遗憾的是)。
我将取消选择routeEditor
控制的事件(这意味着刚刚创建路由)连接到函数调用。
这个无名函数routeupdate
在新生成的事件route
和计算函数之间建立了联系。
这是我的菜鸟尝试对其进行编码
我没有检查我是否正确完成了第二个事件连接,但即便如此,为什么第一个警报有效,而第二个则没有?
php - Yandex Maps Api Json 响应给出 403 未经授权的错误
我正在从 yandex maps api 中选择 json 数据。当我从浏览器调用 URL 时,它给了我真实的响应。但是当我在 php.ini 中调用此请求时,它并没有给我相同的响应。给出 403 未经授权的错误。
这是我的PHP代码:
这是回应:
为什么它给出不同的响应?非常感谢 :)
ios - 在 viewController 上显示 Yandex mapView
我已经有 yandex 的 API 密钥。我已经从https://github.com/yandexmobile/yandexmapkit-ios下载并运行了该项目。我在我的项目中创建了 Settings.h/Settings.m 文件并使用此代码来显示 mapView。
但似乎 setApiKey 不起作用。有什么建议么?
yandex-maps - 如何指定 Yandex 地图的大小?
选项问题property.panelMaxMapArea
https://tech.yandex.ru/maps/doc/jsapi/2.1/ref/reference/Balloon-docpage/#param-options.panelMaxMapArea
如何指定地图的大小,所以balloon
只有在地图宽度小于 480px 时才以面板的形式出现?
android - 使用 Retrofit 发出 Get 请求
我想使用改造向 Yandex 提出请求
制作 reuqest 的路径是http://geocode-maps.yandex.ru/1.x/?format=json&geocode=latitude%2Clongitude
现在我有这个:
当我调用它时,我得到了这个异常:
URL 查询字符串“format=json&geocode={geocode}”不能有替换块。对于动态查询参数,使用@Query。
如何正确提出请求?
android - Yandex Maps return 403 Forbidden using retrofit
When I call this link https://geocode-maps.yandex.ru/1.x/?format=json&geocode=astana on my browser it works, but when I call it using retrofit It gives me 403 Forbidden
My code is
I call it using this
and this
Why it gives to me 403 Forbidden, it doesn't need any authorization...
android - Yandex 地图不适用于 Genymotion 和某些设备
我实施了活动
ru.yandex.yandexmapkit.MapView
当我在 Asus zenfone 或 Samsung Note 3 上启动此活动时,一切正常!但是当我在 Genymotion 虚拟设备上启动时,它会抛出异常
android.view.InflateException: Binary XML file line #9: Error inflating class ru.yandex.yandexmapkit.MapView
在其他一些设备上也有同样的问题(nexus 2013)
如何更正此异常?
这是 XML
这是例外