This file contains hidden or 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
| <script> | |
| $(document).ready( | |
| function() { | |
| var mapOptions = { | |
| center: { lat: 37, lng: -120}, | |
| zoom: 6 | |
| }; | |
| map = new google.maps.Map(document.getElementById('map-canvas'), | |
| mapOptions); | |
| map.data.setStyle({ |
This file contains hidden or 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
| <script> | |
| map.data.addListener('click', function(event) { | |
| var lat = event.feature.getProperty("CENTLAT"); | |
| var lng = event.feature.getProperty("CENTLON"); | |
| var name = event.feature.getProperty("NAME"); | |
| var request = { | |
| "lat": lat, | |
| "lng": lng | |
| }; | |
| farmersMarket.search(request, function(response) { |
This file contains hidden or 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
| <body> | |
| <div id="map-canvas" style="width: 200px; height: 200px"></div> | |
| </body> | |
| <script> | |
| var apiKey, map; | |
| var sdk = new CitySDK(); | |
| var census = sdk.modules.census; | |
| var farmersMarket = sdk.modules.farmersMarket; | |
| //We won't need API keys for just Geography. |
This file contains hidden or 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
| <head> | |
| <script type="text/javascript" | |
| src="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=visualization&signed_in=true"> | |
| </script> | |
| <script src="jquery.js"></script> | |
| <script src="js/citysdk.js"></script> | |
| <script src="js/citysdk.census.js"></script> | |
| <script src="js/citysdk.farmersMarket.js"></script> | |
| </head> |
This file contains hidden or 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
| <head> | |
| <script type="text/javascript" | |
| src="https://maps.googleapis.com/maps/api/js?v=3.exp&libraries=visualization&signed_in=true"> | |
| </script> | |
| <script src="jquery.js"></script> | |
| <script src="js/citysdk.js"></script> | |
| <script src="js/citysdk.census.js"></script> | |
| <script src="js/citysdk.farmersMarket.js"></script> | |
| </head> |
NewerOlder