Skip to content

Commit

Permalink
Generated new ya-map.min.js. Changed example map parameters settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
tulov committed Dec 18, 2013
1 parent b2fa1b0 commit e52488f
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 6 deletions.
25 changes: 25 additions & 0 deletions example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,30 @@ <h3>Примеры использования Яндекс карт через
<script src="ui-bootstrap-tpls-0.6.min.js"></script>
<script src="js/app.js"></script>
<script src="ya-map.js"></script>
<!-- Yandex.Metrika counter -->
<script type="text/javascript">
(function (d, w, c) {
(w[c] = w[c] || []).push(function() {
try {
w.yaCounter23401189 = new Ya.Metrika({id:23401189,
clickmap:true,
accurateTrackBounce:true});
} catch(e) { }
});

var n = d.getElementsByTagName("script")[0],
s = d.createElement("script"),
f = function () { n.parentNode.insertBefore(s, n); };
s.type = "text/javascript";
s.async = true;
s.src = (d.location.protocol == "https:" ? "https:" : "http:") + "//mc.yandex.ru/metrika/watch.js";

if (w.opera == "[object Opera]") {
d.addEventListener("DOMContentLoaded", f, false);
} else { f(); }
})(document, window, "yandex_metrika_callbacks");
</script>
<noscript><div><img src="//mc.yandex.ru/watch/23401189" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<!-- /Yandex.Metrika counter -->
</body>
</html>
4 changes: 2 additions & 2 deletions example/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,10 +423,10 @@ function MapAddCtrl($scope) {
}

function MapChangeCtrl($scope) {
$scope.center=[37.64,55.76];
$scope.center=[40.925358,57.767265];
$scope.type='yandex#satellite';
$scope.changeCenter = function(){
$scope.center = [40.925358,57.767265];
$scope.center = [37.64,55.76];
};
var map;
$scope.afterMapInit=function(nMap){
Expand Down
4 changes: 2 additions & 2 deletions example/partials/map-change.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
</pre>
<p>javascript:</p>
<pre ng-non-bindable>
$scope.center=[37.64,55.76];
$scope.center=[40.925358,57.767265];
$scope.type='yandex#satellite';
$scope.changeCenter = function(){
$scope.center = [40.925358,57.767265];
$scope.center = [37.64,55.76];
};
var map;
$scope.afterMapInit=function(nMap){
Expand Down
Loading

0 comments on commit e52488f

Please sign in to comment.