Releases: asennikov/ember-g-map
Eslint, Latest Ember Support
We're now up to date with the latest Ember-cli and ember versions, including eslint and updated ember-try test scenarios. This also means we are no longer testing against 1.13.
Also, some new features have been merged.
g-map-infowindow
now has an onOpen hook - thanks @bschauflerg-map-address-*
components no longer error if the component is destroyed before the placesService results resolve - thanks @c-brooksg-map-address-marker
now uses the placesService results viewport to provide an optimal map viewport for the marker. View port can also be manually added to any marker. - thanks @thoresuenertg-map-address-marker
now support the onClick and onDrag marker actions - thanks @sebastian-misiewicz- The google maps api script config now supports the
channel
param.
And huge thanks to @steveszc for making all this happen!
Fixed Deprecation Warnings
Draggable Markers
Thanks to @Mithrilhall we now have draggable
setting for markers.
One can easily add draggable=true
and onDrag=(action "someHandler")
to the marker component to make it draggable and receive drag events back into the application.
Also,
- markers now have
zIndex
property - thx @bschaufler, - custom icons setup is now documented - thx @steveszc.
Ember CLI 2.6.2 and New Configuration Options
New configuration parameters for Google Maps API script:
exclude
– config option that allows an add-on consumer to exclude the google maps api script tag from the index.html;client
– config option that is an alternative to the key parameter for applications that need to provide a client ID instead of an API key;version
– config option that allows an add-on consumer to ask for a specific version of the Google Maps API, rather than the default Release version.
Ember CLI was updated to v2.6.2, which now includes ember-try. This fixes deprecation warning when using this addon in projects built around latest ember-cli.
Thx to @hbrysiewicz and @steveszc!
More Polyline Options
Thanks to @bonroyage you can now use missing Polyline options:
clickable
draggable
geodesic
visible
Also, new callback action was added for a dragend
event of polyline, check out example in docs.
Language localization support
By default, the Google Maps uses the user's preferred language setting as specified in the browser, but now you can force this setting to any language with addition to your config/environment.js
:
ENV['g-map'] = {
...
language: 'ar'
}
See https://developers.google.com/maps/documentation/javascript/localization#Language for details.
Fastboot support and Polylines
Fastboot
Thanks @mike-north for upgrading ember-cli and Fastboot support!
See details in #48
Polylines
Thanks @moeabm, @AndrewMoore10 for addition of {{g-map-polyline}}
and {{g-map-polyline-ccordinate}}
components.
See example https://github.com/asennikov/ember-g-map#map-with-polylines
Route Waypoints
Support for waypoints to both {{g-map-route}}
and {{g-map-address-route}}
:
{{g-map-route-waypoint}}
component to add waypoints using lat/lng pairs;{{g-map-route-address-waypoint}}
component to add waypoints by address queries.
Thanks @ivanjolic95 for this awesome feature! 👍
Polyline options for {{g-map-route}} component
Available options:
strokeColor
strokeWeight
strokeOpacity
zIndex
Works for {{g-map-address-route}} as well.
GMapAddressRouteComponent component
Adds {{g-map-address-route}}
component which could be bound to 2 address strings.