This repository has been archived by the owner on Jan 19, 2024. It is now read-only.
forked from ubilabs/geocomplete
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Eric Farr
committed
Nov 23, 2019
1 parent
28c9e1b
commit df9183a
Showing
11 changed files
with
446 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
# Unix-style newlines with a newline ending every file | ||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
charset = utf-8 | ||
|
||
# 2 space indentation | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[**.md] | ||
# trailing spaces have a meaning in markdown | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Please note: This project is not maintained anymore! | ||
Feel free to discuss issues here but please do not expect new features or changes in the default behavior. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"name": "geocomplete", | ||
"version": "1.7.0", | ||
"homepage": "http://ubilabs.github.com/geocomplete/", | ||
"authors": [ | ||
"Martin Kleppe <[email protected]>" | ||
], | ||
"description": "jQuery Geocoding and Places Autocomplete Plugin", | ||
"main": "jquery.geocomplete.js", | ||
"keywords": [ | ||
"geocoding", | ||
"map", | ||
"places", | ||
"api", | ||
"search", | ||
"google" | ||
], | ||
"license": "MIT", | ||
"dependencies": { | ||
"jquery": ">= 1.9.0" | ||
}, | ||
"ignore": [ | ||
"**/.*", | ||
"node_modules", | ||
"bower_components", | ||
"test", | ||
"tests" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>$.geocomplete()</title> | ||
<meta charset="UTF-8"> | ||
<link rel="stylesheet" type="text/css" href="styles.css" /> | ||
<style type="text/css" media="screen"> | ||
form { width: 300px; float: left; } | ||
fieldset { width: 320px; margin-top: 20px} | ||
fieldset label { display: block; margin: 0.5em 0 0em; } | ||
fieldset input { width: 95%; } | ||
.location { margin-top: 20px; } | ||
</style> | ||
</head> | ||
<body> | ||
|
||
<form> | ||
|
||
<div class="location"> | ||
<input class="geocomplete" type="text" placeholder="Type in an address" value="Empire State Bldg" /> | ||
<input class="find" type="button" value="find" /> | ||
|
||
<fieldset class="details"> | ||
<h3>Address-Details</h3> | ||
|
||
|
||
<label>Latitude</label> | ||
<input name="lat" type="text" value=""> | ||
|
||
<label>Longitude</label> | ||
<input name="lng" type="text" value=""> | ||
|
||
|
||
</fieldset> | ||
</div> | ||
|
||
<div class="location"> | ||
<input class="geocomplete" type="text" placeholder="Type in an address" value="Eiffel Tower" /> | ||
<input class="find" type="button" value="find" /> | ||
|
||
<fieldset class="details"> | ||
<h3>Address-Details</h3> | ||
|
||
<label>Latitude</label> | ||
<input name="lat" type="text" value=""> | ||
|
||
<label>Longitude</label> | ||
<input name="lng" type="text" value=""> | ||
|
||
|
||
</fieldset> | ||
</div> | ||
|
||
</form> | ||
|
||
<script src="http://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"></script> | ||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | ||
|
||
<script src="../jquery.geocomplete.js"></script> | ||
|
||
<script> | ||
$(function(){ | ||
$(".geocomplete").geocomplete({ | ||
details: ".details", | ||
detailsScope: '.location', | ||
types: ["geocode", "establishment"], | ||
}); | ||
|
||
$(".find").click(function(){ | ||
$(this).parents(".location").find(".geocomplete").trigger("geocode"); | ||
}); | ||
}); | ||
</script> | ||
|
||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>GeoComplete</title> | ||
<meta charset="UTF-8"> | ||
<link rel="stylesheet" type="text/css" href="styles.css" /> | ||
</head> | ||
<body> | ||
|
||
<form> | ||
<input id="geocomplete" type="text" placeholder="Type in an address" size="90" /> | ||
</form> | ||
|
||
<div class="map_canvas"></div> | ||
|
||
<script src="http://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"></script> | ||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | ||
|
||
<script src="../jquery.geocomplete.js"></script> | ||
<script src="logger.js"></script> | ||
|
||
<script> | ||
$(function(){ | ||
|
||
// Sample style taken from https://snazzymaps.com/style/70/unsaturated-browns | ||
var mapStyles = [{"elementType":"geometry","stylers":[{"hue":"#ff4400"},{"saturation":-68},{"lightness":-4},{"gamma":0.72}]},{"featureType":"road","elementType":"labels.icon"},{"featureType":"landscape.man_made","elementType":"geometry","stylers":[{"hue":"#0077ff"},{"gamma":3.1}]},{"featureType":"water","stylers":[{"hue":"#00ccff"},{"gamma":0.44},{"saturation":-33}]},{"featureType":"poi.park","stylers":[{"hue":"#44ff00"},{"saturation":-23}]},{"featureType":"water","elementType":"labels.text.fill","stylers":[{"hue":"#007fff"},{"gamma":0.77},{"saturation":65},{"lightness":99}]},{"featureType":"water","elementType":"labels.text.stroke","stylers":[{"gamma":0.11},{"weight":5.6},{"saturation":99},{"hue":"#0091ff"},{"lightness":-86}]},{"featureType":"transit.line","elementType":"geometry","stylers":[{"lightness":-48},{"hue":"#ff5e00"},{"gamma":1.2},{"saturation":-23}]},{"featureType":"transit","elementType":"labels.text.stroke","stylers":[{"saturation":-64},{"hue":"#ff9100"},{"lightness":16},{"gamma":0.47},{"weight":2.7}]}]; | ||
|
||
var options = { | ||
map: ".map_canvas", | ||
location: "Dublin", | ||
mapOptions: { | ||
styles: mapStyles | ||
} | ||
}; | ||
|
||
$("#geocomplete").geocomplete(options); | ||
|
||
}); | ||
</script> | ||
</body> | ||
</html> | ||
|
Oops, something went wrong.