Questions tagged [addmarker]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
2k views

addMarker pset8 mashup JSON not returning data

I have successfully implemented the event listener for add marker and am able to display strings when a marker is clicked. However, I cannot workout why my $.getJSON code that brings articles data is ...
2
votes
3answers
9k views

Pset8: How to set label position and font?

How to set label position and style? I tried new google.maps.Marker and new MarkerWithLabel. But both didn't work. Here is my current map: Here is my code: function addMarker(place) { // TODO ...
1
vote
1answer
216 views

CS50 Pset8: Final Questions before Wrap-Up

After pulling multiple allnighters I have finally submitted my last problem set before turning to the final project. I hope someone can shed some light on my last questions in regard to problem set 8 ...
0
votes
1answer
177 views

mashup add marker how to use $.getJSON getting [object Object] in pop up

My problem is with the function addMarker in scripts.js This is what I have: function addMarker(place) { var myLatLng = {lat: place.latitude, lng: place.longitude}; var geo = place.postal_code ...
0
votes
1answer
249 views

Can't get articles on my marker, and city markers are persisting

function addMarker(place) { // Create marker var marker = new google.maps.Marker({ position: {lat: place.latitude, lng: place.longitude}, map: map, title: place["...
0
votes
1answer
89 views

mashup: add marker does not render infowindow

My code successfully creates markers that pop up throughout the view of the map. However, upon clicking, there is no info map that pops up. The terminal does show that the server receives the command ...
0
votes
1answer
303 views

PSET8: addMarker not getting called

I am doing the 2017 version of this course which uses Python instead of PHP. My addMarker function doesn't seem to get called however if I execute the same commands in the Chrome Dev Console, the ...
0
votes
1answer
376 views

pset8 addMarker undefined in info window

I can show markers on the map and open info window when clicked the markers. However, the info window cannot show the list of articles, instead it only shows a bulletpoint and "undefined". From the ...
0
votes
2answers
2k views

addMarker in pset8 mashup only adding one marker to the map

I have implemented code that adds a marker at place, with the function being called via update(). However, one marker is only ever added, and the location of that marker is seemingly "random" for ...