Skip to content

Commit 7eed6bb

Browse files
committed
Added inline directions functionality, handlebars helper for "nice" URL output, trying out newly found marker image, fixed remaining errors, cleanup
1 parent 76f0c78 commit 7eed6bb

12 files changed

+344
-170
lines changed

dist/css/storelocator.css

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,15 @@
157157
box-shadow: 0 0 8px rgba(82, 168, 236, 0.7);
158158
transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
159159
}
160+
.bh-storelocator-container .bh-storelocator-loc-list .bh-storelocator-close-directions-container {
161+
width: 100%;
162+
height: 20px;
163+
position: relative;
164+
}
165+
.bh-storelocator-container .bh-storelocator-loc-list .bh-storelocator-close-directions-container .bh-storelocator-close-icon {
166+
top: 0;
167+
right: 6px;
168+
}
160169
.bh-storelocator-container .loc-name {
161170
/* Picked up by both list and infowindows */
162171
color: #ae2118;
@@ -217,10 +226,12 @@
217226
padding: 0 22px;
218227
/* there's already a margin on the top of the map-container div */
219228
}
220-
.bh-storelocator-overlay .bh-storelocator-modal-window .bh-storelocator-modal-close-icon {
221-
position: absolute;
229+
.bh-storelocator-overlay .bh-storelocator-modal-window .bh-storelocator-close-icon {
222230
top: -6px;
223231
right: -6px;
232+
}
233+
.bh-storelocator-close-icon {
234+
position: absolute;
224235
width: 18px;
225236
height: 18px;
226237
cursor: pointer;
@@ -229,10 +240,3 @@
229240
border-radius: 3px;
230241
box-shadow: 0 0 3px #656565;
231242
}
232-
/* The following is for the geocode page and not the store locator */
233-
#geocode-result {
234-
clear: left;
235-
float: left;
236-
margin-top: 30px;
237-
width: 100%;
238-
}

dist/css/storelocator.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/data/locations.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
<marker name="Chipotle Roseville" lat="44.998965" lng="-93.194622" category="Restaurant" address="860 Rosedale Center Plaza" address2="" city="Roseville" state="MN" postal="55113" country="US" phone="651-633-2300" email="info@chipotle.com" web="http://www.chipotle.com" hours1="Mon-Sun 11am-10pm" hours2="" hours3="" featured="" features="" />
2020
<marker name="Chipotle St. Paul" lat="44.939865" lng="-93.136768" category="Restaurant" address="867 Grand Ave" address2="" city="St. Paul" state="MN" postal="55105" country="US" phone="651-602-0560" email="info@chipotle.com" web="http://www.chipotle.com" hours1="Mon-Sun 11am-10pm" hours2="" hours3="" featured="" features="" />
2121
<marker name="Chipotle Chanhassen" lat="44.858736" lng="-93.533661" category="Restaurant" address="560 W 79th" address2="" city="Chanhassen" state="MN" postal="55317" country="US" phone="952-294-0301" email="info@chipotle.com" web="http://www.chipotle.com" hours1="Mon-Sun 11am-10pm" hours2="" hours3="" featured="" features="" />
22-
<marker name="Chipotle St. Paul" lat="44.945127" lng="-93.095368" category="Restaurant" address="29 5th St West" address2="" city="St. Paul" state="MN" postal="55102" country="US" phone="651-291-5411" email="info@chipotle.com" web="http://www.chipotle.com" hours1="Mon-Sun 11am-10pm" hours2="" hours3="" features="" />
22+
<marker name="Chipotle St. Paul" lat="44.945127" lng="-93.095368" category="Restaurant" address="29 5th St West" address2="" city="St. Paul" state="MN" postal="55102" country="US" phone="651-291-5411" email="info@chipotle.com" web="http://www.chipotle.com" hours1="Mon-Sun 11am-10pm" hours2="" hours3="" featured="" features="" />
2323
</markers>

dist/geocode.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44
<title>Geocode</title>
55
<meta charset="UTF-8">
66
<link rel="stylesheet" type="text/css" href="css/storelocator.css" />
7+
<style type="text/css">
8+
/* The following is for the geocode page and not the store locator */
9+
#geocode-result{
10+
clear: left;
11+
float: left;
12+
margin-top: 30px;
13+
width: 100%;
14+
}
15+
</style>
716
</head>
817

918
<body>

dist/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ <h1>Using Chipotle as an Example</h1>
2626
</form>
2727
</div>
2828

29-
<div class="bh-storelocator-map-container">
29+
<div id="map-container" class="bh-storelocator-map-container">
3030
<div class="bh-storelocator-loc-list">
3131
<ul class="list"></ul>
3232
</div>
@@ -40,7 +40,7 @@ <h1>Using Chipotle as an Example</h1>
4040
<script src="js/jquery.storelocator.js"></script>
4141
<script>
4242
$(function() {
43-
$('.bh-storelocator-map-container').storeLocator();
43+
$('#map-container').storeLocator({ 'inlineDirections': true });
4444
});
4545
</script>
4646

0 commit comments

Comments
 (0)