Welcome, Guest
Username: Password: Remember me
Ask ASP.Net related questions here

TOPIC: Discuss Google Maps Control for ASP.Net

Re: Discuss Google Maps Control for ASP.Net 7 years 1 month ago #320

  • Omnia
  • Omnia's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
I tried GoogleMapForASPNet. It is a great tool. Recently I linked a kml file to the map, the way it was discussed before and it works just fine. What I need to ask is how to use the name of the city that is in <name>... </name> as an InfoHTML on the map?
The administrator has disabled public write access.

Re: Discuss Google Maps Control for ASP.Net 7 years 1 month ago #321

  • jacqueswho
  • jacqueswho's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 3
Hi

Im trying to apply a custom style. So these are the steps I have done.
I modified the cGoogleMap.cs to include a new property
string _style = "";
public string Style
{
get
{
return _style;
}
set
{
_style = value;
}
}

Then in the Gservice.cs added this line.
objGoogle.Style = objGoogleNew.Style;

And finally I added the check in the GoogleMapAPIWrapper.js file to set the style in the function fGetGoogleObject

if (result.Style != null)
{
customStyle = result.Style;
map.setOptions({ styles: customStyle });
}

But nothing happens. Could you guide me in the right direction. here is the link
https://developers.google.com/maps/documentation/javascript/styling#map_features

So I have the serialized json string that I create and pass in the code behind on PageLoad
GoogleMapHome.GoogleMapObject.Style = [serialized Json style array]

Kind Regards
Jacques
Last Edit: 7 years 1 month ago by jacqueswho.
The administrator has disabled public write access.

Google Maps Control for ASP.Net - Part 1 7 years 1 month ago #328

  • nct1972
  • nct1972's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Hi All!
Thank for great control! I have a question to need support
- I want display a label all the markets using source that Shabdar write, how do i that?

please help me
thanks.
The administrator has disabled public write access.

Re: Discuss Google Maps Control for ASP.Net 7 years 3 weeks ago #337

  • clamasija
  • clamasija's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
realError.png

Hi thanks a lot for the control, right now i'm trying to pass parameters to the map when load the page, unfortunately comes an error,

"The underlying connection was closed: An unexpected error occurred during a reception .."
You have any idea about this

Thanks in advance
The administrator has disabled public write access.

Discuss Google Maps Control for ASP.Net 6 years 10 months ago #417

  • nitin
  • nitin's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 2
Thanks Shabdar for this wonderful and helpful control.

I have integrated your control in one of the site that we have developed.

We were first using Google Map API version 2 using which we were able to show some text (label) inside Polygon using GooglePolygon.Status property.

But now as we have upgraded GOOGLE Map API from V2 to V3, we are not able to see/display text (label) inside polygon using same property.

So will you please help me how can we achieve this? how can I display some text in the center of the polygon?

This is the link of the site where we have used your control and where we would like to show zone number (text) inside polygon:

http://dispatch.satellitetaxi.ca/dashboard/dashboard.php

Is GooglePolygon.Status property still available? If not, which property can we use to display text inside (over) polygon?

And I want to achieve result something like following example:

http://www.geocodezip.com/geoxml3_test/v3_FusionTables_zipcode_map_whiteBg.html

Thanks in advance for all your support.

Regards,
Nitin.
Last Edit: 6 years 10 months ago by nitin.
The administrator has disabled public write access.

Discuss Google Maps Control for ASP.Net 6 years 10 months ago #418

  • shabdar
  • shabdar's Avatar
  • OFFLINE
  • Administrator
  • Posts: 79
  • Thank you received: 14
  • Karma: 7
Hi Nitin,
I am not able to find any property like GooglePolygon.Status in my control. Are you sure that's the right name?

I looked at following website that you mentioned,

http://www.geocodezip.com/geoxml3_test/v3_FusionTables_zipcode_map_whiteBg.html

Looks like they are creating dynamic images using numbers and then use that image as marker icon inside polygon. You can click that text and it displays info window with additional info.

If you want to achieve similar functionality, look at following link. It shows how you can create dynamic images using any text with PHP. Once you have dynamic images working, you can use them as marker images and add those markers inside polygon.

http://www.thesitewizard.com/php/create-image.shtml

Hope that helps.

BTW, happy to see my control used in a creative way on your website.
The administrator has disabled public write access.

Discuss Google Maps Control for ASP.Net 6 years 10 months ago #419

  • izaurek
  • izaurek's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 3
  • Karma: 2
Hi Shadbar

Thanks for the maps control.
One thing is very annoying - you can't open a map in new cart because there can be only one map in session.
It would be great if you put some unique page identifier which will be used by js during webservice communication.

I have made a couple of changes in your code - for API v3.
I don't remember everything because i have made it 1 year ago and now i only join my code with your code.

Changes i remember:
- event for bounds changed (pass also zoom level), i replaced your zoom_end event, it requires also some logic change - because of automaticboundaryandzoom, setCenter and so on
- event for map type change
- map state can survive full postback
- calculate zoom level during geocoding
- enable/disable events
- zoom using map scroll


live example here
http://test.sportoryko.pl/miejsca/?mapa=1

If you want to use my code in future versions let me know, I will translate variables and comments into english :)
I'm waiting for page identifier in session :)

Best regards
Pawel
Attachments:
The administrator has disabled public write access.
The following user(s) said Thank You: aascroft, shabdar

Discuss Google Maps Control for ASP.Net 6 years 10 months ago #420

  • nitin
  • nitin's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 2
Thanks Shabdar for your response.

If you look at this page, you will also found Status property of GooglePolyGon object which we used to show some text within Polygon.

http://danville.ca.gov/maps/GService.asmx?op=GetOptimizedGoogleObject

But somehow API version V3 does not support it. Please let me know if you still have some knowledge about it.
Last Edit: 6 years 10 months ago by nitin.
The administrator has disabled public write access.

Discuss Google Maps Control for ASP.Net 6 years 10 months ago #421

  • aascroft
  • aascroft's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Im trying to convert from Google Maps API V2 to V3, has anyone got a set of files which will work with API V3.
The administrator has disabled public write access.

Discuss Google Maps Control for ASP.Net 6 years 10 months ago #422

  • nitin
  • nitin's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
  • Karma: 2
Hi Aascroft,

please download API V3 files from here:

http://shabdar.org/downloads/GoogleMapControl%20v1.9.zip
The administrator has disabled public write access.
Time to create page: 0.217 seconds