3

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

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 reappeared. (in context) var marker = new google.maps.Marker({ position: myLatlng, // title: place.place_name + ", " + place.admin_name1, //<-- title key ...


1

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 function in application.py. (I changed :ne_lng to :ne_ln) The WHERE clause should be: WHERE :sw_lat <= latitude AND latitude <= :ne_lat AND (:sw_lng <= ...


1

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 marker and add it to the map. Then read, a few scrolls bellow it, what a marker label is and how you can use it inside your marker. It has for example the following ...


1

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); var mylng = parseFloat(place.longitude); // TODO var myLatLng = {lat: mylat, lng: mylng};


1

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: '/img/news2.png',. That worked for me.


Only top voted, non community-wiki answers of a minimum length are eligible