Jump to content

Geolocation help me please


stormsearchers

Recommended Posts

Hello i am build a stormchasing website what I would like to do is set up googl map for Alerts Recent Alerts, Alerts, alerts areas, Radar, Cyclones. can any body help me please new to Geolocation many thanks

Link to comment
Share on other sites

If you need help with geolocation, Google has a geolocation API where you can send an address and it will return the coordinates. If you look at any example of placing a marker on a Google map then you should see the geolocation API being used to get the coordinates for the marker.

Link to comment
Share on other sites

var x = document.getElementById("demo");

with the getElementby ID(demo) what do I put in there for Australia cause it dose not want work on my site http://stormsearchers.site88.net

Edited by stormsearchers
Link to comment
Share on other sites

I'm not sure what you're asking. You use document.getElementById to get a reference to an HTML element on the page. I don't know what you mean by putting it in there for Australia. Australia is a continent and country, not an HTML element.

 

Your site doesn't have an element with the ID "demo" on it, so that line isn't going to find anything. You also have 3 functions on your page, but you don't execute any of the functions. It sounds like you pasted some code in but left out a couple steps. One of the functions tries to get an element with the ID "mapholder" but you don't have an element with that ID on your page either.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...