diff --git a/.travis.yml b/.travis.yml
index 9c351ab34..1b566b16e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,5 @@
language: node_js
node_js:
- - "0.10"
+ - "6.9"
script:
- "gulp test"
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 000000000..fdbcc758a
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,72 @@
+Release Notes
+===============
+
+# 1.17.0
+
+ * UMD
+
+# 1.15.0
+
+ * All attributes can have `{{}}` expression evaluated.
+
+# 1.14.0
+
+ * Prepared for Angular2 transition by removing all scopes
+ * NgMap service is introduced
+ * Refactored
+
+# 1.13.0
+
+ * New directive `custom-marker`
+
+# 1.12.0
+
+ * Refactored documentation with angular-jsdoc
+
+# 1.10.0
+
+ * Added an event `objectChanged` to broadcast change of objects in map. e.g., markers, shapes, etc
+
+# 1.9.0
+
+ * Refactored directory structure
+
+# 1.7.0
+
+ * added **directions** directive
+ [Example](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/directions.html)
+ * added **places-auto-complete** for input tag.
+ [Example](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/places-auto-complete.html)
+
+# 1.6.0
+
+ * added **street-view-panorama** directive with its examples;
+ [street view with marker](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/street-view-panorama.html) and
+ [street view in its own container](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/street-view-panorama_container.html)
+
+# 1.5.0
+
+ * added **geo-callback attribute** for map, marker, shape, and info-window.
+ [Example](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/map_with_current_position.html)
+
+# 1.4.0
+
+ * support lazy loading of maps js with directive, **map-lazy-load**, which does not require to `https://maps.google.com/maps/api/js`
+ [Example](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/map-lazy-load.html)
+
+# 1.3.0
+
+ * added **drawing-manager** directive. Thanks to Fangming Du
+ [Example](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/drawing-manager.html)
+
+# 1.2.0
+
+ * events with `controller as` syntax, thanks to Simon
+
+# 1.1.0
+
+ * marker directive can have icon attribute as JSON
+ * map with init-event attribute for initialization by an event
+
+# 1.0.0
+ * Cover all official google maps v3 examples using directives.
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 5d9b76442..42cfd2668 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -1,20 +1,33 @@
#Angularjs-Google-Maps Is Only Possible By;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
## We Love You All
diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md
new file mode 100644
index 000000000..3dd868246
--- /dev/null
+++ b/ISSUE_TEMPLATE.md
@@ -0,0 +1,21 @@
+**IMPORTANT**:
+
+This repository's issues are reserved for feature requests and bug reports.
+Do not submit support questions or request here. Please use stackoverflow instead
+
+
+**Steps to reproduce and a minimal demo(Plunker Example)**
+
+ - _What steps should we try in your demo to see the problem?_
+
+**Current behavior**
+
+ -
+
+**Expected/desired behavior**
+
+ -
+
+**Other information**
+
+ -
diff --git a/LICENSE b/LICENSE
index c959483dd..de0e461c0 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)
-Copyright (c) 2014, 2015 Allen Kim
+Copyright (c) 2014, 2015, 2016 Allen Kim
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
diff --git a/README.md b/README.md
index b9604e57b..420cc4575 100755
--- a/README.md
+++ b/README.md
@@ -1,85 +1,123 @@
-GoogleMap AngularJS Directive
+Google Maps AngularJS Directive
=============================
-
+
-[Demo](http://ngmap.github.io)
+[Demo](https://ngmap.github.io)
[Documentation](https://rawgithub.amrom.workers.dev/allenhwkim/angularjs-google-maps/master/build/docs/index.html)
[Road Trip By StreetView](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/street-view_road_trip.html)
-[**NEW** Maps Can Talk](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/custom-marker.html) |
+[Maps Can Talk](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/custom-marker.html) |
[Custom Marker](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/custom-marker-2.html)
-There is already [one](https://github.com/nlaplante/angular-google-maps) for this. However, I found myself doing totally different approach than the existing one, such as;
+If you like this, you also may like these:
+* [ng2-map](https://github.com/ng2-ui/map) Google Maps Wrapper for Angular 2+
+* [react-openlayers](https://github.com/allenhwkim/react-openlayers) React + OpenLayers
-1. **Everything in tag and attributes.**
- Thus, basic users don't even have to know what Javascript is.
+Background
+-----------------
+There is already [one](https://github.com/nlaplante/angular-google-maps) for this. However, I found myself taking a totally different approach than the existing one, such as:
-2. **Expose all original Google Maps V3 api to the user.**
- No hiding, no wraping, or whatsoever.
+1. **Everything in tag and attributes.**
+ Thus, users don't even need knowledge of JavaScript.
+
+2. **Expose all original Google Maps V3 API to the user.**
+ No hiding, no wrapping or whatsoever.
By doing so, programmers don't need to learn how to use this module.
You only need to know Google Maps V3 API.
There is a blog that introduces this module. The title of it is '[Google Map As The Simplest Way](http://allenhwkim.tumblr.com/post/70986888283/google-map-as-the-simplest-way)'
-To Get Started
+To get started
--------------
-For Bower users,
+For Bower users,
`$ bower install ngmap`
-1. Include `ng-map.min.js` as well as google maps.
+1. Include `ng-map.min.js`:
+ ``
+
+2. Include Google Maps:
``
-2. name angular app as ngMap, or add it as a dependency
+2. Name your AngularJS app ngMap, or add it as a dependency
`var myApp = angular.module('myApp', ['ngMap']);`
-After map is initialized, you will have one event and map instances
-
-Event:
+To get the map instance use the `NgMap.getMap()` function
- * `mapInitialized` with parameter with map
+ app.controller('MyController', function(NgMap) {
+ NgMap.getMap().then(function(map) {
+ console.log(map.getCenter());
+ console.log('markers', map.markers);
+ console.log('shapes', map.shapes);
+ });
+ });
- In case your map directive scope is different from your controller scope,
- use this event to get the map instance.
+For npm users,
-
-
-Instances:
+ `$ npm install ngmap`
- * `$scope.map`
- * `$scope.map.markers`
- * `$scope.map.shapes`
- * etc
+For Meteor users: https://atmospherejs.com/wormy/angularjs-google-maps
-Lazy Loading
-------------
- Simply wrap the map tag with `map-lazy-load="http://maps.google.com/maps/api/js"`.
+Lazy loading of Google Maps JavaScript
+---------------------------------------
+ Simply wrap the map tag with `map-lazy-load="https://maps.google.com/maps/api/js"`.
-
-
+
+
- If you need to pass in an API key to the javascript, you can set a scope variable in your controller (e.g. `$scope.googleMapsUrl="http://maps.google.com/maps/api/js?v=3.20&client=XXXXenter-api-keyXXXX";`).
+ If you need to pass in an API key to the javascript, you can set a scope
+ variable in your controller (e.g. `$scope.googleMapsUrl="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY_HERE";`).
This can be set from a constant value in your app to standardise the API key to pass to google for multiple controllers.
-
-
+
+
+FAQ
+----
+## Grey area in Google Maps
+
+The usual reason why this happens is that the size of the map is changed after the map has been initialized. If you for some reason change the size of the div, you need to trigger the "resize" event and possible recenter the map.
+
+ var center = map.getCenter();
+ google.maps.event.trigger(map, "resize");
+ map.setCenter(center);
+
+Ref.
+ * http://stackoverflow.com/questions/13901520/grey-area-in-google-maps
+ * http://blog.codebusters.pl/en/google-maps-in-hidden-div/
+
+## Check if a marker is within `Map`, `Rectangle`, or `Circle`
+
+ `map.getBounds().contains(marker.getPosition());`
+
+ * http://stackoverflow.com/questions/3648545/how-can-i-check-the-marker-is-or-isnt-in-the-bounds-using-google-maps-v3
+ * https://developers.google.com/maps/documentation/javascript/3.exp/reference#Map
+ * https://developers.google.com/maps/documentation/javascript/3.exp/reference#Rectangle
+ * https://developers.google.com/maps/documentation/javascript/3.exp/reference#Circle
+
+## Calculate distance between two position
+
+You can check this out: https://developers.google.com/maps/documentation/javascript/distancematrix.
+As you see, DistanceMatrix does not require map nor directive.
+
+Another way to do this, is to use directions directive. As you see it here: https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/directions2.html, you have access to DirectionsRenderer by using `map.directionsRenderers[id]`
+
+https://developers.google.com/maps/documentation/javascript/reference?hl=en#DirectionsRenderer
+
+You use `getDirections()` or `directions`, then calculate the distance from there. e.g.,
+
+ Distance:
+ `{{ map.directionsRenderers[0].directions.routes[0].legs[0].distance }}`
+
Directives
----------
* bicycling-layer
- * cloud-layer
* custom-control
* custom-marker (NEW)
* directions (NEW)
@@ -102,88 +140,30 @@ Directives
* street-view-panorama (NEW)
* traffic-layer
* transit-layer
- * weather-layer
-Advanced Examples
+Advanced examples
-------------------
- [Marker Clusterer](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/marker-clusterer.html)
- [Starbucks World Wide](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/map_app.html)
-- [Road Trip By StreetView](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/street-view_road_trip.html)
+- [Road Trip By StreetView](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/street-view_road_trip.html)
- [Maps Can Talk](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/custom-marker.html)
-- [Custom Marker](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/custom-marker-2.html)
+- [Custom Marker](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/custom-marker-2.html)
[Contributors](CONTRIBUTORS.md)
===============================
Contributing
============
-- Clone the repository from github
-- Change to the folder dowloaded
+- Clone the repository from GitHub.
+- Change to the cloned directory.
- **npm install** to install the build tools
-- **gulp build** to build the javascript & doc files in the /build folder & run the unit tests.
-- **gulp clean** to cleanup the repository from a previous build ? does this work ?
-- **gulp test** to run the Karma unit test suite.
-- **gulp test-e2e** to run the Protractor test suite. For the first test run, you may need to update the protractor webdriver manager. It will show the command on screen if this is required (node_modules/gulp-protractor/node_modules/protractor/bin/webdriver-manager update).
-- **gulp testapp-server** will start a web server for the testapp on http://localhost:8888
-
-Release Notes
-===============
-**1.13.0**
-
- * New directive `custom-marker`
-
-**1.12.0**
-
- * Refactored documentation with angular-jsdoc
-
-**1.10.0**
-
- * Added an event `objectChanged` to broadcast change of objects in map. e.g., markers, shapes, etc
-
-**1.9.0**
-
- * Refactored directory structure
-
-**1.7.0**
-
- * added **directions** directive
- [Example](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/directions.html)
- * added **places-auto-complete** for input tag.
- [Example](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/places-auto-complete.html)
-
-**1.6.0**
-
- * added **street-view-panorama** directive with its examples;
- [street view with marker](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/street-view-panorama.html) and
- [street view in its own container](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/street-view-panorama_container.html)
-
-**1.5.0**
-
- * added **geo-callback attribute** for map, marker, shape, and info-window.
- [Example](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/map_with_current_position.html)
-
-**1.4.0**
-
- * support lazy loading of maps js with directive, **map-lazy-load**, which does not require to `https://maps.google.com/maps/api/js`
- [Example](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/map-lazy-load.html)
-
-**1.3.0**
-
- * added **drawing-manager** directive. Thanks to Fangming Du
- [Example](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/drawing-manager.html)
-
-**1.2.0**
-
- * events with `controller as` syntax, thanks to Simon
-
-**1.1.0**
-
- * marker directive can have icon attribute as JSON
- * map with init-event attribute for initialization by an event
-
-**1.0.0 (covers All official google maps v3 examples using directives).**
+- **gulp build** to build the JavaScript & doc files in the /build folder & run the unit tests.
+- **gulp clean** to clean up the repository by removing files and folders from previous build.
+- **gulp test** to run the Karma unit test suite.
+- **gulp test:e2e** to run the Protractor test suite. For the first test run, you may need to update the protractor webdriver manager. It will show the command on screen if this is required (node_modules/gulp-protractor/node_modules/protractor/bin/webdriver-manager update).
+- **gulp test:server** will start a web server for the testapp on http://localhost:8888
-license
+License
=======
[MIT License](https://github.com/allenhwkim/angularjs-google-maps/blob/master/LICENSE)
diff --git a/app.js b/app.js
index 16d18cd78..9d07ac6d8 100644
--- a/app.js
+++ b/app.js
@@ -1 +1,25 @@
+/**
+ * AngularJS Google Maps
+ *
+ * The MIT License (MIT)
+ *
+ * Copyright (c) 2014, 2015, 1016 Allen Kim
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
+ * this software and associated documentation files (the "Software"), to deal in
+ * the Software without restriction, including without limitation the rights to
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+ * the Software, and to permit persons to whom the Software is furnished to do so,
+ * subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in all
+ * copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
angular.module('ngMap', []);
diff --git a/bower.json b/bower.json
index 56d8dc5cc..97889d16f 100644
--- a/bower.json
+++ b/bower.json
@@ -1,6 +1,6 @@
{
"name": "ngmap",
- "version": "1.13.8",
+ "version": "1.18.4",
"main": "./build/scripts/ng-map.js",
"homepage": "https://github.com/allenhwkim/angularjs-google-maps",
"authors": [
diff --git a/build/docs/Attr2MapOptions.html b/build/docs/Attr2MapOptions.html
new file mode 100644
index 000000000..b8c74f948
--- /dev/null
+++ b/build/docs/Attr2MapOptions.html
@@ -0,0 +1,7 @@
+
JSDoc: Attr2MapOptions
converts attributes hash to Google Maps API v3 options
+
. converts numbers to number
+ . converts class-like string to google maps instance
+ i.e. `LatLng(1,1)` to `new google.maps.LatLng(1,1)`
+ . converts constant-like string to google maps constant
+ i.e. `MapTypeId.HYBRID` to `google.maps.MapTypeId.HYBRID`
+ i.e. `HYBRID"` to `google.maps.MapTypeId.HYBRID`
converts attributes hash to Google Maps API v3 options
-
. converts numbers to number
- . converts class-like string to google maps instance
- i.e. `LatLng(1,1)` to `new google.maps.LatLng(1,1)`
- . converts constant-like string to google maps constant
- i.e. `MapTypeId.HYBRID` to `google.maps.MapTypeId.HYBRID`
- i.e. `HYBRID"` to `google.maps.MapTypeId.HYBRID`
\ No newline at end of file
diff --git a/build/docs/GoogleMapsApi.html b/build/docs/GoogleMapsApi.html
new file mode 100644
index 000000000..eae35dfbf
--- /dev/null
+++ b/build/docs/GoogleMapsApi.html
@@ -0,0 +1,3 @@
+
JSDoc: GoogleMapsApi
```
NavigatorGeolocation.getCurrentPosition()
.then(function(position) {
var lat = position.coords.latitude, lng = position.coords.longitude;
.. do something lat and lng
});
-```
-
-
-
Parameters:
-
-
-
Name
Type
Description
-
-
-
-
geoLocationOptions
-
- Object
-
-
the navigator geolocations options. i.e. { maximumAge: 3000, timeout: 5000, enableHighAccuracy: true }. If none specified, { timeout: 5000 }. If timeout not specified, timeout: 5000 added
-
-
success
-
- function
-
-
success callback function
-
-
failure
-
- function
-
-
failure callback function
-
-
-
-
-
-
Returns:
-
Future object
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+```
Parameters
Name
Type
Description
geoLocationOptions
Object
the navigator geolocations options.
+ i.e. { maximumAge: 3000, timeout: 5000, enableHighAccuracy: true }.
+ If none specified, { timeout: 5000 }.
+ If timeout not specified, timeout: 5000 added
\ No newline at end of file
diff --git a/build/docs/NgMap.html b/build/docs/NgMap.html
new file mode 100644
index 000000000..b09736546
--- /dev/null
+++ b/build/docs/NgMap.html
@@ -0,0 +1,7 @@
+
JSDoc: NgMap
\ No newline at end of file
diff --git a/build/docs/NgMapPool.html b/build/docs/NgMapPool.html
new file mode 100644
index 000000000..2a8281a03
--- /dev/null
+++ b/build/docs/NgMapPool.html
@@ -0,0 +1,2 @@
+
JSDoc: NgMapPool
Example:
<map zoom="13" center="37.774546, -122.433523" map-type-id="SATELLITE">
- <drawing-manager on-overlaycomplete="onMapOverlayCompleted()" position="ControlPosition.TOP_CENTER" drawingModes="POLYGON,CIRCLE" drawingControl="true" circleOptions="fillColor: '#FFFF00';fillOpacity: 1;strokeWeight: 5;clickable: false;zIndex: 1;editable: true;" ></drawing-manager>
+ <drawing-manager
+ on-overlaycomplete="onMapOverlayCompleted()"
+ position="ControlPosition.TOP_CENTER"
+ drawingModes="POLYGON,CIRCLE"
+ drawingControl="true"
+ circleOptions="fillColor: '#FFFF00';fillOpacity: 1;strokeWeight: 5;clickable: false;zIndex: 1;editable: true;" >
+ </drawing-manager>
</map>
TODO: Add remove button.
- currently, for out solution, we have the shapes/markers in our own controller, and we use some css classes to change the shape button
- to a remove button (<div>X</div>) and have the remove operation in our own controller.
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+ currently, for our solution, we have the shapes/markers in our own
+ controller, and we use some css classes to change the shape button
+ to a remove button (<div>X</div>) and have the remove operation in our own controller.
\ No newline at end of file
diff --git a/build/docs/dynamic-maps-engine-layer.html b/build/docs/dynamic-maps-engine-layer.html
index d00723729..7775d0339 100644
--- a/build/docs/dynamic-maps-engine-layer.html
+++ b/build/docs/dynamic-maps-engine-layer.html
@@ -1,201 +1,7 @@
-
-
-
-
- JSDoc: directive:dynamic-maps-engine-layer
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+ <dynamic-maps-engine-layer
+ layer-id="06673056454046135537-08896501997766553811">
+ </dynamic-maps-engine-layer>
+ </map>
\ No newline at end of file
diff --git a/build/docs/fonts/OpenSans-Bold-webfont.eot b/build/docs/fonts/OpenSans-Bold-webfont.eot
deleted file mode 100644
index 5d20d9163..000000000
Binary files a/build/docs/fonts/OpenSans-Bold-webfont.eot and /dev/null differ
diff --git a/build/docs/fonts/OpenSans-Bold-webfont.svg b/build/docs/fonts/OpenSans-Bold-webfont.svg
deleted file mode 100644
index 3ed7be4bc..000000000
--- a/build/docs/fonts/OpenSans-Bold-webfont.svg
+++ /dev/null
@@ -1,1830 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/build/docs/fonts/OpenSans-Bold-webfont.woff b/build/docs/fonts/OpenSans-Bold-webfont.woff
deleted file mode 100644
index 1205787b0..000000000
Binary files a/build/docs/fonts/OpenSans-Bold-webfont.woff and /dev/null differ
diff --git a/build/docs/fonts/OpenSans-BoldItalic-webfont.eot b/build/docs/fonts/OpenSans-BoldItalic-webfont.eot
deleted file mode 100644
index 1f639a15f..000000000
Binary files a/build/docs/fonts/OpenSans-BoldItalic-webfont.eot and /dev/null differ
diff --git a/build/docs/fonts/OpenSans-BoldItalic-webfont.svg b/build/docs/fonts/OpenSans-BoldItalic-webfont.svg
deleted file mode 100644
index 6a2607b9d..000000000
--- a/build/docs/fonts/OpenSans-BoldItalic-webfont.svg
+++ /dev/null
@@ -1,1830 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/build/docs/fonts/OpenSans-BoldItalic-webfont.woff b/build/docs/fonts/OpenSans-BoldItalic-webfont.woff
deleted file mode 100644
index ed760c062..000000000
Binary files a/build/docs/fonts/OpenSans-BoldItalic-webfont.woff and /dev/null differ
diff --git a/build/docs/fonts/OpenSans-Italic-webfont.eot b/build/docs/fonts/OpenSans-Italic-webfont.eot
deleted file mode 100644
index 0c8a0ae06..000000000
Binary files a/build/docs/fonts/OpenSans-Italic-webfont.eot and /dev/null differ
diff --git a/build/docs/fonts/OpenSans-Italic-webfont.svg b/build/docs/fonts/OpenSans-Italic-webfont.svg
deleted file mode 100644
index e1075dcc2..000000000
--- a/build/docs/fonts/OpenSans-Italic-webfont.svg
+++ /dev/null
@@ -1,1830 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/build/docs/fonts/OpenSans-Italic-webfont.woff b/build/docs/fonts/OpenSans-Italic-webfont.woff
deleted file mode 100644
index ff652e643..000000000
Binary files a/build/docs/fonts/OpenSans-Italic-webfont.woff and /dev/null differ
diff --git a/build/docs/fonts/OpenSans-Light-webfont.eot b/build/docs/fonts/OpenSans-Light-webfont.eot
deleted file mode 100644
index 14868406a..000000000
Binary files a/build/docs/fonts/OpenSans-Light-webfont.eot and /dev/null differ
diff --git a/build/docs/fonts/OpenSans-Light-webfont.svg b/build/docs/fonts/OpenSans-Light-webfont.svg
deleted file mode 100644
index 11a472ca8..000000000
--- a/build/docs/fonts/OpenSans-Light-webfont.svg
+++ /dev/null
@@ -1,1831 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/build/docs/fonts/OpenSans-Light-webfont.woff b/build/docs/fonts/OpenSans-Light-webfont.woff
deleted file mode 100644
index e78607481..000000000
Binary files a/build/docs/fonts/OpenSans-Light-webfont.woff and /dev/null differ
diff --git a/build/docs/fonts/OpenSans-LightItalic-webfont.eot b/build/docs/fonts/OpenSans-LightItalic-webfont.eot
deleted file mode 100644
index 8f445929f..000000000
Binary files a/build/docs/fonts/OpenSans-LightItalic-webfont.eot and /dev/null differ
diff --git a/build/docs/fonts/OpenSans-LightItalic-webfont.svg b/build/docs/fonts/OpenSans-LightItalic-webfont.svg
deleted file mode 100644
index 431d7e354..000000000
--- a/build/docs/fonts/OpenSans-LightItalic-webfont.svg
+++ /dev/null
@@ -1,1835 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/build/docs/fonts/OpenSans-LightItalic-webfont.woff b/build/docs/fonts/OpenSans-LightItalic-webfont.woff
deleted file mode 100644
index 43e8b9e6c..000000000
Binary files a/build/docs/fonts/OpenSans-LightItalic-webfont.woff and /dev/null differ
diff --git a/build/docs/fonts/OpenSans-Regular-webfont.eot b/build/docs/fonts/OpenSans-Regular-webfont.eot
deleted file mode 100644
index 6bbc3cf58..000000000
Binary files a/build/docs/fonts/OpenSans-Regular-webfont.eot and /dev/null differ
diff --git a/build/docs/fonts/OpenSans-Regular-webfont.svg b/build/docs/fonts/OpenSans-Regular-webfont.svg
deleted file mode 100644
index 25a395234..000000000
--- a/build/docs/fonts/OpenSans-Regular-webfont.svg
+++ /dev/null
@@ -1,1831 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/build/docs/fonts/OpenSans-Regular-webfont.woff b/build/docs/fonts/OpenSans-Regular-webfont.woff
deleted file mode 100644
index e231183dc..000000000
Binary files a/build/docs/fonts/OpenSans-Regular-webfont.woff and /dev/null differ
diff --git a/build/docs/fusion-tables-layer.html b/build/docs/fusion-tables-layer.html
index a94f337a8..09fc1aa62 100644
--- a/build/docs/fusion-tables-layer.html
+++ b/build/docs/fusion-tables-layer.html
@@ -1,204 +1,8 @@
-
-
-
-
- JSDoc: directive:fusion-tables-layer
-
-
-
-
-
-
-
-
-
-
There is already one for this. However, I found myself taking a totally different approach than the existing one, such as:
-
Everything in tag and attributes. Thus, basic users don't even have to know what Javascript is.
+
Everything in tag and attributes. Thus, users don't even need knowledge of JavaScript.
-
Expose all original Google Maps V3 api to the user. No hiding, no wraping, or whatsoever.
+
Expose all original Google Maps V3 API to the user. No hiding, no wrapping or whatsoever.
By doing so, programmers don't need to learn how to use this module.
You only need to know Google Maps V3 API.
If you need to pass in an API key to the javascript, you can set a scope variable in your controller (e.g. $scope.googleMapsUrl="http://maps.google.com/maps/api/js?v=3.20&client=XXXXenter-api-keyXXXX";).
+});
For npm users,
+
$ npm install ngmap
+
For Meteor users: https://atmospherejs.com/wormy/angularjs-google-maps
+
Lazy loading of Google Maps JavaScript
Simply wrap the map tag with map-lazy-load="https://maps.google.com/maps/api/js".
If you need to pass in an API key to the javascript, you can set a scope
+ variable in your controller (e.g. $scope.googleMapsUrl="https://maps.googleapis.com/maps/api/js?key=YOUR_KEY_HERE";).
This can be set from a constant value in your app to standardise the API key to pass to google for multiple controllers.
The usual reason why this happens is that the size of the map is changed after the map has been initialized. If you for some reason change the size of the div, you need to trigger the "resize" event and possible recenter the map.
+
var center = map.getCenter();
+ google.maps.event.trigger(map, "resize");
+ map.setCenter(center);
You can check this out: https://developers.google.com/maps/documentation/javascript/distancematrix.
+As you see, DistanceMatrix does not require map nor directive.
+
Another way to do this, is to use directions directive. As you see it here: https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/directions2.html, you have access to DirectionsRenderer by using map.directionsRenderers[id]
gulp build to build the javascript & doc files in the /build folder & run the unit tests.
-
gulp clean to cleanup the repository from a previous build ? does this work ?
-
gulp test to run the Karma unit test suite.
-
gulp test-e2e to run the Protractor test suite. For the first test run, you may need to update the protractor webdriver manager. It will show the command on screen if this is required (node_modules/gulp-protractor/node_modules/protractor/bin/webdriver-manager update).
-
gulp testapp-server will start a web server for the testapp on http://localhost:8888
-
-
Release Notes
1.13.0
-
-
New directive custom-marker
-
-
1.12.0
-
-
Refactored documentation with angular-jsdoc
-
-
1.10.0
-
-
Added an event objectChanged to broadcast change of objects in map. e.g., markers, shapes, etc
added geo-callback attribute for map, marker, shape, and info-window.
-Example
-
-
1.4.0
-
-
support lazy loading of maps js with directive, map-lazy-load, which does not require to https://maps.google.com/maps/api/js
-Example
-
-
1.3.0
-
-
added drawing-manager directive. Thanks to Fangming Du
-Example
-
-
1.2.0
-
-
events with controller as syntax, thanks to Simon
-
-
1.1.0
-
-
marker directive can have icon attribute as JSON
-
map with init-event attribute for initialization by an event
+
gulp build to build the JavaScript & doc files in the /build folder & run the unit tests.
+
gulp clean to clean up the repository by removing files and folders from previous build.
+
gulp test to run the Karma unit test suite.
+
gulp test:e2e to run the Protractor test suite. For the first test run, you may need to update the protractor webdriver manager. It will show the command on screen if this is required (node_modules/gulp-protractor/node_modules/protractor/bin/webdriver-manager update).
+
gulp test:server will start a web server for the testapp on http://localhost:8888
-
1.0.0 (covers All official google maps v3 examples using directives).
NOTE: this directive should NOT be used with ng-repeat because InfoWindow itself is a template,
- and must be reused by each marker, thus, should not be redefined by ng-repeat.
-
-
-
-
Dependencies:
-
-
-
Name
Type
Description
-
-
-
-
Attr2Options
-
- service
-
-
convert html attribute to Gogole map api options
-
-
$compile
-
- service
-
-
$compile service
-
-
-
-
-
-
Attributes:
-
-
-
Name
Type
Description
-
-
-
-
visible
-
- Boolean
-
-
Indicates to show it when map is initialized
-
-
-
visible-on-marker
-
- Boolean
-
-
Indicates to show it on a marker when map is initialized
-
-
-
geo-callback
-
- Expression
-
-
if position is an address, the expression is will be performed when geo-lookup is successful. e.g., geo-callback="showDetail()"
NOTE: this directive should NOT be used with ng-repeat
+ because InfoWindow itself is a template, and a template must be
+ reused by each marker, thus, should not be redefined repeatedly
+ by ng-repeat.