I was so amazed at how easy it was to embed google maps into a vb app I decided to post a quick example to help anyone get started. This is a simple example. Google's api has all kinds of things to help customize your map. You can find out anything you need to know from here: [url]http://code.google.com/apis/maps/documentation/javascript/reference.html[/url] You will need to: Create a new windows forms app. Add a class named GoogleControl and paste the GoogleControl code into it. Add a new html doc to the project and name it GoogleMap.htm and set its Build action to CopyIfNewer Copy …

Member Avatar
Member Avatar
+4 forum 46

When click the map icon for loading the map, map show the error, Please solve the error

Member Avatar
Member Avatar
+0 forum 2

I want to mark some data on google map. I use eclipse Java EE and xml file is in the same workspace;(workspace_jsp). xml file: <csv_data> <row> <time>10:01:43</time> <latitude>37.4805016667</latitude> <longitude>126.952741667</longitude> <pdistance>0.000555</pdistance> <totaldistance>0.000555</totaldistance> <sectionspray>3343.0</sectionspray> </row> <row> <time>10:01:57</time> <latitude>37.4807483333</latitude> <longitude>126.952753333</longitude> <pdistance>0.027396</pdistance> <totaldistance>0.027951</totaldistance> <sectionspray>3320.0</sectionspray> </row> my code is <!DOCTYPE html > <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <title>PHP/MySQL & Google Maps Example</title> <script src="https://maps.googleapis.com/maps/api/js?key=~~~~" type="text/javascript"></script> <script type="text/javascript"> //<![CDATA[ var customIcons = { restaurant: { icon: 'http://labs.google.com/ridefinder/images/mm_20_blue.png' }, bar: { icon: 'http://labs.google.com/ridefinder/images/mm_20_red.png' } }; function load() { var map = new google.maps.Map(document.getElementById("map"), { center: new google.maps.LatLng(37.466285,126.948366), zoom: 10, mapTypeId: 'roadmap' }); …

Member Avatar
+0 forum 0

Out of my depth a little :-) How do I create a pair of longitude and latitudes to create a polygon showing a 2 mile radius of a particular longitude and latitude? in Java Android. I know how to find your current longitude and latitude but I just can't figure out the above. My code so far is below: LocationManager lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE); Location location = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER); double longitude = location.getLongitude(); double latitude = location.getLatitude();

Member Avatar
Member Avatar
+0 forum 14

How do I replace my android app Google maps radius circle with a blue translucent one as in image also blue marker with blue circle? I can make the circle have a particular outline and fill but it doesn't look anywhere near as nice as the one depicted in the image below. How do I do that? my code so far is below also. Code: private GoogleMap googleMap; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); try { initilizeMap(); } catch (Exception e) { e.printStackTrace(); } } private void initilizeMap() { if (googleMap == null) { googleMap = ((MapFragment) getFragmentManager().findFragmentById( …

Member Avatar
Member Avatar
+0 forum 6

At this point I know how to utilize Google Maps within Android but it always seems to take up the full window, there is an image below which shows what I'm attempting to accomplish (having a box below the Google maps where I can store text i.e. "Hello World" **How do I add box below Google Maps, so to store text i.e. "Hello World"** Code so far: ActivityMain: public class MainActivity extends Activity { private GoogleMap googleMap; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); try { initilizeMap(); } catch (Exception e) { e.printStackTrace(); } } private void initilizeMap() { …

Member Avatar
Member Avatar
+0 forum 1

How to implement this kind of Google Map API like on this website http://dentist-map.jp/map as you can see, there is also a search bar then the markers. Since I am new to Google Map API, any outputs/feedbacks would be greatly appreciated. Do you think the locaations are stored in the database(the ones that automatically show).

Member Avatar
Member Avatar
+0 forum 1

Hi All. I am using Microsoft Visual Web Developer 2010. I have embedded google maps into my webpage. I am using 4 textboxes: Street, City, Province and Postal Code. The user will enter these details then it will get put into a string variable like this `string location = street + "," + "city" + "," + province + "," + postCode;` Now the google API code below uses this line for input: `var input = document.getElementById('TextBox1');` I tried using `var input = location;` but it picked up syntax error. What can I do to fix this? Thanks. Here is …

Member Avatar
Member Avatar
+0 forum 2

I am working on a web application that builds a KML file using a list of coordinates and is supposed to display them on Google maps when you click a button. When I'm testing it on desktop it works, as it brings up google earth with no problem. However, when I try to test it on an android device, I get "This community map can not be displayed due to errors". Funny thing is, is that I navigated to google's KML samples page, and I was able to open them up without incident. I added this to my web.config file: …

Member Avatar
+0 forum 0

