Gmap3 - Forum

Gmap3 exchange platform

You are not logged in.

Ads
(server costs 27.50€ per month)

#1 2012-02-20 13:40:43

anees
Member
Registered: 2012-02-20
Posts: 4

Gmap3 with ASP.Net

Hii All,

I have a SQL Server Database that stores Latitude and Longitude of Real Estate Properties. I want to display these properties on google map. I am using C#. The problem is how should I send my property information to the map? Should I create Web Service/Json for this? But how i dont know?

Will be thankful for the support.

Regards,

Offline

Ads
(server costs 27.50€ per month)

#2 2012-02-20 13:55:08

charlietfl
Moderator
Registered: 2011-11-24
Posts: 201

Re: Gmap3 with ASP.Net

here is an example using ajax to pass json to gmap3

http://jsfiddle.net/charlietfl/S8kd3/

Offline

#3 2012-02-20 14:23:41

anees
Member
Registered: 2012-02-20
Posts: 4

Re: Gmap3 with ASP.Net

Thanks charlietfl,

The only problem i am facing now is how to fill JavaScript array markersJSON= [] from Web Service, that Gmap3 will use to map markers.

Offline

#4 2012-02-20 20:11:50

AlexP
Member
From: Stewarton
Registered: 2012-01-18
Posts: 21
Website

Re: Gmap3 with ASP.Net

This is a similar problem to the one I have just posted in the main forum,

Your answer, http://jsfiddle.net/charlietfl/S8kd3/ is a good solution if you only want to load all your markers at  once.

Offline

#5 2012-02-29 07:30:35

anees
Member
Registered: 2012-02-20
Posts: 4

Re: Gmap3 with ASP.Net

hi,

$.post('/echo/json/', { json: markersJSON }, function(data) {});

In this example, what does mean by '/echo/json/'. I am trying to run this example but no success.

Thanks.

Offline

#6 2012-02-29 09:12:27

AlexP
Member
From: Stewarton
Registered: 2012-01-18
Posts: 21
Website

Re: Gmap3 with ASP.Net

It is a function of the jsfiddle server.

all you are doing, is sending the markersJSON to the server, just to get them back, as 'data'. It is for testing purposes only.

if you want it to work from a live server, you need to program the server end, to return the appropriate data.

Alex

Last edited by AlexP (2012-02-29 09:46:31)

Offline

Board footer

Powered by FluxBB