miguelcobain / ember-leaflet-google-tile-layer

Google's tile layers for ember-leaflet
MIT License
6 stars 2 forks source link

Map is not showing #4

Open mikeelemuel opened 5 years ago

mikeelemuel commented 5 years ago

So, I installed the ember-leaflet-google-tile-layer and I was trying to use it to my code. My code that actually works is

{{#leaflet-map id="map-leaflet" lat=cityLatitude lng=cityLongitude zoom=zoomValue}}
  {{tile-layer url="http://{s}.google.com/vt/lyrs=s&x={x}&y={y}&z={z}"}}
  {{marker-layer location=myIcon.url icon=customIcon lat=selectedLatitude lng=selectedLongitude}}
{{/leaflet-map}}

But when I comment the code {{tile-layer url="http://{s}.google.com/vt/lyrs=s&x={x}&y={y}&z={z}"}} and change it to {{google-tile-layer type="ROADMAP" opacity=0.9}} It doesn't show the map. Anyone had the experience with this scenario?

Versions

"ember-cli": "2.14",
"ember-leaflet-google-tile-layer": "0.0.3",
"ember-leaflet": "^3.0.18",
miguelcobain commented 5 years ago

Strongly recommend to use https://github.com/dio-el-claire/ember-leaflet-google-mutant-layer instead. It's much more performant and more up to date.