var locations = '<?php print_r(json_encode($locations)) ?>'
console.log(locations);
var mymap = new GMaps({
el: '#mymap',
lat: 31.5204,
lng: 74.3587,
zoom:6 });
mymap.addMarker({
lat: 31.5204,
lng: 74.3587,
click: function(e) { alert('This Is Lahore, Pakistan.'); } });
this is response
[{"id":1,"user_id":2,"latitude":"37.33068424","longitude":"37.33063124","attacked_by":"1","created_at":"2020-02-09 00:00:00","updated_at":"2020-02-16 00:00:00"}]
how can i add multiple pointers using this response lang lat?
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3admwy6
via IFTTT
Aucun commentaire:
Enregistrer un commentaire