Hi all, I'm decoding a JSON object into an array and then inserting it into a database, which informs markers on a google map. That step is working fine, but I'm now trying to insert code to (a) read whether the latitude value in the array is null, (b) send the address info to be geocoded via the Google Geocoding API if so, and then (c) insert the resulting latitude and longitude values back into the array, to be inserted into the database. I'm new to PHP and am quite the rookie. I'm getting the same result from the below …

Member Avatar
Member Avatar
+0 forum 3

Hi, I am developing a website, I Have to get the google map on the basis of a particular location which i would get from an object of the database. This ill use it from the template language. For example: [B]person.address[/B] is what ill refer and i should get the map of that particular person's address. Can anyone please guide me, how can i achieve it?

Member Avatar
Member Avatar
+0 forum 1

[code] <%! public String haversine(String lat1,String lon1,String lat2,String lon2) { int r = 6371; String val=null; double dlat=((Double.parseDouble(lat2))-(Double.parseDouble(lat1))); double dlon=((Double.parseDouble(lon2))-(Double.parseDouble(lon1))); double a = (Math.sin(dlat/2)*Math.sin(dlat/2))+(Math.cos(Double.parseDouble(lat1))*(Math.PI/180))*(Math.cos(Double.parseDouble(lat2))*(Math.PI/180))*(Math.sin(dlon/2)*Math.sin(dlon/2)); double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a)); double d = r * c; if(d>1) val= ((d)) +"km"; else if(d < =1) val = ((d*1000)) +"m"; return val; } %> [/code] this is how i call the above function and print it [code] <% String hav = haversine(lat.substring(0, lat.indexOf(",")), lat.substring(lat.indexOf(",") + 1, lat.length()), abc.substring(0, abc.indexOf(",")), abc.substring(abc.indexOf(",") + 1, abc.length())); %> <td><font color ="white"><% out.println(hav);%></font> [/code] i get a very wrong output for the above prog,,pls help,,

Member Avatar
Member Avatar
+0 forum 5

I have a problem with google maps. I want to 'click' a marker remotely (that is to say the user will be able to click on a button and affect the marker, as though the marker itself had been clicked). Not a problem except I don't know how to name the marker, or alternatively, find out what it has been named in the google load() process. Once I know its name I can do the rest. Can anybody help ?

Member Avatar
+0 forum 0

I want to map a field, city, from a MySQL database into Google Maps. I found a nice script to do it, but haven't been able to get it to work. If I hard code an array into locations (var locations = ['Seattle', 'New York']), it works fine. Passing this SQL array into JS is giving me problems. I've tried a number of different things, but I'm stuck. Right now I'm trying getElementById, but no dice. Any help is appreciated! Thanks. [CODE]<?php $server_name="localhost"; $db_user="sql_user"; $db_pass="password"; $db="mydb"; $sql = "SELECT city FROM posts"; $result = mysql_query($query) or die ('Query Error: ' …

Member Avatar
Member Avatar
+0 forum 4

Hi guys/gals! I've read through a lot, great site but I'm stuck and have started pulling out teeth:( I would like to selectively display markers (that change everyday) on a Google map, using a a couple of checkboxes (areacode)and a selection list (prices). [CODE] <!--Based off of code from: http://tips4php.net/2010/10/use-php-mysql-and-google-map-api-v3-for-displaying-data-on-map/--> <?php include'connection.php'; ?> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>Google Map API V3 with markers</title> <style type="text/css"> //css shit body { font: normal 10pt Helvetica, Arial; } #map { width: 70%; height: 70%; border: 10px; padding: 10px; } </style> <script src="http://maps.google.com/maps/api/js?v=3&sensor=false" type="text/javascript"></script> <script type="text/javascript"> //Sample code written by August Li …

Member Avatar
+0 forum 0

The great thing about modern technology is that it makes our lives easier, well, most of our lives that is. For some, it would seem, technology just adds another layer of confusion into the whole living their life thing. Take the many cases of people apparently having to do exactly what their satellite navigation system tells them, without giving any thought to what that might actually be. I've written about [URL="http://www.daniweb.com/news/story218321.html"]stupid satnav users[/URL] before here on DaniWeb, such as the Australian chap who turned right when directed and failed to spot this was not a highway turn off but the …

Member Avatar
Member Avatar
+0 forum 8

Hello All! I want to know about the configuing process of Google Map in an Android Application. Thanks, john

Member Avatar
Member Avatar
+0 forum 1

I am currently trying to store location data into a database and when i display it on a website, the location data is hyperlinked and when i click on it, it will act as a search query to display the location on Google Maps in a iframe. Does anyone know of any reference or resources for this functionality? Thanks

Member Avatar
Member Avatar
+0 forum 4

hi all, i am working on online food ordering project. restaurant create zones (circles based on miles as radies) to delivery the food. comapines registerd for food ordering. the company emplyees select there company we must display the restaurnt (Which are contaning this company in there zones). any idea please help me. thanks in advance.

Member Avatar
Member Avatar
+0 forum 2

The End.