Comments (8)
Please check: http://angular-ui.github.io/ui-leaflet/examples/0000-viewer.html#/basic/custom-parameters-example
Assign a tileLayer
param as:
app.controller('BasicCustomParametersController', [ '$scope', function($scope) {
angular.extend($scope, {
london: {
lat: 51.505,
lng: -0.09,
zoom: 8
},
defaults: {
// check it
tileLayer: "http://{s}.tile.openstreetmap.org/cycle/{z}/{x}/{y}.png",
zoomControlPosition: 'topright',
tileLayerOptions: {
opacity: 0.9,
detectRetina: true,
reuseTiles: true,
},
scrollWheelZoom: false
}
});
}]);
from ui-leaflet.
From @tombatossals on January 17, 2015 13:14
Hi @mbmerrill , sorry I haven't used Ionic framework, but I can assure you this problem is not related with this directive, there's no configuration to look for local files.
Seems some problem with Ionic framework, if you post some example (jsfiddle) I can take a look at it.
from ui-leaflet.
From @pmusaraj on January 27, 2015 0:20
I'm currently using this directive with Ionic, and I haven't run into this issue. The map loads the base layer from the web, same as on a browser, on the mobile device, not from a file:// call. You should try to find out why it's trying to load from a file...
from ui-leaflet.
From @bwasnie1 on January 29, 2015 15:3
@mbmerrill It's because all urls in the directive are called like '//..' and not 'http://..'. I mentioned this aswell as I updated the directive to the latest version.
But I don't know yet, why ionic behaves like that.
from ui-leaflet.
I have identical error using electron.
from ui-leaflet.
Unfortunately the error persists. @elesdoar
from ui-leaflet.
@jlanio, Are you using defaults
attribute in the directive?
<body ng-controller="BasicCustomParametersController">
<leaflet lf-center="london" defaults="defaults" width="100%" height="480px"></leaflet>
<h1>Using custom default parameters</h1>
</body>
from ui-leaflet.
@jlanio, Are you using defaults attribute in the directive?
Exatly
from ui-leaflet.
Related Issues (20)
- leafletData.getDirectiveControls
- Dynamically add data to geoJSONShape HOT 1
- Migration to Angular 4 HOT 1
- Changin markers on scope, the model is different HOT 2
- Markers not showing in second (or more) maps HOT 4
- Travis CI seems to be broken HOT 1
- Add Custom Styles To Google Maps
- layercontrol - More than 1 map on the DOM
- IE 11: US Map mouse over highlighting beside state(s)
- <Security Issue> Slack token need to be encrypted
- Fitbounds and markercluster zoom issue
- Marker in not updating its position on the map, when its value is updated
- Nor working in angular 1.6.4 HOT 2
- Popup closes when changing marker icon
- ui-leaflet analog for bindLabel functionality? HOT 1
- Could anyone propagate this commit to the 2.0.x tag version?
- MBTiles
- Disable auto center adjust after change marker coordinates programmatically
- Is this project still active ?
- Issue with Clickable Marker Content
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ui-leaflet.