Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Google Maps url arguments

  • 03-03-2007 11:20PM
    #1
    Registered Users, Registered Users 2 Posts: 590 ✭✭✭


    Hey,

    I know this is a fairly long shot but I thought I'd post it up here anyway just in case someone knows anything about this.

    I want to open a google map web page from within a Java applet. I need to give the google map url particular arguments for the longitude, latitude and zoom level. This all works fine. But I also want to give it arguments to create a marker to point to the location. Does anyone know how to do this through a url line?

    Thanks.


Comments

  • Registered Users, Registered Users 2 Posts: 527 ✭✭✭Sean^DCT4


    for the longitude and latitude you need to input a value obtained from a Geocoder.
    Google "free geocoder".
    ** just read what you asked for **

    For creating the marker I used a tutorial on creating google maps to put the marker down. I'll have a look for the code when I get home later.


  • Registered Users, Registered Users 2 Posts: 590 ✭✭✭bman


    Thanks for the reply Sean.

    I have since seen that markers can be created using javascript. I don't really want to go this route for two reasons:
    - I want to call a page using just the url if possible.
    - I don't know very much/anything about java script!

    But if you've managed it using java script or through using the url I'd be happy to see either way.


  • Registered Users, Registered Users 2 Posts: 6,676 ✭✭✭daymobrew


    bman wrote:
    Does anyone know how to do this through a url line?
    Go to Google Maps, browse to a site and click Link to this page.
    The longitude and latitude and zoom level are in the URL. Simply substitute your info into the URL you create.


  • Registered Users, Registered Users 2 Posts: 378 ✭✭sicruise


    Exactly as daymobrew said use the link to page...

    You can use a url like this...

    http://maps.google.com/?z=5&ll=50,105

    Change the z value for zoom where an increased value is a higher magnification.

    50 in this example is the lattitude and 105 is the longitude... should get you to mongolia...


  • Registered Users, Registered Users 2 Posts: 590 ✭✭✭bman


    Thanks guys. Can't believe I didn't think of that before! It was only the marker that was the problem.


  • Advertisement
Advertisement