Problem reverse geo coding
|
|
#2 -
28/05/2009 15:26:25
|
Reporta abuso
|
Link permanente
|
|
RE: Problem reverse geo coding
|
|
|
|
Here is the code I use, works perfect offline, but not on my server Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.LoadDim myMap As New GMap'myMap.Visible = True
GMap1.Key = ConfigurationManager.AppSettings( BindGmap(GMap1, "GMapKey")"Parijs", 5)End Sub
AGmap.Language = Sub BindGmap(ByVal AGmap As GMap, ByVal Destination As String, ByVal Zoom As Integer)Dim myGeoCode As GeoCodeDim geoCoding As New GeoCoding"nl"
AGmap.enableGKeyboardHandler = True
AGmap.addControl( myGeoCode = AGmap.getGeoCodeRequest(Destination) AGmap.setCenter( AGmap.addInfoWindow(window) New GControl(GControl.preBuilt.SmallZoomControl))New GLatLng(myGeoCode.Placemark.coordinates.lat, myGeoCode.Placemark.coordinates.lng), Zoom)Dim marker As New GMarker(New GLatLng(myGeoCode.Placemark.coordinates.lat, myGeoCode.Placemark.coordinates.lng))Dim window As New GInfoWindow(marker, "", GListener.Event.infowindowclose)End Sub
|
|
|
|
|