forked from unimelb/unimelb-design-system
-
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.
remove gmaps implementation, relink interface to leaflet, update map …
…credentials, update docs
- Loading branch information
1 parent
aa5958f
commit 7141154
Showing
10 changed files
with
55 additions
and
123 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 |
---|---|---|
@@ -1,16 +1,11 @@ | ||
<div class="jumpnav"></div> | ||
<h2 id="simplegmap">Simple Google maps</h2> | ||
<h2 id="simplegmap">Simple maps component</h2> | ||
|
||
Adding a map to a page is a great way to describe a location in addition to a text-based description. This component uses the Google Maps API to embed a functional google map into one of your pages easily. | ||
Adding a map to a page is a great way to describe a location in addition to a text-based description. This component uses the open source Leaflet.js to embed a functional map, using community-curated Open Street Maps data, into one of your pages. | ||
|
||
To use the Maps component, you will need to know the latitude and longitude of the location you are looking to map. These can be found easily using [Google Maps](http://maps.google.com) (the latitude and longitude can be found in the url) or a service like [itouchmap.com](http://itouchmap.com/latlong.html). | ||
|
||
This implementation is for basic mapping only, anything complex or requiring some level of interaction should work directly on the [Google Maps API](https://developers.google.com/maps/) in a custom JS script. | ||
|
||
## New! Open Street Maps | ||
## Note | ||
|
||
We also provide <a href="#openstreetmap">an alternative</a> for use with the community-curated Open Street Maps data, using the open source Leaflet.js. | ||
|
||
## New! Geocoding | ||
|
||
There is now <a href="#geocode">a method</a> for generating a map directly from an address searched against Google Maps, rather than lat lng coordinates. | ||
This component previously used Google Maps, but due to licensing costs has been migrated to Leaflet.js + OSM + Mapbox instead. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
section | ||
.map-canvas data-grayscale="" data-width="600" data-height="400" data-zoom="17" data-pin="-37.798535, 144.960605" data-address="780 Elizabeth St, Parkville" | ||
.map-canvas data-width="600" data-height="400" data-zoom="17" data-pin="-37.798535, 144.960605" data-latlng="-37.798535, 144.960605" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -7,4 +7,12 @@ | |
max-width: none; | ||
} | ||
} | ||
|
||
.leaflet-control-attribution a { | ||
color: inherit; | ||
|
||
&.em { | ||
color: #0078A8; | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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