udacity / ud864 Goto Github PK
View Code? Open in Web Editor NEWPublic repository for code examples used in Udacity's Google Maps APIs course (https://www.udacity.com/course/google-maps-apis--ud864).
License: MIT License
Public repository for code examples used in Udacity's Google Maps APIs course (https://www.udacity.com/course/google-maps-apis--ud864).
License: MIT License
In the line 83 from 'Project_Code_3_WindowShoppingPart1.html' file, the method infowindow.setMarker(null);
not exist.
The correct is set the attribute infowindow.marker = null;
to unbound marker
object of infowindow
.
I came across an issue in the Autocomplete portion of the course. I was running my autocomplete code to display pizza restaurants and noticed that when I typed in 'pizza', it would zoom the map all the way out to show North America continent and show international listings instead of inside NYC area. It worked fine if I typed in 'pizza NYC' though. At first I thought I had made a mistake in my code, so I copied over the code sample from github repo. Same thing happened again with the code from github.
It's my understanding that in the code, when you call searchBox.setBounds(map.getBounds())
in the code, it would display searchBox results to be within NYC area, not internationally.
Project_Code_3_WindowShoppingPart1.html
line 77 if (infowindow.marker != marker) {
if you click on one marker to view the the title, close and try to reopen it won't open again unless you click on another marker.
Better solution ?
// Check to make sure the infowindow is not set to the same marker, but if it is, and the infowindow was close, reopen it.
if (infowindow.marker != marker || infowindow.setMarker == null) {
To create the custom markers the code uses the Google Maps Marker.Image
object -- but that has been replaced by the Google Maps Icon
object. There is very little documentation about Marker.Image
which can cause some confusion for students. Suggest that the code be refactored to use Icon
which has better documentation.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.