Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7532115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:21:31+00:00 2026-05-30T05:21:31+00:00

I am working on a google Map Api using fusion. I have multiple search

  • 0

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 + "'");
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T05:21:33+00:00Added an answer on May 30, 2026 at 5:21 am

    I posted some example code:
    in this post not too long ago. You need to combine your search conditions with AND and call layer.setQuery with multiple search conditions only once. I don’t think it has anything to do with your replace call as I didn’t see any embedded single quotes in your input values.

    Eric

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question regarding map api. I was using the the google map
I'm working on an advanced map application in Google Maps API V3. I'm using
I am working on Google map application using Google Maps JavaScript API V2 .
I am currently working on google map api V3 using cakephp with prototype.js. I
I have a google map on a page of search results that show up
I have a Google Map that suddenly stopped working for no apparent reason (I
I just started working using Google Maps API yesterday, and trying to set up
Hi I have one web application where i am using google map in my
I'm working on a location map which uses the Google Maps API. The desired
I've been working with Google Maps API v3 and created a map which allows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.