Comments (3)
so yeah, we don't have support for that feature yet, but you can do it in some hacky way with custom "functional" components:
and then your-kml-component
component could be something like:
import Ember from 'ember';
export default Ember.Component.extend({
init() {
this._super(...arguments);
this.setKmlLayer();
},
mapHasBeenSet: Ember.observer('map', function() {
Ember.run.once(this, 'setKmlLayer');
}),
setKmlLayer() {
const map = this.get('map');
const url = this.get('kmlUrl');
if (Ember.isPresent(map) && Ember.isPresent(url)) {
const layer = new google.maps.KmlLayer({ url, map });
this.set('layer', layer);
}
}
});
from ember-g-map.
also looks like this feature could be added really easy, so if you can make it work maybe you can consider contributing to the project by adding {{g-map-kml-layer}}
component
from ember-g-map.
@asennikov Great, thanks for the tip. I will give it a try and see how I go.
from ember-g-map.
Related Issues (20)
- Add markerd with a DS HOT 1
- No map rendering when `markersFitMode` is in live HOT 1
- map not loading from address only static lat and long HOT 9
- rendering issues
- Markers are not showing HOT 3
- Add panControl, zoomControl, mapTypeControl, streetViewControl, mapTypeId, scrollwheel HOT 1
- Extract the google map into a service
- Geolocation Support? HOT 1
- Use Ember Modules API HOT 1
- Update ember-cli-babel dependency HOT 1
- How do I draw a curved polyline between two markers? HOT 1
- Custom onClose event HOT 1
- Support use of ember-g-map from China HOT 3
- Rendering Route Waypoints
- Optimize Waypoints on Route
- Doesn't work with Ember 3 in IE11 HOT 2
- Deprecated ember-cli-babel version
- Memory leak introduced by Google Maps HOT 1
- Abandoned package? HOT 1
- Map is not showing on actual iPhone device
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 ember-g-map.