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 6988871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:08:15+00:00 2026-05-27T19:08:15+00:00

Update Sir this is current code of my web page.I made changes according to

  • 0

Update
Sir this is current code of my web page.I made changes according to ur suggesstion but title is invisible or not displaying what has missed by me

  <script runat=server>

      Dim mgps As New Text.StringBuilder

      Public ReadOnly Property GPS() As String
          Get
              Return mgps.ToString

          End Get
      End Property
      Dim station As New Text.StringBuilder
      Public ReadOnly Property STA() As String
          Get
              Return station.ToString

          End Get
      End Property

  </script>  

  <%  Dim con As New OleDbConnection
      con = New OleDbConnection("Data Source=sml; User ID=sml; Password=sml; provider=OraOLEDB.Oracle")
      con.Open()
      Dim cmd As OleDbCommand = New OleDbCommand("Select STA_NAME, GPS_ONE from GPS", con)

      Dim ds As New DataSet
      Dim I As Long

      Dim da As New OleDbDataAdapter(cmd)
      da.Fill(ds, "GPS")
      mgps.AppendLine("[")
      For I = 0 To ds.Tables("GPS").Rows.Count - 1
          '   mgps.AppendLine("new google.maps.LatLng(" & ds.Tables("GPS").Rows(I).Item("GPS_ONE") & "),")
          mgps.AppendLine("{GPS:new google.maps.LatLng(" & ds.Tables("GPS").Rows(I).Item("GPS_ONE") & "), Sta_Name:'" & STA & "'},")
      Next I
      mgps.AppendLine("];")

      con.Close()
      %> 

Update2
And JS code is here

  for(i=0; i<GPS.length; i++)
{

      var image = 'ico/no.png';
      var infowindow = new google.maps.InfoWindow();
      var ContentString = GPS[i].TITLE
      markers[i] = new google.maps.Marker(
      { 
       position: GPS[i].GPS,
       map: map,
       draggable:true,
       icon:image,
       title:GPS[i].TITLE

       });                       
        google.maps.event.addListener(markers[i], 'click', function() {
        infowindow.setContent(ContentString);
        infowindow.open(map,markers[i]);
        });


}    

Sir My infowindow is not opening what may the issue

  • 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-27T19:08:16+00:00Added an answer on May 27, 2026 at 7:08 pm

    This depends on how you’re storing data in your GPS_ONE column in your GPS table, but if your for loop looks like this:

    for(i=0; i<GPS.length-1; i++)
    {
    
          var image = 'ico/no.png';
          markers[i] = new google.maps.Marker(
          { 
           position: GPS[i],
           map: map,
           draggable:true,
           icon:image,
           title: (i+1) + GPS //why is this here? do you have two variables with the same name or did you mean GPS[i]?
           });                             
    }
    

    and the data in your GPS_ONE column looks like this:

    new google.maps.LatLng(31.204549793299,72.264183974237)
    

    then what you wrote should be working.

    EDIT: it looks like you’re not creating an array of google map latlng objects as per your example above. Try changing your loop in your vb to look like this:

        For I = 0 To ds.Tables("GPS").Rows.Count - 1
            mgps.AppendLine("new google.maps.LatLng(" & ds.Tables("GPS").Rows(I).Item("GPS_ONE") & "),")
        Next I
    

    EDIT for second question:
    You can store everything in a JSON object, so

        For I = 0 To ds.Tables("GPS").Rows.Count - 1
            mgps.AppendLine("{GPS:new google.maps.LatLng(" & ds.Tables("GPS").Rows(I).Item("GPS_ONE") & "), Title:'" & titleColumnSourceHere & "'},")
        Next I
    

    Then you can use this JSON object like this:

    for(i=0; i<GPS.length-1; i++)
    {
    
          var image = 'ico/no.png';
          markers[i] = new google.maps.Marker(
          { 
           position: GPS[i].GPS,
           map: map,
           draggable:true,
           icon:image,
           title: GPS[i].Title
           });                             
    }
    

    Obviously I would recommend renaming your GPS variable to something more suitable because it now holds non-gps data

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

Sidebar

Related Questions

UPDATE: I made a mistake in my debugging - this question is not relavent
Update 1: Corrected nonsense code! Thanks for comments, I made a hash of the
update - if I remove the runat=server this does not happen...then how do I
Update: Solved, with code I got it working, see my answer below for the
Update: Check out this follow-up question: Gem Update on Windows - is it broken?
Update : Looks like the query does not throw any timeout. The connection is
Update: Now that it's 2016 I'd use PowerShell for this unless there's a really
Update: Please read this question in the context of design principles, elegance, expression of
UPDATE This is an old question for an old version of Xcode. It turned
UPDATE : A commenter told me to change some codes, this is the new

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.