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

TOPIC: Discuss Google Maps Control for ASP.Net

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

  • Imran-Khan
  • Imran-Khan's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Hello Shabdar,

I've been using your.Net control, which utilizes the Google API v2, for sometime, thank you! Unfortunately Google has deprecated their v2 Google Maps API, and added v3, breaking my implementation of your map control. So I downloaded your version 1.9 control hoping to resolve the error, but I still get a 403 message from Google when geocoding addresses. I don't think you have upgraded your control to handle Google's new geocoding functionality. Will you be planning to do this soon? I have been using Bing Map's API for another project, which works well, but would rather stay with your ASP.Net mapping control if possible if there's a timely upgrade to v3.

Thank you again!
Douglas
The administrator has disabled public write access.

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

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

Check my version based on Shabdar's control

http://www.shabdar.org/media/kunena/attachments/926/google_maps.zip

Now it's possible to calculate zoom for addresses :)
The administrator has disabled public write access.
The following user(s) said Thank You: shabdar

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

  • shabdar
  • shabdar's Avatar
  • OFFLINE
  • Administrator
  • Posts: 79
  • Thank you received: 14
  • Karma: 7
Hi Imran,
Geocoding is now fixed with version 1.9.1. Download latest version. Thanks for reporting.

Regards,
Shabdar
Imran-Khan wrote:
Hello Shabdar,

I've been using your.Net control, which utilizes the Google API v2, for sometime, thank you! Unfortunately Google has deprecated their v2 Google Maps API, and added v3, breaking my implementation of your map control. So I downloaded your version 1.9 control hoping to resolve the error, but I still get a 403 message from Google when geocoding addresses. I don't think you have upgraded your control to handle Google's new geocoding functionality. Will you be planning to do this soon? I have been using Bing Map's API for another project, which works well, but would rather stay with your ASP.Net mapping control if possible if there's a timely upgrade to v3.

Thank you again!
Douglas
The administrator has disabled public write access.

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

  • shabdar
  • shabdar's Avatar
  • OFFLINE
  • Administrator
  • Posts: 79
  • Thank you received: 14
  • Karma: 7
Hi Nitin,
Sorry for late reply. When I see webservice URL you have mentioned, I can see properties like PointStatus, LineStatus etc. Those ones I just use internally in control to restore state of Google Map. Is that what you are talking about?

Thanks
Shabdar
The administrator has disabled public write access.

Discuss Google Maps Control for ASP.Net 6 years 9 months ago #429

  • Shaikh
  • Shaikh's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 1
  • Karma: 1
Dear Sir,

IconImageHeight and IconImageWidth property of GooglePoint is not working In Google Map API V 3 code.
Can we set the height and width of Icon image while Creating GooglePoint ?



Thanks & Regards
Shehbaz Shaikh
The administrator has disabled public write access.
The following user(s) said Thank You: shabdar

Discuss Google Maps Control for ASP.Net 6 years 9 months ago #430

  • shabdar
  • shabdar's Avatar
  • OFFLINE
  • Administrator
  • Posts: 79
  • Thank you received: 14
  • Karma: 7
Hi Shaikh,
Thanks for reporting this issue. I will address this issue in upcoming release 1.9.2.

Regards,
Shabdar
Shaikh wrote:
Dear Sir,

IconImageHeight and IconImageWidth property of GooglePoint is not working In Google Map API V 3 code.
Can we set the height and width of Icon image while Creating GooglePoint ?



Thanks & Regards
Shehbaz Shaikh
The administrator has disabled public write access.
The following user(s) said Thank You: Shaikh

Discuss Google Maps Control for ASP.Net 6 years 9 months ago #433

  • Imran-Khan
  • Imran-Khan's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
Thank you Shabdar for your timely 1.9.1 update! Shabash! Geocoding now works with Google Maps 3.0

One more question: Is there a way to make a custom tooltip using your control? I had something working for Google Maps 2.0, but Google's 3.0 documentation shows I now need to use the Maps Overlay class. Any ideas on how I can make this work using your control?
The administrator has disabled public write access.

Discuss Google Maps Control for ASP.Net 6 years 9 months ago #434

  • shabdar
  • shabdar's Avatar
  • OFFLINE
  • Administrator
  • Posts: 79
  • Thank you received: 14
  • Karma: 7
Imran-Khan wrote:
Thank you Shabdar for your timely 1.9.1 update! Shabash! Geocoding now works with Google Maps 3.0

One more question: Is there a way to make a custom tooltip using your control? I had something working for Google Maps 2.0, but Google's 3.0 documentation shows I now need to use the Maps Overlay class. Any ideas on how I can make this work using your control?

Hi Imran,
Are you talking about custom info window? You can achieve it by providing custom HTML in InfoHTML property of GooglePoint. If not then show me some online example on what you are trying to do?
The administrator has disabled public write access.

Discuss Google Maps Control for ASP.Net 6 years 9 months ago #435

  • Imran-Khan
  • Imran-Khan's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
  • Karma: 0
The InfoHTML box appears with a mouse click; custom tooltips pop up instantly on mouseovers and make use of css. Regarding a custom tooltip, my Google v. 2 code included this inside your CreateMarker function:


GEvent.addListener(marker,"mouseover", function()
{
showTooltip(marker);
});
GEvent.addListener(marker,"mouseout", function()
{
tooltip.style.visibility="hidden";
});

function showTooltip(marker)
{
tooltip.innerHTML = marker.tooltip;
var point=map.getCurrentMapType().getProjection().fromLatLngToPixel(map.getBounds ().getSouthWest(),map.getZoom());
var offset=map.getCurrentMapType().getProjection().fromLatLngToPixel(marker.getPoint(),map.getZoom());
var anchor=marker.getIcon().iconAnchor;
var width=marker.getIcon().iconSize.width;
var pos = new GControlPosition(G_ANCHOR_BOTTOM_LEFT, new GSize(offset.x - point.x - anchor.x + width,- offset.y + point.y + anchor.y));
pos.apply(tooltip);
tooltip.style.visibility="visible";
}

Then in the map.aspx file I had this:
<style type="text/css">
.tooltip {
font-family: verdana;
font-size: 11px;
background-color: #ffffff;
padding: 2px 2px 2px 2px;
border: 1px #006699 solid;
max-width: 158px;
}
</style>

In version 3, there is no longer getCurrentMapType().getProjection()

Thanks!
The administrator has disabled public write access.

Discuss Google Maps Control for ASP.Net 6 years 8 months ago #438

Hi Shabdar...

i need to integrate the google map in our website to track vehicle using GPS in c# or javascript.
Following things i need to show it on our websites as client required...

1. Source and Destination.
2. Best suggestive route.
3. traffic overlays.
4. total distance.
5. current vehicle location changes and move vehicle according to time

Can you please provide me the code in which all things to be integrated by you.

please its very urgent to show to client asap.

i'm very thankful to you if you provide me the code along with all the things as i mentioned above.


Regards
Rohin
Last Edit: 6 years 8 months ago by rohin2sharma.
The administrator has disabled public write access.
Time to create page: 0.132 seconds