Skip to content

Commit 9f978e6

Browse files
committed
Removed Google Maps sensor parameter from example files as it's no longer required, fixed pagination bug when a new location was entered when not on the first page of results, started styling update
1 parent b8553d1 commit 9f978e6

26 files changed

+74
-58
lines changed

dist/assets/css/storelocator.css

+10-6
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
float: left;
44
display: block;
55
}
6+
#page-header .bh-sl-title {
7+
color: #797874;
8+
}
69
/* Infowindow Roboto font override */
710
.gm-style div,
811
.gm-style span,
@@ -23,7 +26,7 @@
2326
margin-left: 20px;
2427
width: 875px;
2528
font: normal 14px/20px Arial, Helvetica, sans-serif;
26-
color: #333333;
29+
color: #555555;
2730
}
2831
.bh-sl-container .bh-sl-form-container {
2932
clear: left;
@@ -55,7 +58,7 @@
5558
padding: 6px 12px;
5659
background: #ae2118;
5760
border: 1px solid #961f17;
58-
font: normal 14px/18px Arial, Helvetica, sans-serif;
61+
font: bold 14px/18px Arial, Helvetica, sans-serif;
5962
color: #ffffff;
6063
white-space: nowrap;
6164
-webkit-border-radius: 4px;
@@ -115,6 +118,7 @@
115118
width: 30%;
116119
height: 530px;
117120
overflow-x: auto;
121+
font-size: 13px;
118122
}
119123
.bh-sl-container .bh-sl-loc-list ul {
120124
display: block;
@@ -138,13 +142,14 @@
138142
.bh-sl-container .bh-sl-loc-list .list-label {
139143
float: left;
140144
margin: 10px 0 0 6px;
141-
padding: 2px 3px;
145+
padding: 4px;
142146
width: 10%;
143147
max-width: 25px;
144148
text-align: center;
145149
background: #451400;
146150
color: #ffffff;
147151
font-weight: bold;
152+
border-radius: 16px;
148153
}
149154
.bh-sl-container .bh-sl-loc-list .list-details {
150155
float: left;
@@ -181,8 +186,8 @@
181186
}
182187
.bh-sl-container .loc-name {
183188
/* Picked up by both list and infowindows */
184-
color: #ae2118;
185189
font-weight: bold;
190+
font-size: 15px;
186191
}
187192
.bh-sl-container .bh-sl-map {
188193
float: left;
@@ -204,10 +209,9 @@
204209
cursor: pointer;
205210
font: bold 14px Arial, Helvetica, sans-serif;
206211
color: #ae2118;
207-
text-decoration: underline;
208212
}
209213
.bh-sl-container .bh-sl-pagination-container ol .bh-sl-current {
210-
color: #333333;
214+
color: #555555;
211215
cursor: auto;
212216
text-decoration: none;
213217
}

dist/assets/css/storelocator.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assets/js/plugins/storeLocator/jquery.storelocator.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! jQuery Google Maps Store Locator - v2.1.0 - 2015-10-23
1+
/*! jQuery Google Maps Store Locator - v2.1.1 - 2015-11-18
22
* http://www.bjornblog.com/web/jquery-store-locator-plugin
33
* Copyright (c) 2015 Bjorn Holine; Licensed MIT */
44

@@ -1626,8 +1626,10 @@
16261626
}
16271627

