Question

I am working on a google Map Api using fusion. I have multiple search queries and want them to filter the results. At the moment they overrule each other and don't work together the filter the results. The site is called earthquakedamagemap.com. It is my university project. Any help would be much appreciated.

I think it is the 'value.replace' attribute which needs changing?

    function changeMap2() { 
      var searchString = document.getElementById('search-string2').value.replace(/'/g, "\\'");  
      if(!searchString) {
        layer.setQuery("SELECT 'Latitude' FROM " + tableid);
        return;
      }
      layer.setQuery("SELECT 'Latitude' FROM " + tableid + " WHERE 'Updated Risk Assessment:' = '" + searchString + "'");
    }

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top