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

  • Home
  • SEARCH
  • 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 7839661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:30:29+00:00 2026-06-02T15:30:29+00:00

I am working on integrating Google Maps into a web application and I have

  • 0

I am working on integrating Google Maps into a web application and I have a question of possibility.

I am using ASP .Net 4.0 as the basis for the code, but i suspect i will have to use JavaScript to achieve most of this, which is. Basically I want to display a bunch of markers on a map from Lat Long locations i have stored in a database, then have the user be able to draw a box on the map with the mouse, then get back the lat long of the four corners of the box.

If anyone knows how i could do this this would be of great help to me!

Thanks

  • 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-06-02T15:30:31+00:00Added an answer on June 2, 2026 at 3:30 pm

    The complexity of the Google Maps API has kept me scared for years. Recently I stumbled upon a jQuery plugin called GMap3 that does a lot of the heavy lifting for you.

    I would suggest that after initializing and all that, you print a Javascript block from your .NET code, with something like this:

    var markersFromDatabase = [
        [60.164967,24.94758],
        [59.956495, 10.764599]
        //etc. This array should be printed from your serverside code
    ];
    var markersToBeAdded = [];
    jQuery.each(markersFromDatabase, function(indexOfItem, valueOfItem){
        markersToBeAdded.push({
            lat:valueOfItem[0],
            lng:valueOfItem[1],
            options: {
                draggable: false,
                icon: "img/your_awesome_icon.png",
                title: "This is an icon from my database!"
            }
        });
    });
    jQuery("#map_canvas").gmap3(
        { action: 'addMarkers',
            markers: markersToBeAdded
        }
    );
    

    Edit: I realize now that I only answered half of your question. I’m afraid I have no apparent answer to the selection box. I suspect that you can use addRectangle or, in a worst case scenario, addFixPanel that lets you add a transparent <div> over your map canvas (and then trigger mouse events for that).

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

Sidebar

Related Questions

I am integrating Unity 2.0 into my ASP.NET application (using the UnityPageHandlerFactory approach) and
I'm using the google-gdata .NET library for integrating with Google Docs. It's working out
I'm working on integrating Ben Gottlieb's Twitter-OAuth-iPhone code into my cocos2d 0.99.5 project using
I am working on integrating affiliate sales into few existing sites. We are using
I am working on integrating Assetic into an application that I am building. The
I'm integrating Gigya with a web app running Acegi. I have it working that
I'm integrating a reCAPTCHA into my Cappuccino app and I have it all working
I'm following a SitePoint tutorial for integrating the Google Maps API into our site
Im working on integrating db4o into my project and I have some questions. I
I have created a facebook application for integrating facebook credits.It is working fine but

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.