dimik / ymaps Goto Github PK
View Code? Open in Web Editor NEWymaps extensions and examples
ymaps extensions and examples
https://github.com/dimik/ymaps/blob/gh-pages/examples/map-location/map-location.js#L161
В FF33 document.location.hash приходит не в urlencoded виде "#center=55.580091,37.311762&zoom=13&type=yandex#map", и regex /[^?&#]+(?=&|$)/g не парсит тип карты.
Так работает: location.slice(1).replace(/[^?&]+(?=&|$)/g, function (s) {
Как может быть такое??
на скрине
http://screencast.com/t/WX9undoLFyA
первые шесть адресов - это порядок элементов в массиве получаемом из моей системы:
for (var k in addrArr) {
if(addrArr[k].addr) points.push(addrArr[k].addr);
console.log(addrArr[k].addr)
x++;
}
вторые, выделенные шесть адресов - порядок массива после геокодирования:
var multiGeocoder = new MultiplyGeocoder({ results: 1 });
multiGeocoder
.geocode(points)
.then(
function (res) {
var iterator = res.geoObjects.getIterator();
var next;
while(next = iterator.getNext()) {
console.log(next.properties._i.text)
}
);
Что это и как с этим бороться?
Вот в этом примере:
http://dimik.github.io/ymaps/examples/regions/
Питер почему-то залит непрозрачным. Почему так и как от этого избавится? Что-то не нашел чтобы это делалось специально.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.