16281628
// Set the initial page to zero if not set
1629-
if (typeof page === 'undefined') {
1630-
page = 0;
1629+
if ( _this.settings.pagination === true ) {
1630+
if (typeof page === 'undefined' || originalOrigin !== addressInput ) {
1631+
page = 0;
1632+
}
16311633
}
16321634

16331635
// Data request

dist/assets/js/plugins/storeLocator/jquery.storelocator.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/assets/js/plugins/storeLocator/templates/location-list-description.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99
<div class="loc-addr3">{{city}}{{#if city}},{{/if}} {{state}} {{postal}}</div>
1010
<div class="loc-phone">{{phone}}</div>
1111
<div class="loc-web"><a href="{{web}}" target="_blank">{{niceURL web}}</a></div>
12-
{{#if distance}}<div class="loc-dist">{{distance}} {{length}}</div>
13-
<div class="loc-directions"><a href="https://maps.google.com/maps?saddr={{origin}}&amp;daddr={{address}} {{address2}} {{city}}, {{state}} {{postal}}" target="_blank">Directions</a></div>{{/if}}
12+
{{#if distance}}
13+
<div class="loc-dist">{{distance}} {{length}}</div>
14+
<div class="loc-directions"><a href="https://maps.google.com/maps?saddr={{origin}}&amp;daddr={{address}} {{address2}} {{city}}, {{state}} {{postal}}" target="_blank">Directions</a></div>
15+
{{/if}}
1416
</div>
1517
</div>
1618
</li>

dist/autogeocode-example.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<div class="bh-sl-container">
1212
<div id="page-header">
13-
<h1>Using Chipotle as an Example</h1>
13+
<h1 class="bh-sl-title">Using Chipotle as an Example</h1>
1414
<p>I used locations around Minneapolis and the southwest suburbs. So, for example, Edina, Plymouth, Eden Prarie, etc. would be good for testing the functionality.
1515
You can use just the city as the address - ex: Edina, MN.</p>
1616
</div>
@@ -36,7 +36,7 @@ <h1>Using Chipotle as an Example</h1>
3636

3737
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
3838
<script src="assets/js/libs/handlebars.min.js"></script>
39-
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
39+
<script src="http://maps.google.com/maps/api/js"></script>
4040
<script src="assets/js/plugins/storeLocator/jquery.storelocator.js"></script>
4141
<script>
4242
$(function() {

dist/bootstrap-example.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<div class="bh-sl-container container-fluid">
1515
<div class="jumbotron">
1616
<div class="container">
17-
<h1>Using Chipotle as an Example</h1>
17+
<h1 class="bh-sl-title">Using Chipotle as an Example</h1>
1818
<p>I used locations around Minneapolis and the southwest suburbs. So, for example, Edina, Plymouth, Eden
1919
Prarie, etc. would be good for testing the functionality. You can use just the city as the address - ex:
2020
Edina, MN.</p>
@@ -47,7 +47,7 @@ <h1>Using Chipotle as an Example</h1>
4747
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
4848
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
4949
<script src="assets/js/libs/handlebars.min.js"></script>
50-
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
50+
<script src="http://maps.google.com/maps/api/js"></script>
5151
<script src="assets/js/plugins/storeLocator/jquery.storelocator.js"></script>
5252
<script>
5353
$(function() {

dist/categories-example.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<div class="bh-sl-container">
1212
<div id="page-header">
13-
<h1>Using Chipotle as an Example</h1>
13+
<h1 class="bh-sl-title">Using Chipotle as an Example</h1>
1414
<p>I used locations around Minneapolis and the southwest suburbs. So, for example, Edina, Plymouth, Eden Prarie, etc. would be good for testing the functionality.
1515
You can use just the city as the address - ex: Edina, MN.</p>
1616
</div>
@@ -122,7 +122,7 @@ <h1>Using Chipotle as an Example</h1>
122122

123123
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
124124
<script src="assets/js/libs/handlebars.min.js"></script>
125-
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
125+
<script src="http://maps.google.com/maps/api/js"></script>
126126
<script src="assets/js/plugins/storeLocator/jquery.storelocator.js"></script>
127127
<script>
128128
$(function() {

dist/category-markers-example.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<div class="bh-sl-container">
1212
<div id="page-header">
13-
<h1>Using Chipotle as an Example</h1>
13+
<h1 class="bh-sl-title">Using Chipotle as an Example</h1>
1414
<p>I used locations around Minneapolis and the southwest suburbs. So, for example, Edina, Plymouth, Eden Prarie, etc. would be good for testing the functionality.
1515
You can use just the city as the address - ex: Edina, MN. <strong>Note: SVGs are not used in this example because there seems to be a bug in IE11 and they aren't
1616
displayed. SVG path notation isn't used because it <a href="https://code.google.com/p/gmaps-api-issues/issues/detail?id=6358" target="_blank">looks awful</a> with HDPI devices.</strong></p>
@@ -37,7 +37,7 @@ <h1>Using Chipotle as an Example</h1>
3737

3838
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
3939
<script src="assets/js/libs/handlebars.min.js"></script>
40-
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
40+
<script src="http://maps.google.com/maps/api/js"></script>
4141
<script src="assets/js/plugins/storeLocator/jquery.storelocator.js"></script>
4242
<script>
4343
$(function() {

dist/default-location-example.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<div class="bh-sl-container">
1212
<div id="page-header">
13-
<h1>Using Chipotle as an Example</h1>
13+
<h1 class="bh-sl-title">Using Chipotle as an Example</h1>
1414
<p>I used locations around Minneapolis and the southwest suburbs. So, for example, Edina, Plymouth, Eden Prarie, etc. would be good for testing the functionality.
1515
You can use just the city as the address - ex: Edina, MN.</p>
1616
</div>
@@ -36,7 +36,7 @@ <h1>Using Chipotle as an Example</h1>
3636

3737
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
3838
<script src="assets/js/libs/handlebars.min.js"></script>
39-
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
39+
<script src="http://maps.google.com/maps/api/js"></script>
4040
<script src="assets/js/plugins/storeLocator/jquery.storelocator.js"></script>
4141
<script>
4242
$(function() {

dist/geocode.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ <h1>Simple geocoding form</h1>
3737
</div>
3838

3939
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
40-
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
40+
<script src="http://maps.google.com/maps/api/js"></script>
4141
<script src="assets/js/geocode.min.js"></script>
4242

4343
</body>

dist/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<div class="bh-sl-container">
1212
<div id="page-header">
13-
<h1>Using Chipotle as an Example</h1>
13+
<h1 class="bh-sl-title">Using Chipotle as an Example</h1>
1414
<p>I used locations around Minneapolis and the southwest suburbs. So, for example, Edina, Plymouth, Eden Prarie, etc. would be good for testing the functionality.
1515
You can use just the city as the address - ex: Edina, MN.</p>
1616
</div>
@@ -36,7 +36,7 @@ <h1>Using Chipotle as an Example</h1>
3636

3737
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
3838
<script src="assets/js/libs/handlebars.min.js"></script>
39-
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
39+
<script src="http://maps.google.com/maps/api/js"></script>
4040
<script src="assets/js/plugins/storeLocator/jquery.storelocator.js"></script>
4141
<script>
4242
$(function() {

dist/inline-directions.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<div class="bh-sl-container">
1212
<div id="page-header">
13-
<h1>Using Chipotle as an Example</h1>
13+
<h1 class="bh-sl-title">Using Chipotle as an Example</h1>
1414
<p>I used locations around Minneapolis and the southwest suburbs. So, for example, Edina, Plymouth, Eden Prarie, etc. would be good for testing the functionality.
1515
You can use just the city as the address - ex: Edina, MN.</p>
1616
</div>
@@ -36,7 +36,7 @@ <h1>Using Chipotle as an Example</h1>
3636

3737
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
3838
<script src="assets/js/libs/handlebars.min.js"></script>
39-
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
39+
<script src="http://maps.google.com/maps/api/js"></script>
4040
<script src="assets/js/plugins/storeLocator/jquery.storelocator.js"></script>
4141
<script>
4242
$(function() {

dist/json-example.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
<div class="bh-sl-container">
1212
<div id="page-header">
13-
<h1>Using Chipotle as an Example</h1>
13+
<h1 class="bh-sl-title">Using Chipotle as an Example</h1>
1414
<p>I used locations around Minneapolis and the southwest suburbs. So, for example, Edina, Plymouth, Eden Prarie, etc. would be good for testing the functionality.
1515
You can use just the city as the address - ex: Edina, MN.</p>
1616
</div>
@@ -36,7 +36,7 @@ <h1>Using Chipotle as an Example</h1>
3636

3737
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
3838
<script src="assets/js/libs/handlebars.min.js"></script>
39-
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
39+
<script src="http://maps.google.com/maps/api/js"></script>
4040
<script src="assets/js/plugins/storeLocator/jquery.storelocator.js"></script>
4141
<script>
4242
$(function() {

0 commit comments

Comments
 (0)