burivuhster / angular-dg-maps

2GIS Maps component for Angular.js
MIT License
5 stars 5 forks source link

DG.Map is not a constructor #2

Closed jackkum closed 9 years ago

jackkum commented 9 years ago

Hello!

I'm using this(https://github.com/DaftMonk/generator-angular-fullstack) yeoman generator.

var app = angular.module("myApp", ["dg-maps"]);
$scope.markers = [
    {
        lat: 55.028936234826,
        lon: 82.927810142519,
        hint: 'marker1'
    }
];

angular.extend($scope, {
    lat: 55.028936234826,
    lon: 82.927810142519,
    zoom: 15 
});
<dg-map latitude="lat" longitude="lon" zoom="zoom" style="height: 500px; width: 500px;">
    <dg-marker ng-repeat="marker in markers" latitude="marker.latitude" longitude="marker.longitude" hint="marker.hint"></dg-marker>
</dg-map>

and i have error "DG.Map is not a constructor"

jackkum commented 9 years ago

Problem in usage https! "https://maps.api.2gis.ru/1.0" script writing scripts from http

DG.jsUrl = 'http://maps.api.2gis.ru/1.0/dg-js/dg.js?v=200';
DG.cssUrl = 'http://maps.api.2gis.ru/1.0/dg-css/dg.css?v=200';

closing this because this trouble is 2gis