C# - Add Shapes To Bing Maps From Locations Stored In A Database (bing Maps Ajax Control)?

Mar 16, 2010

I am trying to use the Bing Maps Ajax Control to plot pins of locations stored in a database to the bing map on a web page. All the locations are geocoded and the lat longs stored in the database. I am using ASP.NET (C#), but can't figure out or find any tutorials on how to go about doing this. All I can find are articles on how to import shapes into a map from either GeoRSS, Bing Maps, and KML.

I have used (and paid for ;o) the excellent control from Simplovations to do alot of what I need to do, namely working with my data as normal in the code behind, getting a DataSet of my locations and plotting the points to the map. It has been great, but I want to know how to do it with out using a third party control. My main reason for wanting this is to be able to cluster my pins and hopefully learn a bit of Javascript along the way. Does anyone know how to do this or can point me to any tutorials or articles online that can help me on my way. I have been searching the net for days now and can't find anything :(

View 2 Replies


Similar Messages:

Maps Based On Longitude & Latitude - Google Maps Or Bing Maps?

Jan 7, 2011

I need your advice to use Google Maps or Bing Maps with my form ASP.NET, and I wanaa the location based on Longitude & Latitude NOT by address.

View 3 Replies

Javascript - Developing Application, Use Google Maps Or Bing Maps?

Feb 17, 2011

I need to use a map in an application that I develop. In my application I want to use pins that will show infoboxes on the map. Use the zoom in, zoom out functionality and the ability to show several maps on the same page. I won't need to use the search locations or routing directions.Which type of maps should I use? Google or Bing? As I understand, they both have good user interface, but which one is easier to develop with? If I'll use Bing then will it be more Microsoft like, I mean, it will let me use visual studio convenient programming? More or less javascript so it will be a hassle do debug it?

View 2 Replies

Integrate Bing Maps Into Web Application?

Mar 2, 2010

I am starting to working with one interesting project.i have idea to make web application , how to integrate bing maps into my web application?

i mean I want a map of my city and then i want to mark some things on that map like... check points, mark a school or mark a restaurant....

Well while I am creating solution for this, Maybe I shouldn't do it with asp.net mvc but I make my decision that it is the handy way to make it.

View 7 Replies

C# - Bing Maps In An MVC2 Web Application?

Mar 22, 2011

I'm trying to find the best way to implement Bing maps into my ASP.NET MVC2 web application.

I came accross MvcMaps Preview1 on Codeplex but it doesn't work good, at least for me. Maybe that's because it's for .NET 3.5 and VS2008, I don't know.

I'd like to avoid Silverlight. what should I use and what's the easiest way to get a Bing Map show some data on it?

View 2 Replies

Social Networking :: Search Locations In Database And Display Markers In Google Maps

Oct 21, 2015

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
var markers = [
<asp:Repeater ID="rptMarkers" runat="server">

[CODE]..

My DB Schema - 

My DB Sample Data -

How do i display a particular marker on the map based on my search based on the koid or city field?

View 1 Replies

Social Networking :: How To Center Map As Per Marker Locations In Google Maps V3

May 2, 2013

I have wriiten the following code to avoid zoomout of the markers and to place the makers center to the map.

var bounds=new google.maps.LatLngBounds();map.fitBounds(bounds);map.setCenter(bounds.getCenter());

The above code is working correctly.But when i wrote setInterval function to drop the markers after a specific interval of time , the above piece of code is not working and the map is not getting displayed.This the code i have written

window.onload = function () {
var mapOptions = {
center: new google.maps.LatLng(markers[0].lat, markers[0].lng),
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var infoWindow = new google.maps.InfoWindow();

[Code] ....

View 1 Replies

Data Controls :: Display Locations In GridView And Google Maps

Apr 10, 2014

There is 1 ASP.NET checkBox, 1 Button, 1 Gridview in my web page with GeoMap.Requirement is:When I check the "CheckBox", and click on "Button", ALL the locations(Latitude, Longitude also saved in DB) saved in DB should show inside "GeoMap" as well as in "GridView".I had done it using "DropDown" (showing particular location NOT ALL) but finding difficulty using "CheckBox" (to show ALL location at once)...

View 1 Replies

Social Networking :: Google Maps V3 / How To Draw Route Between Two Locations (points)

Nov 14, 2013

I have 4 to 5 rows of latitude and longitude  now I want it to display in map showing the path (line on map)

example: I have this 

1> 12.32333232,20.334343542

2>13.32333232,21.334343542

3>14.32333232,24.334343542

4>15.32333232,28.334343542
 
now I want it to show on google map and drow lines based on the latitude and longi

View 1 Replies

Social Networking :: Get NearBy Locations Of Address Within 5 Kms Using Google Maps GeoCoding API

Oct 29, 2013

I am doing a web application in Asp.Net, to retrieve Near By Places.

For getting this, I am using the below link : [URL]....

From the above link i am getting the places with in 5 kms having the output in the form of displaying locations in Google Maps.

But i want to give the above link as input and i need to get my output as in the form of XML format by using C# Coding or Javascript in ASP.Net.

Ex:

<Address> <Area>
        Keshavanagar Colony, Srinagar Colony Rd, Yousufguda, AP, India ‎
       </Area> </Address> <Address> <Area>       
       MCH Park Area, Padala Ramareddy Colony, Yousufguda, Hyderabad, AP, India 

View 1 Replies

Store Locator With Own SQL Database,WCF And Bing Map?

Mar 1, 2011

i want develop a store locator. i want get the data (get all stores from a given zip code and radius) from my own wcf service. he gets his data from my own sqlserver 2008.how exactly did i wrote the sql queries to get the stores in my radius?after that how i did it use (the geo codes) with bing mapsare there samples with current technics to realize a store locator?

View 3 Replies

Social Networking :: Google Maps API V3 - Calculate Distance And Plot Route Between Two Locations

May 7, 2015

I want to  create a google maps that it can Calculate Distance, Travel Duration, draw (plot) Route  between two locations and display Directions. Now I want to hide Directions Panel.

View 1 Replies

Social Networking :: Google Maps V3 - Calculate Distance And Travel Duration Between Multiple Address Locations

May 7, 2015

Its relate to series of question again. I have datalist bind sql server whcih is fetching 3 address like

Address 1

Address 2

Address 3 

After data list I have textbox which is based address like "Based Address"

I have the below script which calculate distance between 2 textboxex.

I want to to calculate the distance between base textbox and address in datalist item so result will like this

Base Address Pune

Datalist address

Address 1 Bombay result distance between pune and bombay 200 Km

Address 1 Kolkota result distance between pune and kolkata 500 Km

//*********DISTANCE AND DURATION**********************//
var service = new google.maps.DistanceMatrixService();
service.getDistanceMatrix({

[Code].....

View 1 Replies

Bing AJAX Map - Show Info Box Firing Before Map Zoom And Pan Has Ended

Aug 3, 2010

In my Bing Ajax Map app the user is presented with a list of locations they can choose from. OnRowClick the map center and zooms on that places location. After it has focused on that location, it shows the info window for it as well.

The problem is that the info window seems to be loading before the map has finished panning. This causes the info window to appear in the wrong spot, or not at all. For now I've put the show info method in a setTimeout tag to give it another second before loading the information, but its a fairly ugly hack and still doesn't work 100% of the time.

View 1 Replies

Display Bing Map By Specifying An Address In Website?

Oct 12, 2010

How to display Bing map dynamically in an ASP.NET website based on the address provided. I do not have latitude and longitude for the address so I have to pass address directly and display the map.

View 1 Replies

C# - How To Use Bing As The Search Engine On Site

Jul 15, 2010

Does Bing has an option similar to Google Custom Search or Yahoo where I can use Bing to power the search results on my site?

Couple requirements:

Works with an ASP.NET site (is a .NET project) Host the search box and results on my own website Ability to customize the look and feel of the results to match my site (Full control is ideal but I understand it's not possible with free solutions)

I did a search for Bing custom search and found this: [URL] but it's not exactly what I am looking for.

View 2 Replies

Mark Countries In Map (Google Or Bing)?

Oct 20, 2010

is it possible to use Bing Maps or Google Maps (or any other) and mark countries on a world map? I have some countries in SQL DB depending on the logged in user, e.g. France, Mexico, Australia, Japan. These countries should be mark on a world map. Is this possible?

View 2 Replies

Bing Powered Search Results Hosted On Site?

May 29, 2010

Is there anyway you can get search results powered by bing, without using bing box as it just launches results in a javascript applet, I mean fully hosted on site like on here or microsoft's site? I understand a full sitemap will be needed although that easy enough using webmaster tools. I think that all the detail I need to provide, as I dont want too use Google custom search as I have to display ads and crap via adsense.

View 2 Replies

C# - Convert IP Address To GeoLocation Using Razor Systax Or Bing Map?

Jan 29, 2011

I build the ASP.Net (.cshtml) site, and I need to get current location of user to show in Bing Map. How can I do this feature?

View 2 Replies

C# - Using The Bing Map API / Can Make A Server-side Call And Get Lat / Long For A Given City

May 14, 2010

using the bing map API, can I make a server-side call and get lat/long for a given city? I can do it on the client side using JavaScript, but I need something more robust in this case and want to use the server side.

View 1 Replies

C# - Put A .net Control In A Google Maps InfoWindow?

Dec 20, 2010

I used it as my POC and created a .net project from the concept. I now have markers and infoWindows being populated from the database which is pretty cool.

My problem is I want to add InfoWindows in a slick way (not only to the map, but also save to the db). Instead of having .net controls outside of the map window I want to be able to add info to the map directly. If the user clicks in the map I would like to be able to add a marker and InfoWindow with asp controls in the window (textbox and button).

<html>
<head>
<title>
title here
</title>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>

[Code]....

View 1 Replies

Web Forms :: Using Database Values To Create Static Google Maps?

Feb 25, 2011

I was looking for a solution on how to create a static google map by passing longitude and latitude value through database. What I want to do is to create a static image as PDF conversion requires static image. Thats why I want a static image so that I can convert aspx page into pdf and then email that map to the customer.

View 2 Replies

DataSource Controls :: Pull Google Maps Date From SQL Database?

May 27, 2010

On a test page, I successfully created a google map that pulls both marker and infoWindow information from an XML file. I did this just to get a feel for working with the API. It works fine. However, I do have a SQL database that has this information in it already. This database is updated behind the scenes regulary via a webservice.

I would like to try pulling the map information from my SQL database instead so I don't have to hand maintain the .xml file. The dabase alread has the lat/long information needed for markers. What is the easiest way for me to get that data from the SQL database? Is there a way to run a query and use the data, or will I need to run the query and somehow have it write/update my .xml file for me?

View 4 Replies

SQL Server :: Missing Code To Get Data From Database For Google Maps?

Jul 20, 2010

figure out the missing codes to get data from database and plot the latest 10 entries to database on the map.

this is the coding i came up with so far

[Code]....

View 1 Replies

Social Networking :: Fill Values From Database In Google Maps

May 7, 2015

I need now load data (title, lat,lng,description) fill from database. Is it possible?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved