hi Rossko, i am sorry i somehow missed your last post dated jan 27.
in the mean time i was trying to fix it. here is the source code for page default.aspx url of which is http://torontopulse.com/yellowpages/default.aspx [code behind] using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Data.SqlClient; using GoogleGeocoder; using System.Text; public partial class _Default : System.Web.UI.Page { string strsubcategory; public void ddlsubcategory_SelectedIndexChanged(object s, System.EventArgs e) { strsubcategory = ddlsubcategory.SelectedItem.Text; } string strcategory; public void ddlcategories_SelectedIndexChanged(object s, System.EventArgs e) { strcategory = ddlcategories.SelectedItem.Text; } protected void Page_Load(object sender, EventArgs e) { totalMatchingTitle.Visible = IsPostBack; clickInstructions.Visible = IsPostBack; } protected void startSearchButton_Click(object sender, EventArgs e) { clickInstructions.Visible = true; Coordinate coordinate = Geocode.GetCoordinates(addressTextBox.Text); LocationsData data = GetLocationData(coordinate); // Set up the locations searchResults.DataSource = data.Location; searchResults.DataBind(); // Set result count totalResultCount.Text = data.Location.Rows.Count > 0 ? data.Location.Rows.Count.ToString() : "No Results Found."; // Get the locations, in JSON format. string jsonScript = GetJSONLocations(data); // Get the home location (where the user entered their address) in JSON format. string homeSpatialInfo = GetJsonHomeSpatialInfo(coordinate, addressTextBox.Text); // Write the JSON objects to the client. ClientScript.RegisterClientScriptBlock(GetType(), "homeSpatialInfo", homeSpatialInfo, true); ClientScript.RegisterClientScriptBlock(GetType(), "jsonMapObjects", jsonScript, true); } /// <summary> /// Gets the store locations and the coordinate for the "from" area (the address the user entered). /// </summary> /// <param name="coordinate">A coordinate.</param> /// <param name="data">A LocationsData dataset.</param> private LocationsData GetLocationData(Coordinate coordinate) { SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["StoresDb"].ConnectionString); connection.Open(); string SQL = "GetNearbyLocationsBD"; SqlCommand command = new SqlCommand(SQL, connection); command.Parameters.Add(new SqlParameter("@CenterLatitude", coordinate.Latitude)); command.Parameters.Add(new SqlParameter("@CenterLongitude", coordinate.Longitude)); command.Parameters.Add(new SqlParameter("@Searchcategory", ddlcategories.SelectedItem.Text)); command.Parameters.Add(new SqlParameter("@Searchsubcategory", ddlsubcategory.SelectedItem.Text)); command.Parameters.Add(new SqlParameter("@SearchDistance", distanceDropDown.SelectedValue)); //command.Parameters.Add(new SqlParameter("@EarthRadius", 3961)); // In Miles command.Parameters.Add(new SqlParameter("@EarthRadius", 6378.1)); // In kms command.CommandType = CommandType.StoredProcedure; SqlDataAdapter da = new SqlDataAdapter(command); LocationsData data = new LocationsData(); da.Fill(data.Location); return data; } /// <summary> /// Gets a json variable for the home address and latitude/ longitude coordinates. /// </summary> /// <param name="coordinate">The coordinate.</param> /// <param name="fromAddress">The address that of where the map is going to be locaed "from".</param> /// <returns>A string representation of a JSON variable.</returns> protected string GetJsonHomeSpatialInfo(Coordinate coordinate, string fromAddress) { string top = "var homeSpatialInfo = {"; string bottom = "};"; string jsonVariable = String.Format("\"latitude\" : \"{0}\", \"longitude\" : \"{1}\", \"fromAddress\" : \"{2}\"", coordinate.Latitude, coordinate.Longitude, HttpUtility.UrlEncode(fromAddress)); return String.Concat(top, jsonVariable, bottom, Environment.NewLine); } /// <summary> /// Retursn a JSON object in the format of a string. /// <remarks> /// It should return a string that resembles a JSON object array in this format: /// <example> /// var ProximityLocations = {"locations": [ /// {"name": "testName", "address": "123 test addre", "urladdress": "123+test+addre", "longitude": "192.009", "latitude" : "65.235"}, /// {"name": "tesdsfsdftName", "address": "65 test addre", "urladdress": "123+test+addre", "longitude": "3342.009", "latitude" : "633.235"}, /// {"name": "te33333333", "address": "123 test addre", "urladdress": "123+test+addre", "longitude": "123492.009", "latitude" : "15.235"} /// ]}; /// </example> /// /// If there are no locations, the JSON object will be empty. /// </remarks> /// </summary> /// <param name="data">The LocationData dataset that has the locations in it.</param> /// <returns>A string representation of a JSON object.</returns> protected string GetJSONLocations(LocationsData data) { string firstLine = "var ProximityLocations = {\"locations\": ["; string lastLine = "]};"; string JSONObjectFormat = "\"name\": \"{0}\", \"address\": \"{1}\", \"urladdress\": \"{2}\", \"longitude\": \"{3}\", \"latitude \" : \"{4}\""; StringBuilder builder = new StringBuilder(); builder.AppendLine(firstLine); string jsonLocation; string locationAddress; foreach (LocationsData.LocationRow row in data.Location) { locationAddress = String.Format("{0}, {1}, {2}, {3}", row.Business_Address, row.Business_City, row.Business_State, row.Business_Zip); jsonLocation = String.Concat("{", String.Format(JSONObjectFormat, HttpUtility.HtmlEncode(row.Business_Name), HttpUtility.HtmlEncode(locationAddress), HttpUtility.UrlEncode(locationAddress), row.Longitude, row.Latitude), "}", Environment.NewLine); builder.AppendLine(jsonLocation); // Only add comma if it is not the last row. The last row does not have a comma. See example in method comments. if (data.Location.Rows.IndexOf(row) != data.Location.Rows.Count - 1) { builder.Append(','); } } builder.AppendLine(lastLine); return builder.ToString(); } /// <summary> /// A variable to count the number of iterations in the repeater. Used for displaying organized data. /// </summary> protected int _itemCount = 0; protected void searchResults_ItemDataBound(object sender, RepeaterItemEventArgs e) { // Add the number to the screen for organization. if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item) { _itemCount++; Literal locationNumber = (Literal)e.Item.FindControl("locationNumber"); locationNumber.Text = _itemCount.ToString(); } } } [ code end] the stored procedure to find nearby locations from address specified is [stored procedure] USE [tpyellow] GO /****** Object: StoredProcedure [dbo].[GetNearbyLocationsBD] Script Date: 02/03/2012 17:54:32 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo].[GetNearbyLocationsBD] @CenterLatitude [float], @CenterLongitude [float], @SearchDistance [float], @Searchcategory [varchar](100), @Searchsubcategory [varchar](100), @EarthRadius [float] WITH EXECUTE AS CALLER AS DECLARE @CntXAxis FLOAT DECLARE @CntYAxis FLOAT DECLARE @CntZAxis FLOAT SET @CntXAxis = COS(RADIANS(@CenterLatitude)) * COS(RADIANS(@CenterLongitude)) SET @CntYAxis = COS(RADIANS(@CenterLatitude)) * SIN(RADIANS(@CenterLongitude)) SET @CntZAxis = SIN(RADIANS(@CenterLatitude)) SELECT TOP 100 *, ProxDistance = @EarthRadius * ACOS( dbo.XAxis(latitude, longitude)*@CntXAxis + dbo.YAxis(latitude, longitude)*@CntYAxis + dbo.ZAxis(latitude)*@CntZAxis) FROM BusinessDirectory WHERE (@EarthRadius * ACOS( dbo.XAxis(latitude, longitude)*@CntXAxis + dbo.YAxis(latitude, longitude)*@CntYAxis + dbo.ZAxis(latitude)*@CntZAxis) <= @SearchDistance ) AND category =@Searchcategory AND subcategory=@Searchsubcategory AND latitude IS NOT NULL ORDER BY ProxDistance ASC [ stored procedure end] [ scalar-value functions start] for x - axis USE [tpyellow] GO /****** Object: UserDefinedFunction [dbo].[XAxis] Script Date: 02/03/2012 17:57:54 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER FUNCTION [dbo].[XAxis](@lat [float], @lon [float]) RETURNS [float] WITH EXECUTE AS CALLER AS BEGIN RETURN COS(4 * (4 * atn2(1, 5) - atn2(1, 239)) / 180 * @lat) * COS(4 * (4 * atn2(1, 5) - atn2(1, 239)) / 180 * @lon) END [ end for x-axis] [ for y-axis] USE [tpyellow] GO /****** Object: UserDefinedFunction [dbo].[YAxis] Script Date: 02/03/2012 18:00:21 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER FUNCTION [dbo].[YAxis](@lat [float], @lon [float]) RETURNS [float] WITH EXECUTE AS CALLER AS BEGIN RETURN COS(4 * (4 * atn2(1,5) - atn2(1,239)) / 180 * @lat) * SIN(4 * (4 * atn2(1,5) - atn2(1,239)) / 180 * @lon) END [ y- axis end] [ z- axis] USE [tpyellow] GO /****** Object: UserDefinedFunction [dbo].[ZAxis] Script Date: 02/03/2012 18:01:53 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER FUNCTION [dbo].[ZAxis](@lat [float]) RETURNS [float] WITH EXECUTE AS CALLER AS BEGIN RETURN SIN(4 * (4 * atn2(1,5) - atn2(1,239)) / 180 * @lat) END [ end for z- axis] the file for displaying map is actually a user defined control in file showmap.aspx [ source code for user control ] <!-- Make sure to put your API key in this script where it says "YourApiKeyGoesHere" --> <script src="http://maps.google.com/maps? file=api&v=2&sensor=false&region=IN&key=AIzaSyCKo8Lk24Tx9Q9JeLo0bc2Eb0wvp_Ttwg8" type="text/javascript"></script> <script type="text/javascript"> //<![CDATA[ function load() { /* HACK: Have to check because IE will throw an error because a child container HTML element contains script code that tries to modify the parent container element of the child container. SOURCE: http://support.microsoft.com/default.aspx/kb/927917 This error is thrown if we attempt to remove the load() call from the body onload event and place it into a RegisterStartupScript. The google JS script attempts to modify part of the DOM and this error is then thrown, in turn, shutting down the APP in IE (version 7 at least). The homeSpatialInfo and ProximityLocations variables are not loaded until the "Go" button is clicked. Therefore, on the first intial load, they are of type "undefined", therefore the load does not occur. After a post back occurs from the "Go" button, these JSON variables are written to the client and the conditional will pass because they are defined and the method call will continue. Thiis is VERY HACKY, but it works. Please modify it if you see a better way to handle this and let me know! :) */ if (window.homeSpatialInfo !== undefined && window.ProximityLocations !== undefined) { if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map2")); map.addControl(new GSmallMapControl()); map.addControl(new GMapTypeControl()); map.setCenter(new GLatLng(homeSpatialInfo.latitude, homeSpatialInfo.longitude), 10); // Create a base icon for all of our markers that specifies the // shadow, icon dimensions, etc. var baseIcon = new GIcon(); baseIcon.shadow = "http://www.google.com/mapfiles/ shadow50.png"; baseIcon.iconSize = new GSize(20, 34); baseIcon.shadowSize = new GSize(37, 34); baseIcon.iconAnchor = new GPoint(9, 34); baseIcon.infoWindowAnchor = new GPoint(9, 2); baseIcon.infoShadowAnchor = new GPoint(18, 25); // Creates a marker whose info window displays the letter corresponding// to the given index. function createMarker(point, name, address, urladdress, locationNumber) { var icon = new GIcon(baseIcon); icon.image = "images/markers/marker" + locationNumber + ".png"; var marker = new GMarker(point, icon); GEvent.addListener(marker, "click", function () { marker.openInfoWindowHtml(name + '<br>' + address + '<br>' + '<a target="_blank" href="http://maps.google.com/ maps?f=q&hl=en&q=from:' + homeSpatialInfo.fromAddress + '+to:' + urladdress + '">Directions</a>'); }); return marker; } // Load all the markers from the JSON ProximityLocations variable var bounds = map.getBounds(); var southWest = bounds.getSouthWest(); var northEast = bounds.getNorthEast(); var lngSpan = northEast.lng() - southWest.lng(); var latSpan = northEast.lat() - southWest.lat(); for (var i = 0; i < ProximityLocations.locations.length; i++) { var point = new GLatLng(ProximityLocations.locations[i].latitude, ProximityLocations.locations[i].longitude); map.addOverlay(createMarker(point, ProximityLocations.locations[i].name, ProximityLocations.locations[i].address, ProximityLocations.locations[i].urladdress, i + 1)); } } } } //]]> </script> </head> <body onload="load()" onunload="GUnload()"> <div> <table> <tr> <%-- The Matching results count of "100" is a setting that's in the stored procedure GetNearbyLocations This is because we only have markers (for the map, in images/markers/) that go up to 100. Anything over that would result in a broken image. --%> <td><asp:Literal runat="server" ID="totalMatchingTitle" Visible="TRUE">Total Matching Results :</asp:Literal> <br /> Matching Results : <asp:Literal runat="server" ID="totalResultCount"></asp:Literal></td> </tr> <tr valign="top"> <td> <asp:Repeater runat="server" ID="searchResults" OnItemDataBound="searchResults_ItemDataBound"> <HeaderTemplate> <table cellpadding="10"> </HeaderTemplate> <AlternatingItemTemplate> <tr style="background-color:#E8E3B0"> <td> <b><asp:Literal runat="server" ID="locationNumber"></asp:Literal>. <%# Eval("Business_Name")%></ b><br /> <%# Eval("Business_Address") %><br /> <%# Eval("Business_City")%>, < %# Eval("Business_State")%> <%# Eval("Business_Zip")%><br /> <%# Eval("Business_Email") %><br /> <b>Business Phone: </b><%# Eval("Business_Phone")%><br /> <b>Business Fax: </b><%# Eval("Business_Fax")%><br /> <b>Business WebSite:</b><%# Eval("Business_WebSite")%><br /> <b>Business Activity:</b><%# Eval("Business_Activity")%><br /> </td> </tr> </AlternatingItemTemplate> <ItemTemplate> <tr> <td> <b><asp:Literal runat="server" ID="locationNumber"></asp:Literal>. <%# Eval("Business_Name")%></ b><br /> <%# Eval("Business_Address") %><br /> <%# Eval("Business_City")%>, < %# Eval("Business_State")%> <%# Eval("Business_Zip")%><br /> <%# Eval("Business_Email") %><br /> <b>Business Phone: </b><%# Eval("Business_Phone")%><br /> <b>Business Fax: </b><%# Eval("Business_Fax")%><br /> <b>Business WebSite:</b><%# Eval("Business_WebSite")%><br /> <b>Business Activity:</b><%# Eval("Business_Activity")%><br /> </td> </tr> </ItemTemplate> <FooterTemplate> </table> </FooterTemplate> </asp:Repeater> </td> <td> <asp:Literal runat="server" ID="clickInstructions" Visible="False">Click on the icon to get directions.</asp:Literal> <div id="map2" style="width: 500px; height: 300px"></div> </td> </tr> </table> <br /> <br /> <br /> <asp:Panel ID="Panel1" runat="server" Height="50px" Width="125px" Visible="false"> <asp:Label ID="Label1" runat="server" Text=""></asp:Label><br / > <br /> <asp:Label ID="Label2" runat="server" Text=""></asp:Label><br / > <asp:Label ID="Label3" runat="server" Text=""></ asp:Label><br /> <br /> <asp:Label ID="Label4" runat="server" Text=""></asp:Label> <br /> <asp:Label ID="Label5" runat="server" Text=""></asp:Label> <br /> <asp:Label ID="Label6" runat="server" Text=""></asp:Label> <br /> <asp:Label ID="Label7" runat="server" Text=""></asp:Label> </asp:Panel> [ code behind for control] using System; using System.Web; using System.Data; using System.Configuration; using System.Data.SqlClient; using GoogleGeocoder; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Data.SqlClient; using System.Text; using System.Web.Services; using System.Web.Services.Protocols; using System.Collections.Generic; public partial class newmapdetails : System.Web.UI.UserControl { protected void Page_Load(object sender, EventArgs e) { totalMatchingTitle.Visible = IsPostBack; clickInstructions.Visible = IsPostBack; int intlocationid = 0; intlocationid = Int32.Parse(Request.QueryString["id"]); //Response.Write(intlocationid) //SqlConnection conPubs = default(SqlConnection); SqlCommand cmdSelectAuthors = default(SqlCommand); SqlDataReader dtrAuthors = default(SqlDataReader); //conPubs = new SqlConnection("Data Source=tiger_xp;database=spaveuani_tp_businessdirectory;user id=sa;password=navdeep"); SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["StoresDb"].ConnectionString); //conPubs.Open(); connection.Open(); //cmdSelectAuthors = new SqlCommand("Select * from businessdirectory where BD_ID = ' " + intlocationid + " '", conPubs); cmdSelectAuthors = new SqlCommand("Select * from businessdirectory where BD_ID = ' " + intlocationid + " '", connection); dtrAuthors = cmdSelectAuthors.ExecuteReader(); while (dtrAuthors.Read()) { //Response.Write("<li>") //Response.Write(dtrAuthors("latitude")) Label1.Text = Convert.ToString(dtrAuthors["latitude"]); Label2.Text = Convert.ToString(dtrAuthors["longitude"]); Label3.Text = Convert.ToString(dtrAuthors["Business_Address"]); Label4.Text = Convert.ToString(dtrAuthors["Business_Zip"]); Label5.Text = Convert.ToString(dtrAuthors["Category"]); Label6.Text = Convert.ToString(dtrAuthors["SubCategory"]); Label7.Text = Convert.ToString(dtrAuthors["Business_Zip"]); } dtrAuthors.Close(); //conPubs.Close(); connection.Close(); clickInstructions.Visible = true; Coordinate coordinate = Geocode.GetCoordinates(Label4.Text); LocationsData data = GetLocationData(coordinate); // Set up the locations searchResults.DataSource = data.Location; searchResults.DataBind(); // Set result count totalResultCount.Text = (data.Location.Rows.Count > 0 ? data.Location.Rows.Count.ToString() : "No Results Found."); // Get the locations, in JSON format. string jsonScript = GetJSONLocations(data); // Get the home location (where the user entered their address) in JSON format. string homeSpatialInfo = GetJsonHomeSpatialInfo(coordinate, Label4.Text); // Write the JSON objects to the client. Page.ClientScript.RegisterClientScriptBlock(GetType(), "homeSpatialInfo", homeSpatialInfo, true); Page.ClientScript.RegisterClientScriptBlock(GetType(), "jsonMapObjects", jsonScript, true); } /// <summary> /// Gets the store locations and the coordinate for the "from" area (the address the user entered). /// </summary> /// <param name="coordinate">A coordinate.</param> /// <param name="data">A LocationsData dataset.</param> private LocationsData GetLocationData(Coordinate coordinate) { int distancesearch = 1; //float distancesearch = 0; //SqlConnection connection = new SqlConnection("Data Source=tiger_xp;database=spaveuani_tp_businessdirectory;user id=sa;password=navdeep"); SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["StoresDb"].ConnectionString); connection.Open(); string SQL = "GetNearbyLocationsBD"; SqlCommand command = new SqlCommand(SQL, connection); command.Parameters.Add(new SqlParameter("@CenterLatitude", Label1.Text)); command.Parameters.Add(new SqlParameter("@CenterLongitude", Label2.Text)); command.Parameters.Add(new SqlParameter("@SearchDistance", distancesearch)); command.Parameters.Add(new SqlParameter("@Searchcategory", Label5.Text)); command.Parameters.Add(new SqlParameter("@Searchsubcategory", Label6.Text)); command.Parameters.Add(new SqlParameter("@EarthRadius", 3961)); // In Miles command.CommandType = CommandType.StoredProcedure; SqlDataAdapter da = new SqlDataAdapter(command); LocationsData data = new LocationsData(); da.Fill(data.Location); return data; } /// <summary> /// Gets a json variable for the home address and latitude/ longitude coordinates. /// </summary> /// <param name="coordinate">The coordinate.</param> /// <param name="fromAddress">The address that of where the map is going to be locaed "from".</param> /// <returns>A string representation of a JSON variable.</returns> protected string GetJsonHomeSpatialInfo(Coordinate coordinate, string fromAddress) { string top = "var homeSpatialInfo = {"; string bottom = "};"; string jsonVariable = String.Format("\"latitude\" : \"{0}\", \"longitude\" : \"{1}\", \"fromAddress\" : \"{2}\"", coordinate.Latitude, coordinate.Longitude, HttpUtility.UrlEncode(fromAddress)); return String.Concat(top, jsonVariable, bottom, Environment.NewLine); } /// <summary> /// Retursn a JSON object in the format of a string. /// <remarks> /// It should return a string that resembles a JSON object array in this format: /// <example> /// var ProximityLocations = {"locations": [ /// {"name": "testName", "address": "123 test addre", "urladdress": "123+test+addre", "longitude": "192.009", "latitude" : "65.235"}, /// {"name": "tesdsfsdftName", "address": "65 test addre", "urladdress": "123+test+addre", "longitude": "3342.009", "latitude" : "633.235"}, /// {"name": "te33333333", "address": "123 test addre", "urladdress": "123+test+addre", "longitude": "123492.009", "latitude" : "15.235"} /// ]}; /// </example> /// /// If there are no locations, the JSON object will be empty. /// </remarks> /// </summary> /// <param name="data">The LocationData dataset that has the locations in it.</param> /// <returns>A string representation of a JSON object.</returns> protected string GetJSONLocations(LocationsData data) { string firstLine = "var ProximityLocations = {\"locations\": ["; string lastLine = "]};"; string JSONObjectFormat = "\"name\": \"{0}\", \"address\": \"{1}\", \"urladdress\": \"{2}\", \"longitude\": \"{3}\", \"latitude \" : \"{4}\""; StringBuilder builder = new StringBuilder(); builder.AppendLine(firstLine); string jsonLocation = null; string locationAddress = null; foreach (LocationsData.LocationRow row in data.Location) { locationAddress = String.Format("{0}, {1}, {2}, {3}", row.Business_Address, row.Business_City, row.Business_State, row.Business_Zip); jsonLocation = String.Concat("{", String.Format(JSONObjectFormat, HttpUtility.HtmlEncode(row.Business_Name), HttpUtility.HtmlEncode(locationAddress), HttpUtility.UrlEncode(locationAddress), row.Longitude, row.Latitude), "}", Environment.NewLine); builder.AppendLine(jsonLocation); // Only add comma if it is not the last row. The last row does not have a comma. See example in method comments. if (data.Location.Rows.IndexOf(row) != data.Location.Rows.Count - 1) { builder.Append(','); } } builder.AppendLine(lastLine); return builder.ToString(); } /// <summary> /// A variable to count the number of iterations in the repeater. Used for displaying organized data. /// </summary> protected int _itemCount = 0; protected void searchResults_ItemDataBound(object sender, RepeaterItemEventArgs e) { // Add the number to the screen for organization. if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item) { _itemCount += 1; Literal locationNumber = (Literal)e.Item.FindControl("locationNumber"); locationNumber.Text = _itemCount.ToString(); } } } [ end of control code file] i hope now you can get a handle of what is happening. when user add his address it is rightly geo- coded and can be verified in database. for proximity search also it is taking search distance correctly just try within 10 km of default address it shows null data and when you increase the distance to 15 km it shows all data correctly because that is the distance between 77 ghalib apartments pitam pura delhi and 1144 timar pur delhi. see at below url http://torontopulse.com/yellowpages/default.aspx ps: the same code works perfect for us and canadian cities plus map centring. please feel free to know anything additional. i once again thank you for taking time to view my issue. regards, navdeep lohchubh On Jan 27, 2:17 pm, Rossko <[email protected]> wrote: > > hit enter or go button and see the thing. > > I get a map with no key alert in IE > > The map is centered on Shenyang in China, because that is where your > code told it to centre. > It derives the centre from your code > var homeSpatialInfo = {"latitude" : "41.8630469", "longitude" : > "123.4132542", "fromAddress" : "110034"}; > and we cannot tell how you populate that. > > I'll take a guess that you are server-side geocoding "110034". Try > that on maps.google.com and you get Shenyang. Looks like the geocoder > doesn't recognise that number even as "110034, India" > > "77 ghalib apartments pitam pura delhi" geocodes fine -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
