Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown provider: yaMapSettings #49

Open
borodatych opened this issue Jan 30, 2016 · 2 comments
Open

Unknown provider: yaMapSettings #49

borodatych opened this issue Jan 30, 2016 · 2 comments

Comments

@borodatych
Copy link

$ ionic info

Your system information:

Cordova CLI: 5.4.1
Ionic Version: 1.1.1
Ionic CLI Version: 1.7.13
Ionic App Lib Version: 0.6.5
ios-deploy version: 1.8.2
ios-sim version: 5.0.1
OS: Mac OS X El Capitan
Node Version: v5.5.0
Xcode version: Xcode 7.2 Build version 7C68
angular.module('starter',['ionic','ngCordova','yaMap','starter.controllers'])
    .config(function(yaMapSettings){
        yaMapSettings.setOrder('latlong');
    })
;
13218Error: [$injector:modulerr] Failed to instantiate module starter due to:
[$injector:unpr] Unknown provider: yaMapSettings
http://errors.angularjs.org/1.4.3/$injector/unpr?p0=yaMapSettings
http://localhost:8100/lib/ionic/js/ionic.bundle.js:8900:32
http://localhost:8100/lib/ionic/js/ionic.bundle.js:13094:34
getService@http://localhost:8100/lib/ionic/js/ionic.bundle.js:13241:46
invoke@http://localhost:8100/lib/ionic/js/ionic.bundle.js:13273:23
runInvokeQueue@http://localhost:8100/lib/ionic/js/ionic.bundle.js:13188:40
http://localhost:8100/lib/ionic/js/ionic.bundle.js:13197:25
forEach@http://localhost:8100/lib/ionic/js/ionic.bundle.js:9168:24
loadModules@http://localhost:8100/lib/ionic/js/ionic.bundle.js:13178:12
createInjector@http://localhost:8100/lib/ionic/js/ionic.bundle.js:13104:22
doBootstrap@http://localhost:8100/lib/ionic/js/ionic.bundle.js:10462:34
bootstrap@http://localhost:8100/lib/ionic/js/ionic.bundle.js:10483:23
angularInit@http://localhost:8100/lib/ionic/js/ionic.bundle.js:10377:14
http://localhost:8100/lib/ionic/js/ionic.bundle.js:37191:16
trigger@http://localhost:8100/lib/ionic/js/ionic.bundle.js:11828:9
eventHandler@http://localhost:8100/lib/ionic/js/ionic.bundle.js:12103:25
http://errors.angularjs.org/1.4.3/$injector/modulerr?p0=starter&p1=%5B%24injector%3Aunpr%5D%20Unknown%20provider%3A%20yaMapSettings%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.4.3%2F%24injector%2Funpr%3Fp0%3DyaMapSettings%0Ahttp%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A8900%3A32%0Ahttp%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A13094%3A34%0AgetService%40http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A13241%3A46%0Ainvoke%40http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A13273%3A23%0ArunInvokeQueue%40http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A13188%3A40%0Ahttp%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A13197%3A25%0AforEach%40http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A9168%3A24%0AloadModules%40http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A13178%3A12%0AcreateInjector%40http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A13104%3A22%0AdoBootstrap%40http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A10462%3A34%0Abootstrap%40http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A10483%3A23%0AangularInit%40http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A10377%3A14%0Ahttp%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A37191%3A16%0Atrigger%40http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A11828%3A9%0AeventHandler%40http%3A%2F%2Flocalhost%3A8100%2Flib%2Fionic%2Fjs%2Fionic.bundle.js%3A12103%3A25
@borodatych
Copy link
Author

Так же, для тех кто не работал до этого с яндекс картами, стоит пояснить, что означает latlong и longlat, я убил несколько часов пока выяснял, почему у меня координаты путаются местами.

@anikeevda
Copy link

@borodatych Вам нужно использовать параметр yaMapSettingsProvider

.config(function (yaMapSettingsProvider) { yaMapSettingsProvider.setOrder('latlong'); })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants