Skip to content
This repository was archived by the owner on Jun 16, 2019. It is now read-only.

Commit c259d33

Browse files
committed
Merge pull request #72 from googlemaps/localurl
Moves image references to use relative paths
2 parents 2f659a3 + cb2ead3 commit c259d33

File tree

5 files changed

+4
-61
lines changed

5 files changed

+4
-61
lines changed

examples/advanced_example.html

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,7 @@
3939

4040
<script src="https://maps.googleapis.com/maps/api/js"></script>
4141
<script src="data.json"></script>
42-
<script>
43-
var script = '<script type="text/javascript" src="../src/markerclusterer';
44-
if (document.location.search.indexOf('compiled') !== -1) {
45-
script += '_compiled';
46-
}
47-
script += '.js"><' + '/script>';
48-
document.write(script);
49-
</script>
50-
42+
<script type="text/javascript" src="../src/markerclusterer.js"></script>
5143
<script>
5244
var styles = [[{
5345
url: '../images/people35.png',
@@ -187,10 +179,6 @@
187179
</head>
188180
<body>
189181
<h3>An example of MarkerClusterer v3</h3>
190-
<p>
191-
<a href="?compiled">Compiled</a> |
192-
<a href="?">Standard</a> version of the script.
193-
</p>
194182
<div id="map-container">
195183
<div id="map"></div>
196184
</div>

examples/simple_example.html

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,7 @@
2828

2929
<script src="https://maps.googleapis.com/maps/api/js"></script>
3030
<script src="data.json"></script>
31-
<script>
32-
var script = '<script type="text/javascript" src="../src/markerclusterer';
33-
if (document.location.search.indexOf('compiled') !== -1) {
34-
script += '_compiled';
35-
}
36-
script += '.js"><' + '/script>';
37-
document.write(script);
38-
</script>
31+
<script type="text/javascript" src="../src/markerclusterer.js"></script>
3932

4033
<script>
4134
function initialize() {
@@ -75,10 +68,6 @@
7568
</head>
7669
<body>
7770
<h3>A simple example of MarkerClusterer (100 markers)</h3>
78-
<p>
79-
<a href="?compiled">Compiled</a> |
80-
<a href="?">Standard</a> version of the script.
81-
</p>
8271
<div id="map-container"><div id="map"></div></div>
8372
</body>
8473
</html>

examples/speed_test_example.html

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,7 @@
6969

7070
<script src="https://maps.googleapis.com/maps/api/js"></script>
7171
<script src="data.json"></script>
72-
<script>
73-
var script = '<script type="text/javascript" src="../src/markerclusterer';
74-
if (document.location.search.indexOf('compiled') !== -1) {
75-
script += '_compiled';
76-
}
77-
script += '.js"><' + '/script>';
78-
document.write(script);
79-
</script>
72+
<script type="text/javascript" src="../src/markerclusterer.js"></script>
8073
<script src="speed_test.js"></script>
8174

8275
<script>
@@ -98,10 +91,6 @@
9891
<body>
9992
<div id="panel">
10093
<h3>An example of MarkerClusterer v3</h3>
101-
<p>
102-
<a href="?compiled">Compiled</a> |
103-
<a href="?">Standard</a> version of the script.
104-
</p>
10594

10695
<div>
10796
<input type="checkbox" checked="checked" id="usegmm"/>

src/markerclusterer.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,7 @@ function MarkerClusterer(map, opt_markers, opt_options) {
187187
* @type {string}
188188
* @private
189189
*/
190-
MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_PATH_ =
191-
'https://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/' +
192-
'images/m';
190+
MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_PATH_ = '../images/m';
193191

194192

195193
/**

src/markerclusterer_compiled.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)