3
votes
Accepted
InfoWindow doesn't load in map when clicking label - Uncaught Type Error
I think the problem may be that your add listener is outside the addmarker function scope.
If you need more help, i'll be glad to help :)
1
vote
Accepted
Pset8: Please help, all my markers and news disappeared (Other peoples code don't work either)
Looks like you missed out at least one setting for your marker.
Be sure you have in your new Marker
map: map,
So that the markers will go on the map.
I added that one line and your markers ...
1
vote
Accepted
problems with markers on addmarkers pset8
I was able to reproduce the reported error
sqlalchemy.exc.ArgumentError: This text() construct doesn't define a bound parameter named 'ne_lng'
by modifying the (first) SELECT sql in the update ...
1
vote
Pset8, addMarker: Need help in understanding documentation in google.maps.Marker
Take a look at the general documentation of markers by Google here: https://developers.google.com/maps/documentation/javascript/markers. Start by reading what a marker is and how you create a new ...
1
vote
pset8 addMarker trouble getting lat lng
As far as I can tell, the issue is that the is being passed in as a string. So I turned them into floats by doing the following (using parseFloat):
var mylat = parseFloat(place.latitude);
...
1
vote
change icon of marker problem in mashup
You need to use /img/news2.jpg (notice the preceding slash) since img is a subdirectory of public (assuming that news2.jpg is stored in img). You should be able to do it in one line this way:
icon: '/...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
google-maps-markers × 10pset8 × 8
mashup × 5
addmarker × 5
javascript × 2
maps × 2
cs50x × 1
json × 1
google-maps-api × 1
showinfo × 1
google-map × 1