Skip to content

Commit 23e1048

Browse files
committed
2 parents 52ebf76 + 2534132 commit 23e1048

File tree

89 files changed

+10557
-7035
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+10557
-7035
lines changed

README.md

Lines changed: 56 additions & 228 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ GoogleMap AngularJS Directive
66
[Demo](http://ngmap.github.io)
77
[Documentation](https://rawgithub.amrom.workers.dev/allenhwkim/angularjs-google-maps/master/build/docs/index.html)
88
[Road Trip By StreetView](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/street-view_road_trip.html)
9-
[**NEW** Maps Can Talk](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/custom-marker.html)
9+
[**NEW** Maps Can Talk](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/custom-marker.html) |
1010
[Custom Marker](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/custom-marker-2.html)
1111

12-
here is already [one](https://github.com/nlaplante/angular-google-maps) for this. However, I found myself doing totally different approach for this purpose than the existing one, such as;
12+
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;
1313

1414
1. **Everything in tag and attributes.**
1515
Thus, basic users don't even have to know what Javascript is.
16+
1617
2. **Expose all original Google Maps V3 api to the user.**
1718
No hiding, no wraping, or whatsoever.
1819
By doing so, programmers don't need to learn how to use this module.
@@ -28,7 +29,6 @@ For Bower users,
2829

2930
1. Include `ng-map.min.js` as well as google maps.
3031
`<script src="http://maps.google.com/maps/api/js"></script>`
31-
`<script src="http://rawgit.com/allenhwkim/angularjs-google-maps/master/build/scripts/ng-map.min.js"></script>`
3232

3333
2. name angular app as ngMap, or add it as a dependency
3434

@@ -75,8 +75,59 @@ Lazy Loading
7575
<map center="41,-87" zoom="3"></map>
7676
</div>
7777

78+
Directives
79+
----------
80+
81+
* bicycling-layer
82+
* cloud-layer
83+
* custom-control
84+
* custom-marker (NEW)
85+
* directions (NEW)
86+
* drawing-manager (NEW)
87+
* dynamic-maps-engine-layer
88+
* fusion-tables-layer
89+
* heatmap-layer
90+
* info-window
91+
* kml-layer
92+
* map
93+
* map-data
94+
* map-lazy-load (NEW)
95+
* map-type
96+
* map_controller
97+
* maps-engine-layer
98+
* marker
99+
* overlay-map-type
100+
* places-auto-complete
101+
* shape
102+
* street-view-panorama (NEW)
103+
* traffic-layer
104+
* transit-layer
105+
* weather-layer
106+
107+
Advanced Examples
108+
-------------------
109+
- [Marker Clusterer](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/marker-clusterer.html)
110+
- [Starbucks World Wide](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/map_app.html)
111+
- [Road Trip By StreetView](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/street-view_road_trip.html)
112+
- [Maps Can Talk](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/custom-marker.html)
113+
- [Custom Marker](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/custom-marker-2.html)
114+
115+
[Contributors](CONTRIBUTORS.md)
116+
===============================
117+
118+
Contributing
119+
============
120+
- Clone the repository from github
121+
- Change to the folder dowloaded
122+
- **npm install** to install the build tools
123+
- **gulp build** to build the javascript & doc files in the /build folder & run the unit tests.
124+
- **gulp clean** to cleanup the repository from a previous build ? does this work ?
125+
- **gulp test** to run the Karma unit test suite.
126+
- **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).
127+
- **gulp testapp-server** will start a web server for the testapp on http://localhost:8888
128+
78129
Release Notes
79-
---------------
130+
===============
80131
**1.13.0**
81132

82133
* New directive `custom-marker`
@@ -130,230 +181,7 @@ Release Notes
130181
* marker directive can have icon attribute as JSON
131182
* map with init-event attribute for initialization by an event
132183

133-
**1.0.0 (covers all official google examples using directives).**
134-
135-
* marker
136-
* shapes
137-
138-
* circle
139-
* polyline
140-
* polygon
141-
* rectangle
142-
* image
143-
144-
* layers
145-
146-
* traffic-layer
147-
* transit-layer
148-
* bicycling-layer
149-
* dynamic-maps-engine-layer
150-
* fusion-tables-layer
151-
* heatmap-layer
152-
* kml-layer
153-
* maps-engine-layer
154-
155-
* custom-control
156-
* info-window
157-
* map-data
158-
* map-type
159-
* overlay-map-type
160-
161-
Directives
162-
----------
163-
164-
#### &lt;map .. >
165-
166-
As defined on [MapOptions](https://developers.google.com/maps/documentation/javascript/reference#MapOptions), you can add any attributes, and events starting with `on-`. Please note that event value must be a function.
167-
168-
Example:
169-
170-
<map zoom="11"
171-
center="[40.74, -74.18]"
172-
disable-default-u-i="true"
173-
disable-double-click-zoom="true"
174-
draggable="false"
175-
draggable-cursor="help"
176-
dragging-cursor="move"
177-
keyboard-shortcuts="false"
178-
max-zoom="12"
179-
min-zoom="8"
180-
tilt="45"
181-
map-type-id="TERRAIN"
182-
zoom-to-include-markers="auto"
183-
>
184-
</map>
185-
i.e. < zoom="11" center="[40.74, -74.18]"
186-
187-
zoom-to-include-markers has two options "true" or "auto".
188-
Use "true" if your markers do not change after the map is rendered.
189-
Use "auto" if you want the map to auto zoom when markers are added or removed.
190-
Example [zoom-to-include-markers](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/map_zoom_to_include_markers.html)
191-
192-
#### &lt;marker .. >
193-
194-
As defined on [MarkerOptions](https://developers.google.com/maps/documentation/javascript/reference#MarkerOptions), you can add any attributes, and events starting with `on-`.
195-
196-
<map center="[40.74, -74.18]">
197-
<marker
198-
position="[40.76, -74.16]"
199-
title="Hello Marker"
200-
animation="Animation.BOUNCE"
201-
draggable="true"
202-
visible="true"
203-
icon="beachflag.png"></marker>
204-
</map>
205-
206-
#### &lt;shape .. >
207-
Polyline, Circle, Polygon, Rectangle, and Images
208-
209-
<map zoom="11" center="[40.74, -74.18]">
210-
<shape id="polyline" name="polyline"
211-
geodesic="true" stroke-color="#FF0000" stroke-opacity="1.0" stroke-weight="2"
212-
path="[[40.74,-74.18],[40.64,-74.10],[40.54,-74.05],[40.44,-74]]" ></shape>
213-
<shape id="polygon" name="polygon"
214-
stroke-color="#FF0000" stroke-opacity="1.0" stroke-weight="2"
215-
paths="[[40.74,-74.18],[40.64,-74.18],[40.84,-74.08],[40.74,-74.18]]" ></shape>
216-
<shape id="rectangle" name="rectangle" stroke-color='#FF0000'
217-
stroke-opacity="0.8" stroke-weight="2"
218-
bounds="[[40.74,-74.18], [40.78,-74.14]]" editable="true" ></shape>
219-
<shape id="circle" name="circle" stroke-color='#FF0000'
220-
stroke-opacity="0.8"stroke-weight="2"
221-
center="[40.70,-74.14]" radius="4000" editable="true" ></shape>
222-
<shape id="image" name="image"
223-
url="https://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg"
224-
bounds="[[40.71,-74.22],[40.77,-74.12]]" opacity="0.7" clickable="true" ></shape>
225-
</map>
226-
227-
#### &lt;info-window .. >
228-
Example:
229-
230-
<map center="-25.363882,131.044922" zoom="4">
231-
<info-window id="bar" position="-25.363882,131.044922" visible="true">
232-
<div ng-non-bindable>
233-
<div id="siteNotice"></div>
234-
</div>
235-
</info-window>
236-
</map>
237-
238-
#### &lt;custom-control .. >
239-
Example:
240-
241-
<map center="41.850033, -87.6500523" zoom="6">
242-
<custom-control id="home" position="TOP_RIGHT" index="1" on-click="click()">
243-
<div style="background-color: black; color:#fff;cursor:pointer">Home1</div>
244-
</custom-control>
245-
</map>
246-
247-
#### &lt;map-data .. >
248-
Example:
249-
250-
<map zoom="4" center="-28, 137.883">
251-
<map-data
252-
load-geo-json="https://storage.googleapis.com/maps-devrel/google.json"></map-data>
253-
</map>
254-
255-
### Layer Directives
256-
257-
#### &lt;bicycling-layer .. >
258-
259-
<map zoom="14" center="42.3726399, -71.1096528">
260-
<bicycling-layer></bicycling-layer>
261-
</map>
262-
263-
#### &lt;weather-layer .. > (deprecated) and &lt;cloud-layer .. > (deprecated)
264-
265-
<map zoom="6" center="49.265984,-123.127491">
266-
<weather-layer temperature-units="FAHRENHEIT"></weather-layer>
267-
<cloud-layer></cloud-layer>
268-
</map>
269-
270-
#### &lt;fusion-tables-layer .. >
271-
272-
<map zoom="11" center="41.850033, -87.6500523">
273-
<fusion-tables-layer query="{
274-
select: 'Geocodable address',
275-
from: '1mZ53Z70NsChnBMm-qEYmSDOvLXgrreLTkQUvvg'}">
276-
</fusion-tables-layer>
277-
</map>
278-
279-
#### &lt;heatmap-layer .. >
280-
281-
<map zoom="13" center="37.774546, -122.433523" map-type-id="SATELLITE">
282-
<heatmap-layer id="foo" data="taxiData"></heatmap>
283-
</map>
284-
285-
#### &lt;maps-engine-layer .. >
286-
287-
<map center="59.322506, 18.010025" zoom="14">
288-
<maps-engine-layer
289-
layer-id="06673056454046135537-08896501997766553811">
290-
</maps-engine-layer>
291-
</map>
292-
293-
#### &lt;traffic-layer>
294-
295-
<map zoom="13" center="34.04924594193164, -118.24104309082031">
296-
<traffic-layer></traffic-layer>
297-
</map>
298-
299-
#### &lt;transit-layer>
300-
301-
<map zoom="13" center="51.501904,-0.115871">
302-
<transit-layer></transit-layer>
303-
</map>
304-
305-
#### &lt;dynamic-maps-engine-layer .. >
306-
307-
<map center="59.322506, 18.010025" zoom="14">
308-
<dynamic-maps-engine-layer
309-
suppress-info-windows="true"
310-
clickable="true"
311-
on-mouseover="onMouseover()"
312-
on-mouseout="onMouseout()"
313-
layer-id="06673056454046135537-08896501997766553811">
314-
</dynamic-maps-engine-layer>
315-
</map>
316-
317-
#### &lt;kml-layer .. >
318-
319-
<map zoom="11" center="41.875696,-87.624207">
320-
<kml-layer url="http://gmaps-samples.googlecode.com/svn/trunk/ggeoxml/cta.kml"></kml-layer>
321-
</map>
322-
323-
### MapType Directives
324-
325-
#### &lt;map-type .. >
326-
327-
<map zoom="10" center="41.850033,-87.6500523"
328-
<map-type name="coordinate" object="CoordMapType">
329-
</map-type>
330-
</map>
331-
332-
#### &lt;overlay-map-type .. >
333-
334-
<map zoom="10" center="41.850033,-87.6500523">
335-
<overlay-map-type object="CoordMapType" index="0">
336-
</overlay-map-type>
337-
</map>
338-
339-
Advanced Examples
340-
-------------------
341-
- [Marker Clusterer](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/marker-clusterer.html)
342-
- [Starbucks World Wide](https://rawgit.com/allenhwkim/angularjs-google-maps/master/testapp/map_app.html)
343-
344-
[Contributors](CONTRIBUTORS.md)
345-
===============================
346-
347-
Contributing
348-
============
349-
- Clone the repository from github
350-
- Change to the folder dowloaded
351-
- **npm install** to install the build tools
352-
- **gulp build** to build the javascript & doc files in the /build folder & run the unit tests.
353-
- **gulp clean** to cleanup the repository from a previous build ? does this work ?
354-
- **gulp test** to run the Karma unit test suite.
355-
- **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).
356-
- **gulp testapp-server** will start a web server for the testapp on http://localhost:8888
184+
**1.0.0 (covers All official google maps v3 examples using directives).**
357185

358186
license
359187
=======

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngmap",
3-
"version": "1.13.5",
3+
"version": "1.13.8",
44
"main": "./build/scripts/ng-map.js",
55
"homepage": "https://github.com/allenhwkim/angularjs-google-maps",
66
"authors": [

0 commit comments

Comments
 (0)