Can I use Yandex Maps in a Nokiax app?
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , Basically the rules of using APIs is very simple. If the API is not requiring any parts that are not available in the platform, then it works. Thus if the API is using parts that are supported in AOSP 4.1.2 API level 16, and using any Google services, then it is likely to work just fine.
|
How to specify the size Yandex maps?
Date : March 29 2020, 07:55 AM
wish of those help Seems, documentation contains inaccuracy description, just use setter for options properties, something like this: balloon.options.set('panelMaxMapArea', 480);
balloon.options.set('closeButton', false);
// and etc...
|
Angularjs + Yandex Maps
Date : March 29 2020, 07:55 AM
will be helpful for those in need Promblem here in style for non-standard tag ya-map. By default browser set it display property to "inline", so without text element collapse to width:0, height:0. Also, you not use any functions declared in controller. var myApp = angular
.module('myApp', ['yaMap'])
.controller("myController", function($scope) {
var _map;
$scope.afterMapInit = function(map) {
_map = map;
};
$scope.del = function() {
_map.destroy();
};
});
ya-map {
display: block;
width: 400px;
height: 500px;
}
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.0/angular.js"></script>
<script src="//rawgit.com/tulov/angular-yandex-map/master/ya-map-2.1.min.js"></script>
<div id="map" class="w3-col s10 w3-dark w3-border" ng-app="myApp" ng-controller="myController">
<ya-map ya-zoom="8" ya-center="[37.64,55.76]" ya-after-init="afterMapInit($target)"></ya-map>
<button ng-click="del()">Удалить</button>
</div>
|
403 Forbidden in Yandex Weather API
Date : March 29 2020, 07:55 AM
I wish this helpful for you If You use HttpURLConnection may be some parameters of header missing (like content-type or encoding). And probably HttpURLConnection should be configured like setRequestMethod("GET"); or something like that: HTTP Authentication, Proxy, Cookies and so on (take a look at Official Documentation).
|
Yandex Maps API: add multiple placemarks
Date : March 29 2020, 07:55 AM
around this issue Yes, use Object Manager and organize your data into objects collection. Yandex Maps API provides convenient way for that case. Here is the simple example according to your data: ymaps.ready(init);
function init() {
var map = new ymaps.Map('map', {
center: [55.76, 37.64], // lat, long
zoom: 5,
controls: ['zoomControl', 'fullscreenControl']
});
// Objects collection
var collection = {
type: "FeatureCollection",
features: [
{
type: "Feature",
id: 0,
geometry: {
type: "Point",
coordinates: [55.684758, 37.738521]
},
properties: {
balloonContent: "Moskow"
}
},
{
type: "Feature",
id: 1,
geometry: {
type: "Point",
coordinates: [59.939095, 30.315868]
},
properties: {
balloonContent: "Saint Petersburg"
}
}
]
};
// Object Manager
objectManager = new ymaps.ObjectManager({ clusterize: true });
objectManager.add(collection);
map.geoObjects.add(objectManager);
}
|