View Complete Post
I am trying to put together an image gallery display. I am guessing it will need to be a customer control but I am not sure. So I figured I would ask on the best way to approach this. When the gallery is loaded I want to have one image displayed with thumbs underneath. On the right side I would like to display EXIF data and underneath that a small google map if there is geolocation tagged with the picture. I figure I will probably need to store the gallery info in a database with caption and description. Maybe even searchable tags if I get cheeky later.
So should I be using an ajax gallery to display the images and if so how to pass the EXIF and geolocation to the other controls? Or do i pull in all the info into some sort of dataset and then parse it out to a custom control. I am still fairly new to ASP but I have a fairly good understanding. Should be an intersting project if nothing else. Any thoughts.
Thanks
<script type="text/javascript"> function showLocation() { geocoder.getLocations(document.forms[0].address1.value, function (response) { if (!response || response.Status.code != 200) { alert("Sorry, we were unable to geocode the first address"); } else { location1 = { lat: response.Placemark[0].Point.coordinates[1], lon: response.Placemark[0].Point.coordinates[0], address: response.Placemark[0].address }; geocoder.getLocations(document.forms[0].address2.value, function (response) { if (!response || response.Status.code != 200) { alert("Sorry, we were unable to geocode the second address"); } else { location2 = { lat: response.Placemark[0].Point.coordinates[1], lon: response.Placemark[0].Point.coordinates[0], address: response.Placemark[0].address }; calculateDistance(); } }); } }); } function calculateDistance() { try { var glatlng1 = new GLatLng(location1.lat, location1.lon); var glatlng2 = new GLatLng(location2.lat, location2.lon); var miledistance = gl
I'd like to parse http://maps.google.com/maps/geo?output=xml&key=<your_google_api_key>&q=<city_state>I can't find any example on the net which usesdoc.Load(url); XmlNodeList nodes = doc.SelectNodes("/GeocodeResponse/result/geometry/location/lat/");
I'd like to parse
http://maps.google.com/maps/geo?output=xml&key=<your_google_api_key>&q=<city_state>I can't find any example on the net which uses
doc.Load(url); XmlNodeList nodes = doc.SelectNodes("/GeocodeResponse/result/geometry/location/lat/");
This works fine for me!
sb.Append("if(GBrowserIsCompatible()) {" & vbLf & vbTab & vbTab & "function ShowMap() {" & vbLf & vbTab & vbTab & vbTab & "var map = new GMap(document.getElementById(""map"")); map.setMapType(G_PHYSICAL_MAP ); " & vbLf & vbLf & vbTab & vbTab & vbTab)
sb.Append(
But I'm DYING on adding this line...
I am attempting to create an ASP.NET website that incorporates Google Maps to geocode the location of bus stops that the user selects from a gridview that is bound to a SQL database. Any ideas on how to use a buttonfield to pass the address (text) for a given row to a command that will geocode that address and place a marker on the map?
Google Maps API has upgraded their geocoding service. The old style had each data element in a unique node, so I was reading each node using SelectSingleNode. Now, the node names are all the same, so my VB.net program is not working accurately, except on the lat/long parameters because those are still unique.
Here is the link to an address and how the API responds: http://maps.googleapis.com/maps/api/geocode/xml?address=1210%20cassat%20av,%20jacksonville,%20fl,%20USA&sensor=true
and here is my code:
Dim uriRequest As New Uri(GoogleMapsAPI_URL & _address & _output) Dim geoRequest As HttpWebRequest = WebRequest.Create(uriRequest) Dim geoResponse As HttpWebResponse = geoRequest.GetResponse() Dim sr As New StreamReader(geoResponse.GetResponseStream(), Encoding.UTF8) 'instantiate new xml document to hold the google geo resulting xml Dim geoXml As New XmlDocument() geoXml.LoadXml(sr.ReadToEnd().ToString()) 'Dim TitleNode As XmlNodeList = geoXml.GetElementsByTagName("address_component") 'Get County (administrative_area_level_2) _GeoCounty = geoXml.Item("/GeocodeResponse/result/address_component/[type=administrative_area_level_2]") _GeoCountyData = _GeoCounty.InnerXml.ToString()
Hi,
As main project this schoolyear I'm making a mobile website, I already imported a Google Map with all the locations in my database.
The problem is when a person visits the LocationDetail.aspx page, he can go to the map but the marker of that location isn't different from the other markers. I want it to be in another color so the visitor can see where the location is.
Somebody an idea?
dear all...
any idea how to do that ?
Thnx in advance
Hello,
I've set in the web.config:
<!-- User Authentication --> <authentication mode="Forms"> <forms loginUrl="~/Page/View/Content/Login.aspx" timeout="2880" requireSSL="true" /> </authentication>
This works fine. If there is no ssl connection, the login form doesn't continue. But I would like to check if ssl is active (in codebehind) and, if it's possible, to automatically the user to the https page if he's currently on http. (I could do this job by manually redirect with page.response("https://url.../login.aspx"); but this is not really generic. For example if the webapp is moved to another domain it doesn't work anymore... I'm looking for something like: FormsAuthentication.RedirectWithSSL(); or so... :D)
Regards,Chris
Silverlight provides support for dynamic languages such as IronRuby and IronPython. We'll walk you through the creation of a custom Silverlight control using Bing Maps and IronRuby.
Ashish Ghoda
MSDN Magazine February 2010
Hall of Fame Twitter Terms of Service Privacy Policy Contact Us Archives Tell A Friend