Questions tagged [addmarker]

The tag has no usage guidance.

11 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
1answer
34 views

$.getJSON request for articles not working

I'm getting a bit confused about what I need to do here to retrieve my articles in scripts.js from /articles to display on my marker. I have done ample reading about AJAX and $.getJSON, but still ...
0
votes
1answer
162 views

pset8 addMarker - markers not showing on map

When I run flask and open the map, I can't view the markers on the map. Is there something wrong with my addMarker function? Thank you. // Add marker for place to map function addMarker(place) { //...
0
votes
1answer
193 views

Pset 8 - Jquery of addMarker

I'm having some issues displaying the list of articles on my marker. I've definitely managed to get it to work and display things inside, but I think there's an issue with the syntax on my jquery ...
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
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
292 views

CS50 pset8 addMarker Getjson not working

I got "success" in the console which mean getjson returning an object. I try assign it to a var name news and put in back in showInfo but showInfo always output a loading image which mean typeof news ...
0
votes
1answer
267 views

pset8 addMarker JSON question

I'm struggling with pset8 quite a bit during the addMarker function. I try to access the JSON object returned from articles() but I can't seem to understand how to access it. I've tried JSON.parse(),...
0
votes
0answers
312 views

pset8- AddMarker need help with function

Can anyone tell me what I'm doing wrong? It seems to still not even work even for any of the console commands to check, so apparently my getJSON is not working. function addMarker(place) { ...
0
votes
1answer
236 views

PSET8 Problem with infoWindow from addMarker() function

This is my code: function addMarker(place) { var opts = { position: {lat: parseFloat(place.latitude), lng: parseFloat(place.longitude)}, map: map, title: place.place_name ...
0
votes
1answer
124 views

addMarker() adding exact news of clicked place but on one marker

I don't know what is the problem in this code. When I click on a marker, it opens exact news on that location in an info window. But when I click on some other marker, it displays the info window on ...
0
votes
1answer
365 views

Pset8: addMarker: markers not appearing but marker icon is loaded in Developer Tools

in mashup, the markers are not appearing, although they appear to be loading in my Network tab in Developer Tools. Here is my addMarker function. function addMarker(place) { // TODO var lat ...