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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T03:08:20+00:00 2026-05-17T03:08:20+00:00

How to display yahoo static map in gridview if we pass address as query

  • 0

How to display yahoo static map in gridview if we pass address as query string? Also please tell how to display dynamic yahoo maps also. I have searched about yahoo maps and got the following links http://developer.yahoo.com/flash/maps/examples.html, http://developer.yahoo.com/maps/rest/V1/ and http://developer.yahoo.com/maps/. I did not get any link which has code for integrating yahoo map in an ASP.Net website!

  • 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-17T03:08:20+00:00Added an answer on May 17, 2026 at 3:08 am

    I have created yahoo dynamic map, the address can be passed as value of a hidden field present in the page. The value for hidden field can be dynamically passed in page_load event. I have created this in the child page encapsulated by master page in ASP.Net.

    Before starting, the user has to generate Application ID for using yahoo maps by logging into your yahoo ID and navigating to this link https://login.yahoo.com/config/login_verify2?.src=devnet&.done=http://developer.apps.yahoo.com/wsregapp/ and providing our website URL.

    The code for displaying yahoo map is given below:

    .map {
    height: 400px;
    width: 700px;
    font-family:Verdana;
    font-size:11px;
    font-weight:bold;
    }

    <script type="text/javascript" src="http://api.maps.yahoo.com/ajaxymap?v=3.8&appid=YourAPPID">  
    </script>
    
    <script type="text/javascript">
    
        // Capture the user mouse-click and expand the SmartWindow
        function onSmartWinEvent() {
    
    
            // Create a map object
            var map = new YMap(document.getElementById('<%= map.ClientID %>'));
            // Add a pan control
            map.addPanControl();
            // Add a slider zoom control
            map.addZoomLong();
            // Display the map centered on the address specified          
            map.drawZoomAndCenter(document.getElementById('<%= HiddenField1.ClientID %>').value, 3);
            // Create a marker positioned at the address specified
            var marker = new YMarker(document.getElementById('<%= HiddenField1.ClientID %>').value, createCustomMarkerImage());
            // Add a label to the marker
            //marker.addLabel("<blink>*</blink>");
            // Call onSmartWinEvent when the user clicks on the marker 
            YEvent.Capture(marker, EventsList.MouseClick, onSmartWinEvent);
            // Display the marker 
            map.addOverlay(marker);
    
    
            var words = document.getElementById('<%= HiddenField1.ClientID %>').value;
            marker.openSmartWindow(words);
    
            // Add map type control   
            map.addTypeControl();
            // Default map to satellite (YAHOO_MAP_REG) -- other opts: YAHOO_MAP_HYB,YAHOO_MAP_SAT
            map.setMapType(YAHOO_MAP_REG);
        }
    
        function createCustomMarkerImage() {
            var myImage = new YImage();
            myImage.src = 'http://l.yimg.com/www.flickr.com/images/dot_splat.png';
            myImage.size = new YSize(30, 31);
            myImage.offsetSmartWindow = new YCoordPoint(15, 15);
            return myImage;
        }
    </script>
    
    <table width="100%" align="left">        
        <tr>
            <td>
                <body onload="onSmartWinEvent()">
                    <div id="map" class="map" runat="server">
                    </div>
                    <asp:HiddenField ID="HiddenField1" runat="server" />
                </body>
            </td>
        </tr>
    </table>
    

    NOTE: Rate limiting: The Yahoo! AJAX Maps API is limited to 50,000 queries per IP per day. Check this link
    http://developer.yahoo.com/search/rate.html

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

Sidebar

Related Questions

I display some objects that have thumbnails in two ways: one in a DataGridView,
How would one display any add content from a dynamic aspx page? Currently I
'display the left product image if intImagePos = 2 then response.write(<td class=ProductImage> & vbcrlf)
I display data into an html table, w/ a drop down box with a
I would like to display details of an xml error log to a user
I'd like to display 100 floating cubes using DirectX or OpenGL . I'm looking
I would like to display some memory statistics (working set, GCs etc.) on a
I need to display an error message on rejecting a drop in my application.
I need to display many pages of news in a site. Should I do
I need to display a variable-length message and allow the text to be selectable.

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.