How to add the geometry to google maps from geojson(retrieved as json) for a specifie

المشرف العام

Administrator
طاقم الإدارة
I have a array called place_names which holds some place names. I have a geojson layer loaded in my cartodb, which has three columns id, name and the_geom(which is a geometry object) that can be queried and retrieved as json. What i need is i am comparing the names in place_names array to the geojson name column, if the name in place_names array matches with that of geojson names, i want to retrieve the geometry of that matched names and add that to google maps.How this could be done?Below is my code.

var place_names = [];$.getJSON(json_link, function (data) { for (i=0; i
 
أعلى