Google Map + D3.js
This example combines Google Maps with D3.js to display bars and lounges around a Los Angeles hotel, using data from the Yelp API. A custom Google Maps overlay projects each business's latitude and longitude onto the map, rendering them as styled SVG markers with numbered labels. The map itself uses custom styling to alter road, landscape, and transit appearance, while the markers are drawn as red circles with white strokes. The code relies on the Google Maps JavaScript API, D3 v3, and jQuery for data handling, with the input data stored in a query.json file.
AI-generated descriptionThis is an example of using d3.js and Google Maps.
The data.json file is simply the output from the API Console page: https://www.yelp.com/developers/api_console, and was created using the conference hotel address in the "Near" field.
Here's the full query: http://api.yelp.com/v2/search/?term=Bars&location=Hyatt Regency Century Plaza, Los Angeles, CA&sort=2&limit=20&actionlinks=true Built with blockbuilder.org Built with blockbuilder.org
forked from <a href='http://bl.ocks.org/jeremycflin/'>jeremycflin</a>'s block: <a href='http://bl.ocks.org/jeremycflin/2913a5bf30c340d8f8fe'>Google Map + D3 Example</a>
forked from <a href='http://bl.ocks.org/anonymous/'>anonymous</a>'s block: <a href='http://bl.ocks.org/anonymous/e8dc726b051d3149e4afb2fc40e25cb9'>Google Map + D3 Example</a>
forked from <a href='http://bl.ocks.org/anonymous/'>anonymous</a>'s block: <a href='http://bl.ocks.org/anonymous/da0b795313a955e4899b4f740f5a0473'>Google Map + D3 Example</a>