Skip to content

Commit 3b1ba40

Browse files
Optimização do Mapa
1 parent fc32656 commit 3b1ba40

File tree

9 files changed

+115
-8
lines changed

9 files changed

+115
-8
lines changed

contact.html

+1-1
Large diffs are not rendered by default.

images/map-bg.jpg

94.3 KB
Loading

scripts/main.js

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

static/app/contact.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -278,15 +278,15 @@ <h3 class="text-center">Observações gerais:</h3>
278278
</div>
279279

280280
<div id="address">
281-
<div id="map" ></div>
281+
<div id="map"></div>
282282
<div class="container">
283283
<div class="row">
284284
<div class="col-md-4 col-md-offset-6 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1 card">
285285
<h1 class="title">
286286
ONDE ESTAMOS
287287
<span></span>
288288
</h1>
289-
<p class="strong">Rua Henrrique Meyer, 40,</p>
289+
<p class="strong">Rua Henrique Meyer, 40,</p>
290290
<p>Sala 1, Centro. CEP 89201-405</p>
291291
<p>Joinville - SC</p>
292292

@@ -297,7 +297,7 @@ <h1 class="title">
297297
</div>
298298
</div>
299299

300-
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAlXreDCGCFsGRMWteNqmZ_Ai5qFjohDEE" async defer></script>
300+
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAlXreDCGCFsGRMWteNqmZ_Ai5qFjohDEE"></script>
301301

302302
<footer id="footer">
303303
<div class="container">

static/app/images/map-bg.jpg

94.3 KB
Loading

static/app/scripts/main.js

+107-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,113 @@ Main = {
273273
streetViewControl: false,
274274
overviewMapControl: true,
275275
mapTypeId: 'roadmap',
276-
styles: [{'featureType':'administrative','elementType':'labels.text.fill','stylers':[{'color':'#444444'}]},{'featureType':'landscape','stylers':[{'color':'#f2f2f2'}]},{'featureType':'landscape.man_made','stylers':[{'visibility':'off'}]},{'featureType':'poi','stylers':[{'visibility':'simplified'}]},{'featureType':'poi','elementType':'labels','stylers':[{'visibility':'off'}]},{'featureType':'poi.attraction','stylers':[{'visibility':'off'}]},{'featureType':'poi.business','stylers':[{'visibility':'off'}]},{'featureType':'road','stylers':[{'saturation':-100},{'lightness':45}]},{'featureType':'road.arterial','elementType':'labels.icon','stylers':[{'visibility':'off'}]},{'featureType':'road.highway','stylers':[{'visibility':'simplified'}]},{'featureType':'transit','stylers':[{'visibility':'off'}]},{'featureType':'water','stylers':[{'color':'#46bcec'},{'visibility':'on'}]}]
276+
styles: [
277+
{
278+
'elementType': 'labels.text.fill',
279+
'featureType': 'administrative',
280+
'stylers': [
281+
{
282+
'color': '#444444'
283+
}
284+
]
285+
},
286+
{
287+
'featureType': 'landscape',
288+
'stylers': [
289+
{
290+
'color': '#f2f2f2'
291+
}
292+
]
293+
},
294+
{
295+
'featureType': 'landscape.man_made',
296+
'stylers': [
297+
{
298+
'visibility': 'off'
299+
}
300+
]
301+
},
302+
{
303+
'featureType': 'poi',
304+
'stylers': [
305+
{
306+
'visibility': 'simplified'
307+
}
308+
]
309+
},
310+
{
311+
'elementType': 'labels',
312+
'featureType': 'poi',
313+
'stylers': [
314+
{
315+
'visibility': 'off'
316+
}
317+
]
318+
},
319+
{
320+
'featureType': 'poi.attraction',
321+
'stylers': [
322+
{
323+
'visibility': 'off'
324+
}
325+
]
326+
},
327+
{
328+
'featureType': 'poi.business',
329+
'stylers': [
330+
{
331+
'visibility': 'off'
332+
}
333+
]
334+
},
335+
{
336+
'featureType': 'road',
337+
'stylers': [
338+
{
339+
'saturation': -100
340+
},
341+
{
342+
'lightness': 45
343+
}
344+
]
345+
},
346+
{
347+
'elementType': 'labels.icon',
348+
'featureType': 'road.arterial',
349+
'stylers': [
350+
{
351+
'visibility': 'off'
352+
}
353+
]
354+
},
355+
{
356+
'featureType': 'road.highway',
357+
'stylers': [
358+
{
359+
'visibility': 'simplified'
360+
}
361+
]
362+
},
363+
{
364+
'featureType': 'transit',
365+
'stylers': [
366+
{
367+
'visibility': 'off'
368+
}
369+
]
370+
},
371+
{
372+
'featureType': 'water',
373+
'stylers': [
374+
{
375+
'color': '#46bcec'
376+
},
377+
{
378+
'visibility': 'on'
379+
}
380+
]
381+
}
382+
]
277383
});
278384

279385
(function () {

static/app/styles/contact.scss

+1
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@
307307
#map {
308308
width: 100%;
309309
height: 100%;
310+
background: url('../images/map-bg.jpg') top center no-repeat;
310311
}
311312

312313
.card {

static/app/styles/main.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ p { font: 300 1.8rem/3.20rem $primary-font; }
318318
background-color: $yellow-6;
319319
max-height: 550px;
320320
height: 550px;
321-
background: url('../images/crowd-bg.jpg') bottom center;
321+
background: url('../images/crowd-bg.jpg') bottom center $yellow-6;
322322
box-shadow: inset 0px -3px 5px 0px rgba(0,0,0,0.2);
323323

324324
h1 {

styles/main.css

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

0 commit comments

Comments
 (0)