Jump to content


How To Use Google Map To Do Like This ?

  • Please log in to reply
5 replies to this topic

#1 Manhag

  • Members
  • PipPip
  • Member
  • 27 posts

Posted 25 November 2012 - 12:09 PM

i found this site
using google maps api


is there any suggestion

#2 Xaotique

  • Members
  • PipPipPip
  • Advanced Member
  • 585 posts
  • LocationOhio, United States
  • Age:23

Posted 25 November 2012 - 03:14 PM

I don't know if it changed, but using the regular Google Maps API you could only get like 1000 images per day. That would make this a kind'a worthless idea unless you only needed a few small areas and you saved them to your server.

On a side note, nobody is going to write it and do the work for you. You're gonna have to attempt it before anyone (most people) care to help you. The API is pretty easy if you just check out their page.

There's also a Javascript API now which I wasn't aware of. Google search "google maps api" and you should find all you need.

#3 Manhag

  • Members
  • PipPip
  • Member
  • 27 posts

Posted 25 November 2012 - 03:33 PM

i already searched for it

i can make a line bet 2 points

but i can't make a line bet center and a fixed point

#4 Adam

  • Moderators
  • Advanced Member
  • 5,730 posts
  • LocationSheffield / UK

Posted 25 November 2012 - 05:05 PM

What is a "line bet"? I can't seem to work out what that line points to / what the point of it is? As you've already been told though, we're not just going to go read the API documentation and figure out how to do it for you. Post the code you have and explain what it does, and post links to the pages in the API documentation relevant to that code.

#5 Manhag

  • Members
  • PipPip
  • Member
  • 27 posts

Posted 25 November 2012 - 05:15 PM

line between

as i told u

i can make a line between 2 fixed points

but i can't make a line between center and a fixed point

here is the code

<!DOCTYPE html>

 var bounds = new google.maps.LatLngBounds();
    var length = markers.length;
    for (var i = 0; i < length; i++) {
        bounds.extend(new google.maps.LatLng(markers[i].lat, markers[i].lng));

var x=new google.maps.LatLng(52.395715,4.888916);
var stavanger=new google.maps.LatLng(markers[i].lat, markers[i].lng);
var london=new google.maps.LatLng(51.508742,-0.120850);

function initialize()
var mapProp = {

var map=new google.maps.Map(document.getElementById("googleMap"),mapProp);

var myTrip=[stavanger,london];
var flightPath=new google.maps.Polyline({


google.maps.event.addDomListener(window, 'load', initialize);

<div id="googleMap" style="width:500px;height:380px;"></div>

Edited by Manhag, 25 November 2012 - 05:18 PM.

#6 haku

  • Staff Alumni
  • Advanced Member
  • 6,179 posts

Posted 25 November 2012 - 11:29 PM

What exactly do you mean by a 'line between center and a fixed point'? You haven't actually told us what it is that you want to do.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users