Direction avoid Polygon

2008-12-11 Thread Phil

Hello,
I'm looking a way to avoid a Polygon when I call the direction.Load()
method so that the API looks for another way to go from point A to
point B.
The goal is to make some regions (or country ...)  forbiden.

 Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API For Flash group.
To post to this group, send email to google-maps-api-for-flash@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-maps-api-for-flash?hl=en
-~--~~~~--~~--~--~---



problem with google maps using markers, infoWindows and customContent

2008-12-11 Thread Elisheva

Hi,

After the long subject header...

I have a googleMaps app, which uses markers, infoWindows and
customContent.

The customContent is an AS3 class, and it works greatexcept when I
want to use the
textField.htmlText.

my as3 class looks like:

/*
* Copyright 2008 Google Inc.
* Licensed under the Apache License, Version 2.0:
*  http://www.apache.org/licenses/LICENSE-2.0
*/
package classes {

import flash.display.Sprite;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.text.TextFormat;

import mx.controls.Text;


/**
 * Display info window - use a navy blue rectangle
 * in it insert title, text, and htmlText
 */

public class InfoWindowSprite extends Sprite {

public function InfoWindowSprite() {
  // Draw info window frame

   var infobox:Sprite = new Sprite();
   // draw rectangle
infobox.graphics.lineStyle(2, 0xc2deea, 1, true);
infobox.graphics.beginFill(0x223344);
infobox.graphics.drawRoundRect(-75, -110, 440, 161, 10, 10);

// Draw close area rect
var xbox:Sprite = new Sprite();
xbox.graphics.beginFill(0xc2deea);
xbox.graphics.drawRoundRect(330, -105, 30, 30,5);
xbox.graphics.endFill();
// Add close 'X'
var xTextFormat:TextFormat = new TextFormat();
xTextFormat.font = Verdana;
xTextFormat.color = 0xFEFEFE;
xTextFormat.size = 21;
xTextFormat.bold = true;

var xText:TextField = new TextField();
xText.x = 335;
xText.y = -105;
xText.text = X;
xText.setTextFormat(xTextFormat);

 // Add title text
var titleTextFormat:TextFormat = new TextFormat();
titleTextFormat.font = Verdana;
titleTextFormat.color = 0xFEFEFE;
titleTextFormat.size = 20;
titleTextFormat.align = left;

var titleTextField:TextField = new TextField();
titleTextField.x = -70;
titleTextField.y = -110;
titleTextField.width = 300;
titleTextField.text = This is the title;
titleTextField.selectable = false;
titleTextField.setTextFormat(titleTextFormat);

// link
var urlTextField:TextField = new TextField();
urlTextField.x = -70;
urlTextField.y = 20;
urlTextField.width = 200;
urlTextField.height = 100;
urlTextField.autoSize = TextFieldAutoSize.LEFT;
urlTextField.htmlText = a;
urlTextField.htmlText+=http://www.google.com;;
urlTextField.htmlText+=/a;
urlTextField.setTextFormat(titleTextFormat);

infobox.addChild(titleTextField);
infobox.addChild(urlTextField);
infobox.x = 50;
infobox.y = 50;
   addChild(infobox)
   cacheAsBitmap = true;
} // end function

 } // end class

} // end package


My mxml is as the sample example, the call to the infoWindow looks
like:

var marker:Marker = new Marker(latlng, markerOptions);

   infoSprite = new InfoWindowSprite(pinXMLInfo);

  var options:InfoWindowOptions = new InfoWindowOptions({
  customContent: infoSprite,
/* customOffset: new Point(50, 50), */
customCloseRect: new Rectangle(400, 0, 30, 30)
});
marker.addEventListener(MapMouseEvent.CLICK, function
(e:Event):void {
marker.openInfoWindow(options);
});
map.addOverlay(marker);

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API For Flash group.
To post to this group, send email to google-maps-api-for-flash@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api-for-flash+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-maps-api-for-flash?hl=en
-~--~~~~--~~--~--~---



HowSFVotes 2008 Released, Uses Flex API

2008-12-11 Thread Jesse

I just wanted to share with everybody that today I released a
completely revamped version of my site, HowSFVotes.com. The old
version was built (in 2004) on Flash and all custom GIS code. This new
version is built on top of Google's Maps API for Flex.

http://www.howsfvotes.com/#08G:8;;P;AB

The Flex API made it incredibly easy for me to develop the site. I
accomplished much more in the past two weeks than I did in two months
in 2004. I used the following parts of the API: polygon and marker
overlay, OverlayBase, Local Search (not actually part of the API),
encoded polygons, custom panes, zoom and move events, and more.

If anyone in this group has questions about how I implemented specific
features of HowSFVotes, feel free to post them here or on my site
blog, http://blog.howsfvotes.com.

Thanks Google and the Maps API community!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API For Flash group.
To post to this group, send email to google-maps-api-for-flash@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api-for-flash+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-maps-api-for-flash?hl=en
-~--~~~~--~~--~--~---



Re: HowSFVotes 2008 Released, Uses Flex API

2008-12-11 Thread pamela (Google Employee)
Hi Jesse-
Awesome! I'm playing with it now. One UX thing: I can't figure out how to
get rid of the search box once I click it (there's no close button).
Where did you get the data from?

- pamela

On Fri, Dec 12, 2008 at 12:47 PM, Jesse je...@barbarylane.net wrote:


 I just wanted to share with everybody that today I released a
 completely revamped version of my site, HowSFVotes.com. The old
 version was built (in 2004) on Flash and all custom GIS code. This new
 version is built on top of Google's Maps API for Flex.

 http://www.howsfvotes.com/#08G:8;;P;AB

 The Flex API made it incredibly easy for me to develop the site. I
 accomplished much more in the past two weeks than I did in two months
 in 2004. I used the following parts of the API: polygon and marker
 overlay, OverlayBase, Local Search (not actually part of the API),
 encoded polygons, custom panes, zoom and move events, and more.

 If anyone in this group has questions about how I implemented specific
 features of HowSFVotes, feel free to post them here or on my site
 blog, http://blog.howsfvotes.com.

 Thanks Google and the Maps API community!


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API For Flash group.
To post to this group, send email to google-maps-api-for-flash@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api-for-flash+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-maps-api-for-flash?hl=en
-~--~~~~--~~--~--~---



Re: 'Parameters' in infowindow is it possible?

2008-12-11 Thread ProbablyMike

I'm not quite sure what your question is really.
What parameters do you need to change? And where?

Do you simply want to link to the computer availability map from an
infowindow on your Google Map?
If so, just include the html for the link in the openInfoWindowHtml.

Mike
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: 'Parameters' in infowindow is it possible?

2008-12-11 Thread ProbablyMike

P.S.

When looking at your Google map in FF3 or IE6, the map appears down
the page, after check boxes on the left, so have to scroll down quite
a way before I see the map.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: 2 icons Overlay...

2008-12-11 Thread ProbablyMike

Impossible to say what is going wrong without a link to your map:
http://groups.google.com/group/Google-Maps-API/web/suggested-posting-guidelines
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Re: from lat, lon, zoom to x y ???

2008-12-11 Thread Rankus



On Dec 10, 2008, at 1:49 PM, igloo wrote:

 Have a loook at the API Reference:
 http://code.google.com/apis/maps/documentation/reference.html
 and search for GMap2.fromLatLngToContainerPixel(latlng)


He asked for PHP or Actionscript function. Pointing to JS API  
reference does not help much.

Anyways. For info on how to calculcate container X and Y in PHP you  
can adapt code from here:

http://www.appelsiini.net/2008/6/clickable-markers-with-google-static-maps


--
Mika Tuupola
http://www.appelsiini.net/





thanks, i think i can get this to work...


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Google map on ssl page

2008-12-11 Thread ProbablyMike

There is a feature request for this:
http://code.google.com/p/gmaps-api-issues/issues/detail?id=591

But the way I've got around it on the SSL section of our website was
to have just the map page on HTTP as it didn't really matter if the
map was SSL or not, but the following pages need it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: J2SE Desktop App

2008-12-11 Thread ProbablyMike

1: The API Javascript.
2: You cannot use the free Google Map API with desktop applications.

Any map you create HAS to be on a freely accessible public website.

I don't know if you can do desktop apps with the enterprise licence:
http://www.google.com/enterprise/maps/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: J2SE Desktop App

2008-12-11 Thread pamela (Google Employee)
Correction: As of the latest Terms of Service, you can create desktop
applications with the API. But, you must use one of our existing APIs
(JavaScript/Flash/Static). The JavaScript API and Flash APIs likely do not
work in J2SE (well, maybe Flash does, I don't know), and due to the
additional terms that dictate static maps must be displayed in a web
browser, that eliminates the Static Maps API. So the answer is likely no,
but you need to explore the Terms of Service and technological possibilities
further.
- pamela


On Thu, Dec 11, 2008 at 8:25 PM, ProbablyMike [EMAIL PROTECTED]wrote:


 1: The API Javascript.
 2: You cannot use the free Google Map API with desktop applications.

 Any map you create HAS to be on a freely accessible public website.

 I don't know if you can do desktop apps with the enterprise licence:
 http://www.google.com/enterprise/maps/
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: J2SE Desktop App

2008-12-11 Thread Martin

Isn't it ok to embed a browser control in an app and use that to
access a map that's freely accessible on the internet?

The app's browser control becoming a customised browser to access that
particular online map.

Martin.


On 11 Dec, 09:32, pamela (Google Employee) [EMAIL PROTECTED]
wrote:
 Correction: As of the latest Terms of Service, you can create desktop
 applications with the API. But, you must use one of our existing APIs
 (JavaScript/Flash/Static). The JavaScript API and Flash APIs likely do not
 work in J2SE (well, maybe Flash does, I don't know), and due to the
 additional terms that dictate static maps must be displayed in a web
 browser, that eliminates the Static Maps API. So the answer is likely no,
 but you need to explore the Terms of Service and technological possibilities
 further.
 - pamela

 On Thu, Dec 11, 2008 at 8:25 PM, ProbablyMike [EMAIL PROTECTED]wrote:



  1: The API Javascript.
  2: You cannot use the free Google Map API with desktop applications.

  Any map you create HAS to be on a freely accessible public website.

  I don't know if you can do desktop apps with the enterprise licence:
 http://www.google.com/enterprise/maps/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: J2SE Desktop App

2008-12-11 Thread pamela (Google Employee)
Hi Martin-
That should be fine. I don't know the particulars of J2SE and whether it has
a browser control. If it does, then that'd be the technique.

- pamela

On Thu, Dec 11, 2008 at 8:41 PM, Martin [EMAIL PROTECTED] wrote:


 Isn't it ok to embed a browser control in an app and use that to
 access a map that's freely accessible on the internet?

 The app's browser control becoming a customised browser to access that
 particular online map.

 Martin.


 On 11 Dec, 09:32, pamela (Google Employee) [EMAIL PROTECTED]
 wrote:
  Correction: As of the latest Terms of Service, you can create desktop
  applications with the API. But, you must use one of our existing APIs
  (JavaScript/Flash/Static). The JavaScript API and Flash APIs likely do
 not
  work in J2SE (well, maybe Flash does, I don't know), and due to the
  additional terms that dictate static maps must be displayed in a web
  browser, that eliminates the Static Maps API. So the answer is likely no,
  but you need to explore the Terms of Service and technological
 possibilities
  further.
  - pamela
 
  On Thu, Dec 11, 2008 at 8:25 PM, ProbablyMike [EMAIL PROTECTED]
 wrote:
 
 
 
   1: The API Javascript.
   2: You cannot use the free Google Map API with desktop applications.
 
   Any map you create HAS to be on a freely accessible public website.
 
   I don't know if you can do desktop apps with the enterprise licence:
  http://www.google.com/enterprise/maps/
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: J2SE Desktop App

2008-12-11 Thread Mike Williams

Wasn't it ProbablyMike who wrote:

You cannot use the free Google Map API with desktop applications.

Any map you create HAS to be on a freely accessible public website.

That's no longer true. The Terms now allow desktop applications as long 
as you provide a publicly accessible webpage from which it can be 
downloaded for free.

http://code.google.com/intl/iw/apis/maps/faq.html#tos_nonweb

-- 
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Visualization problem

2008-12-11 Thread Davide

Hi Andrew,
the problem is back.. probably something is missed but i really dont
understand what ..
can you help me again to solve ? this night i'll go online :-!

http://www.ermes.net/listdocument.php?category=Esperienza

Another question for the guru .. i want to enlarge the map with the
lightbox but i think that isn't possible to visualize two map on the
same page .. correct ? do you know if this is a API characteristic ?



On 5 Dic, 18:26, warden [Andrew Leach - Maps API Guru]
[EMAIL PROTECTED] wrote:
 On Dec 5, 4:59 pm, Davide [EMAIL PROTECTED] wrote:

  there is something wronge... in my case I don't have any JS error
  check again the link :

 You're still using pngfix.js. That should be removed: it works on
 every PNG image, and you don't want it to do that. Use the HTC in the
 style instead of that, not in addition to it.

 Andrew
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Bug? h[cf] is undefined

2008-12-11 Thread warden [Andrew Leach - Maps API Guru]

On Dec 11, 7:28 am, laloona [EMAIL PROTECTED] wrote:
 we removed the fix because it didn't work with our own javascript
 application. So you can watch that bug on the public 
 sitehttp://www.trivago.de/deutschland-655for example. It is not working
 at the moment. The error h[cf] is undefined occurs with FF3, IE6,
 IE7.

No-one else has reported this issue, so it's highly likely to be
something specific to your code.

I suspect there is a conflict with your script at
http://www.trivago.de/javascript/js_base_v3_5_12.js which uses h in
its COM object. It's generally not a good idea to use more than one
obfuscated script from different sources (Google's own obfuscated
scripts can be expected to co-exist nicely). If it's possible, try to
use names of three characters or more in your scripts rather than one-
or two-character names.

Is it possible to use the un-obfuscated version of your script, just
to confirm whether a conflict is the cause of the problem?

Andrew
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Google map on ssl page

2008-12-11 Thread Andrew W. Nosenko

On 10 дек, 21:31, Barry Hunter [EMAIL PROTECTED] wrote:
 2008/12/10 kraus carl [EMAIL PROTECTED]:
  Does anyone have a solution for putting a google map in an SSL page without
  browser warning messages?

 Yes - buy premier. Its not supported in the Free API.

Is it official Google response?
If yes, could you be more specific?
Some near time ago our company was unable to obtain https support even
using our enterprise key.

Thanks in advance for response and clarify.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Google map on ssl page

2008-12-11 Thread pamela (Google Employee)
Hi Andrew-

There's more information in our new Google Maps API Premier documentation:
http://code.google.com/apis/maps/documentation/premier/guide.html

As it says in the docs, you need to contact your support representative and
have your account enabled.

- pamela

2008/12/11 Andrew W. Nosenko [EMAIL PROTECTED]


 On 10 дек, 21:31, Barry Hunter [EMAIL PROTECTED] wrote:
  2008/12/10 kraus carl [EMAIL PROTECTED]:
   Does anyone have a solution for putting a google map in an SSL page
 without
   browser warning messages?
 
  Yes - buy premier. Its not supported in the Free API.

 Is it official Google response?
 If yes, could you be more specific?
 Some near time ago our company was unable to obtain https support even
 using our enterprise key.

 Thanks in advance for response and clarify.
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Travel Mode Truck for DirectionsOptions

2008-12-11 Thread Phil

Hello,
I'm using the API to calculate Directions for trucks.

The current available travel modes are :
TRAVEL_MODE_DRIVING
TRAVEL_MODE_WALKING

But the TRAVEL_MODE_DRIVING isn't perfect for my use cases, because
the way may use truck forbiden roads (due to the weight or the height
for example).

Are the developpers going to implement more traveling modes ? or is
there a way to customize the actual travelling mode to get what I
need ?

Thanks !

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: all of my maps just stopped working !!??

2008-12-11 Thread warden [Andrew Leach - Maps API Guru]

On Dec 11, 1:13 am, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:

 Do you have some reason to believe this file:
 http://ftp.dfg.ca.gov/Public/R3_BDR/web_map/kml/r3_boundary_line.kml
 is publicly available?

I think that will be a fairly serious issue! However adding an overlay
on to a map which hasn't yet been centred could also cause problems.

Andrew
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Auto Tile Cutter creating 3x3 tile set

2008-12-11 Thread Deng

Hello Everyone,

I'm creating a large custom map (23552 x 23552 px), slicing the image
using Will's Auto Tile Cutter (http://mapki.com/index.php?
title=Automatic_Tile_Cutter). The script (v2) works great, creating a
series of images (11,000+ so far) for 6 zoom levels.

However, the script is creating a 3x3 tile set @ zoom 1. From the
Google research I've been doing, I understand that zoom 0 should be a
single 256x256 tile, with each progressive zoom increasing by a factor
of 4.

That is to say, the API only displays factors of 2x2. So, on my map
sliced with the tile cutter, 1 column and 1 row is cut off @ zoom 1.
Even though the images are there and named correctly, the Maps API
doesn't seem to recognize or load that 3rd row and column. This cut-
off continues down as I zoom in to levels 3, 4, 5...and so on.

Has anyone else experienced this problem? Is it an API limitation or
is something going on w/ the script?

Is there a something I should change in the script so that it cuts
tiles 2x2 rather than 3x3?

This script seems to work great for everyone else...is the large size
of my image the problem?

Thanks,
Deng

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: J2SE Desktop App

2008-12-11 Thread Martin

Whether the map is hosted online or within the application, a
embedding a browser control is still the way to go i think.

How else will an application handle the javascript API and
requirements for HTML rendering?

Martin.



On 11 Dec, 09:47, Mike Williams [EMAIL PROTECTED] wrote:
 Wasn't it ProbablyMike who wrote:

 You cannot use the free Google Map API with desktop applications.

 Any map you create HAS to be on a freely accessible public website.

 That's no longer true. The Terms now allow desktop applications as long
 as you provide a publicly accessible webpage from which it can be
 downloaded for free.

 http://code.google.com/intl/iw/apis/maps/faq.html#tos_nonweb

 --http://econym.org.uk/gmap
 The Blackpool Community Church Javascript Team
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Visualization problem

2008-12-11 Thread warden [Andrew Leach - Maps API Guru]

On Dec 11, 9:52 am, Davide [EMAIL PROTECTED] wrote:
 Hi Andrew,
 the problem is back.. probably something is missed but i really dont
 understand what ..
 can you help me again to solve ? this night i'll go online :-!

You have the following code back in your page. Remove it.
!--[if gte IE 5.5000]
script type=text/javascript src=js/pngfix.js/script
![endif]--

 Another question for the guru .. i want to enlarge the map with the
 lightbox but i think that isn't possible to visualize two map on the
 same page .. correct ? do you know if this is a API characteristic ?

You can certainly have two maps on the same page.
div id=map1/div
div id=map2/div
script
var map1=new GMap2(document.getElementById(map1));
var map2=new GMap2(document.getElementById(map2));
/script

But lightbox may be problematic. Try and see: if you have problems, do
start a new thread -- it's a different topic.

Andrew
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Drag to Change Route

2008-12-11 Thread hermans85

Anyone has this in Java?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Travel Mode Truck for DirectionsOptions

2008-12-11 Thread geocode...@gmail.com

On Dec 11, 2:15 am, Phil [EMAIL PROTECTED] wrote:
 Hello,
 I'm using the API to calculate Directions for trucks.

 The current available travel modes are :
 TRAVEL_MODE_DRIVING
 TRAVEL_MODE_WALKING

 But the TRAVEL_MODE_DRIVING isn't perfect for my use cases, because
 the way may use truck forbiden roads (due to the weight or the height
 for example).

 Are the developpers going to implement more traveling modes ? or is
 there a way to customize the actual travelling mode to get what I
 need ?

You can request an enhancement.  Look through the existing requests to
see if there is one there already:
http://code.google.com/p/gmaps-api-issues/issues/list

If not add one. (I see requests for biking directions and transit
directions, but not truck directions)

  -- Larry
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Bug? h[cf] is undefined

2008-12-11 Thread laloona

Hello,

we had that error before using the COM-Object. COM is a newer version
and script beahiour is exactly the same.
Of course I could send you the raw sources Shall I send it with mail?

Greetings,

laloona

On 11 Dez., 11:20, warden [Andrew Leach - Maps API Guru]
[EMAIL PROTECTED] wrote:
 On Dec 11, 7:28 am, laloona [EMAIL PROTECTED] wrote:

  we removed the fix because it didn't work with our own javascript
  application. So you can watch that bug on the public 
  sitehttp://www.trivago.de/deutschland-655forexample. It is not working
  at the moment. The error h[cf] is undefined occurs with FF3, IE6,
  IE7.

 No-one else has reported this issue, so it's highly likely to be
 something specific to your code.

 I suspect there is a conflict with your script 
 athttp://www.trivago.de/javascript/js_base_v3_5_12.jswhich uses h in
 its COM object. It's generally not a good idea to use more than one
 obfuscated script from different sources (Google's own obfuscated
 scripts can be expected to co-exist nicely). If it's possible, try to
 use names of three characters or more in your scripts rather than one-
 or two-character names.

 Is it possible to use the un-obfuscated version of your script, just
 to confirm whether a conflict is the cause of the problem?

 Andrew
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Bug? h[cf] is undefined

2008-12-11 Thread warden [Andrew Leach - Maps API Guru]

On Dec 11, 11:54 am, laloona [EMAIL PROTECTED] wrote:
 we had that error before using the COM-Object. COM is a newer version
 and script beahiour is exactly the same.
 Of course I could send you the raw sources Shall I send it with mail?

Only if you want to pay me for consultancy! Why don't you try on your
test system with unobfuscated code, and see if the error still
happens?

Andrew
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



AJAX coordinates for polyline

2008-12-11 Thread Pellens

Hi,

I have created a GoogleMap on my website. I would like to load all the
points for a polyline from MySQL. I do this with AJAX.

Here is my js code:

http.onreadystatechange = function()
{
  var points = http.responseText;
  if(http.readyState == 4)
  {
// TEST
document.getElementById('test').innerHTML = points;
if(points != NP) map.addOverlay(new GPolyline(points, '#ff',
2, 1));
  }
}

The test div (see // TEST) show's me the correct data:

[
new GLatLng(41.0124,28.9759),
new GLatLng(37.8703,30.84),
new GLatLng(36.8875,30.7031),
new GLatLng(36.6437,30.5573)
]

Still, it doesn't draw the lines when I inlcude 'points' into the
overlay
// map.addOverlay(new GPolyline(points, '#ff', 2, 1)), //

Anyone know a fix to this problem?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: AJAX coordinates for polyline

2008-12-11 Thread warden [Andrew Leach - Maps API Guru]

On Dec 11, 12:37 pm, Pellens [EMAIL PROTECTED] wrote:

 The test div (see // TEST) show's me the correct data:

But points comes from responseText and is a String object, not an
Array. GPolyline requires an array. You can't do
new GPolyline([a,b],#ff,2,1) -- it's not the same as
new GPolyline([a,b],#ff,2,1)

 Still, it doesn't draw the lines when I inlcude 'points' into the
 overlay
 // map.addOverlay(new GPolyline(points, '#ff', 2, 1)), //

 Anyone know a fix to this problem?

Try using eval(points): that evaluates the string and should produce
the array it contains.
map.addOverlay(new Polyline(eval(points),'#ff',2,1));

Andrew
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Directions / Info Window

2008-12-11 Thread trice22

Hello,

I'm trying to open a simple InfoWindow on click on a marker. The marker
(s) have been set by the GDirections() method and I'm reading the
markers like this:

var directions = new GDirections(map);
var markers[0] = directions.getMarker(0);

The problem is, that the map shows me on click the small zoomed map
instead of the infowindow. I've figured out, that I'm setting the
eventhandler too early but I can't see how to do it differently.
Here's a bit of code.

function initialize()
{
map = new GMap2(document.getElementById(map_canvas));
map.addControl(new GSmallMapControl());
directionsPanel = document.getElementById(route);
directions = new GDirections(map);
directions.load(from: Address 1 to: Address 2);
GEvent.addListener(directions.getMarker(0), click, function() {
directions.getMarker(0).openInfoWindowHtml('pText here and 
here/
p');
});
}

$(window).ready(function()
{
initialize();
});

If I'm placing the event in it's own method and call it e.g. from a
console, everything works fine.

Any ideas how I could fix this?

Cheers,
—trice

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Directions / Info Window

2008-12-11 Thread Tubby Grey


Might be easier to provide a link to your page in order for someone to
help.

On Dec 11, 5:48 am, trice22 [EMAIL PROTECTED] wrote:
 Hello,

 I'm trying to open a simple InfoWindow on click on a marker. The marker
 (s) have been set by the GDirections() method and I'm reading the
 markers like this:

 var directions = new GDirections(map);
 var markers[0] = directions.getMarker(0);

 The problem is, that the map shows me on click the small zoomed map
 instead of the infowindow. I've figured out, that I'm setting the
 eventhandler too early but I can't see how to do it differently.
 Here's a bit of code.

 function initialize()
 {
         map = new GMap2(document.getElementById(map_canvas));
         map.addControl(new GSmallMapControl());
         directionsPanel = document.getElementById(route);
         directions = new GDirections(map);
         directions.load(from: Address 1 to: Address 2);
         GEvent.addListener(directions.getMarker(0), click, function() {
                 directions.getMarker(0).openInfoWindowHtml('pText here and 
 here/
 p');
         });

 }

 $(window).ready(function()
 {
         initialize();

 });

 If I'm placing the event in it's own method and call it e.g. from a
 console, everything works fine.

 Any ideas how I could fix this?

 Cheers,
 —trice
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Directions / Info Window

2008-12-11 Thread trice22

Thanks for the reply—

unfortunately I don't have the code anywhere online yet. I'll see if I
can put it up for this purpose, but that might take some time.
Until then I'm open for educated guesses as well—the code you see here
is pretty much all I have anyways. It's not a very complex
application.

—trice



On Dec 11, 2:58 pm, Tubby Grey [EMAIL PROTECTED] wrote:
 Might be easier to provide a link to your page in order for someone to
 help.

 On Dec 11, 5:48 am, trice22 [EMAIL PROTECTED] wrote:

  Hello,

  I'm trying to open a simple InfoWindow on click on a marker. The marker
  (s) have been set by the GDirections() method and I'm reading the
  markers like this:

  var directions = new GDirections(map);
  var markers[0] = directions.getMarker(0);

  The problem is, that the map shows me on click the small zoomed map
  instead of the infowindow. I've figured out, that I'm setting the
  eventhandler too early but I can't see how to do it differently.
  Here's a bit of code.

  function initialize()
  {
          map = new GMap2(document.getElementById(map_canvas));
          map.addControl(new GSmallMapControl());
          directionsPanel = document.getElementById(route);
          directions = new GDirections(map);
          directions.load(from: Address 1 to: Address 2);
          GEvent.addListener(directions.getMarker(0), click, function() {
                  directions.getMarker(0).openInfoWindowHtml('pText here 
  and here/
  p');
          });

  }

  $(window).ready(function()
  {
          initialize();

  });

  If I'm placing the event in it's own method and call it e.g. from a
  console, everything works fine.

  Any ideas how I could fix this?

  Cheers,
  —trice
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Travel Mode Truck for DirectionsOptions

2008-12-11 Thread Rossko

 But the TRAVEL_MODE_DRIVING isn't perfect for my use cases, because
 the way may use truck forbiden roads (due to the weight or the height
 for example).

I expect you searched this group for 'truck directions', but somehow
missed previous discussions.  You might be interested in this thread -
 
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/d44fbf7dc5f549bd/3f3c495f1b41a5b9?lnk=gstq=truck+directions#3f3c495f1b41a5b9

Specialist truck directions are commercially valuable and Google may
not be allowed to use the data in that way by their data suppliers.

Of course that could be an incentive to develop your own service :)

cheers, Ross K

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Directions / Info Window

2008-12-11 Thread [EMAIL PROTECTED]

On Dec 11, 5:06 am, trice22 [EMAIL PROTECTED] wrote:
 Thanks for the reply—

 unfortunately I don't have the code anywhere online yet. I'll see if I
 can put it up for this purpose, but that might take some time.
 Until then I'm open for educated guesses as well—the code you see here
 is pretty much all I have anyways. It's not a very complex
 application.


Try this:
http://econym.org.uk/gmap/steps.htm


 On Dec 11, 2:58 pm, Tubby Grey [EMAIL PROTECTED] wrote:

  Might be easier to provide a link to your page in order for someone to
  help.

  On Dec 11, 5:48 am, trice22 [EMAIL PROTECTED] wrote:

   Hello,

   I'm trying to open a simple InfoWindow on click on a marker. The marker
   (s) have been set by the GDirections() method and I'm reading the
   markers like this:

   var directions = new GDirections(map);
   var markers[0] = directions.getMarker(0);

   The problem is, that the map shows me on click the small zoomed map
   instead of the infowindow. I've figured out, that I'm setting the
   eventhandler too early but I can't see how to do it differently.
   Here's a bit of code.

   function initialize()
   {
           map = new GMap2(document.getElementById(map_canvas));
           map.addControl(new GSmallMapControl());
           directionsPanel = document.getElementById(route);
           directions = new GDirections(map);
           directions.load(from: Address 1 to: Address 2);
           GEvent.addListener(directions.getMarker(0), click, function() {
                   directions.getMarker(0).openInfoWindowHtml('pText here 
   and here/
   p');
           });

   }

   $(window).ready(function()
   {
           initialize();

   });

   If I'm placing the event in it's own method and call it e.g. from a
   console, everything works fine.

   Any ideas how I could fix this?

   Cheers,
   —trice
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



gmail and Google Maps interface

2008-12-11 Thread [EMAIL PROTECTED]

Hello

I receive latitude and longitude by e-mail is there anyway to
interface this to google maps automatically?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Is there any solution when my IP or Domain name changed?

2008-12-11 Thread Dangerousdave26

Google does not know about any change in your internal IP address. I
use DYNDNS with the updater for my maps and API key with no problems
but you can not view the maps on your Intarnet (LAN) unless you have
purchased google maps enterprise addition. This makes programing and
testing on the LAN difficult to say the least. You will need to
program then access the site from your server using http://localhost/{what
ever you need to get to your page}. Google must understand this as a
test of the server and does not block the key.

If you try and access your page from another PC on your LAN it will
fail every time.

Dave

On Dec 10, 10:24 am, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 I have to correct my self :-). Google maps always works for pages
 loaded from file system (you know: //servername/www...) because there
 is no key check.
 Because the problem still remains with my dynamic IP referred site,
 I'm wondering if it happens because of dyndns. There somebody using
 dyndns able to call maps API?

 On 10 Dic, 08:58, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:



  Not really. I have a DynDNS alias pointing to the dynamic IP of my
  router. In my LAN I have a web server (every inbound HTTP request is
  forwarded by the router to this server) and a laptop I use as
  development machine. I requested an API from my laptop during the
  development of my site which I debugged still using my laptop. When I
  uploaded the entire stuff to the server the maps API key did work
  anymore, because I changed the server. This is actually true, but what
  I can't understand is how the maps API are able to detect a change of
  an INTERNAL ip address. In other words, both the machine are announced
  into the Internet via a unique IP address, the one of the router,
  aliased by DynDNS. Could anybody explain the reason why and suggest
  possibly some work around?
  thank you

  On 9 Dic, 09:34, Emil Nenov [EMAIL PROTECTED] wrote:

   Hi, if you use dinamic ip address you can usehttp://www.dyndns.com/soyour
   domain will stay the same when the ip changed.

   - Original Message -
   From: [EMAIL PROTECTED]
   To: Google Maps API Google-Maps-API@googlegroups.com
   Sent: Tuesday, December 09, 2008 8:04 AM
   Subject: Is there any solution when my IP or Domain name changed?

I know how to Sign Up for the Google Maps API.
A single Maps API key is valid for a single directory or domain.
However, once my IP or Domain name changed, the API key no longer
validate.
I must re-sign up a new Maps key to fit this new IP or Domain name.
Because my IP or Domain name usually be changed, so it's so
inconvenient.
Is there any good solution when my IP or Domain name changed?- Nascondi 
testo citato

   - Mostra testo citato -- Nascondi testo citato

  - Mostra testo citato -- Hide quoted text -

 - Show quoted text -

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Add an Search function. Look for the Markers in my XML file

2008-12-11 Thread daddyyankeee

Dear Friends,

I`m currently developing my Map localy but to give you the possbility
to look at my code i put it on http://www.content-controller.nl/googletest/
. All the markers are generated from a xml file from my database
(local) so no markers will show up now. The Map generates on demand
given markers of restaurants when filled in a know Locations via
radius function.

My question:
From the store locator tut, ik copied some code and add my own code
into. The store locator tut has an search function, but is very
different from the search function i want to implement.

Now only a place is search on base of latlng function. I want to add a
search field that allows visitors to enter a restaurant NAME, and the
check my xml file/ database if the restaurant exist and if it does
place a marker(s) in the Map.

I search the whole web and this group but i can`t find a code snippet
of handguide how to implement a search functions that looks the value
up in my database and then returns the marker.

Could someone please help me with this.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Directions / Info Window

2008-12-11 Thread trice22

Thanks again for the reply.

The provided example does exactly what mine does atm.. I'd just like
to replace the blowups on click with regular info windows.
This seems to work fine, once I attache the event at some point after
the markers have been set etc. manually (via console e.g.).
But if I attach the onclick event listener inside the init method,
just the blowup appears on click.

Cheers,
—trice
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Directions / Info Window

2008-12-11 Thread trice22

Sorry, just to have this mentioned:
I saw the comment about the timeout, but I'm trying to find a better/
real solution for this issue, since the system can't know for how
long to wait, or can it? I haven't actually tested the timeout in
this case yet, but I expect it to work.

—trice



On Dec 11, 3:49 pm, trice22 [EMAIL PROTECTED] wrote:
 Thanks again for the reply.

 The provided example does exactly what mine does atm.. I'd just like
 to replace the blowups on click with regular info windows.
 This seems to work fine, once I attache the event at some point after
 the markers have been set etc. manually (via console e.g.).
 But if I attach the onclick event listener inside the init method,
 just the blowup appears on click.

 Cheers,
 —trice
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Directions / Info Window

2008-12-11 Thread [EMAIL PROTECTED]

On Dec 11, 5:49 am, trice22 [EMAIL PROTECTED] wrote:
 Thanks again for the reply.

 The provided example does exactly what mine does atm.. I'd just like
 to replace the blowups on click with regular info windows.
 This seems to work fine, once I attache the event at some point after
 the markers have been set etc. manually (via console e.g.).
 But if I attach the onclick event listener inside the init method,
 just the blowup appears on click.

That tutorial completely controls the info window.  Rip out the code
that displays the blowup and add the code you want.  Without a link to
your map I am pointing you to to helpful examples that will help you
do what I think you are trying to say you want to do, but you are
going to have to do it.  If you run into trouble, post a link to your
map.



 Cheers,
 —trice
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Bug? h[cf] is undefined

2008-12-11 Thread Björn Brala
Have a look at this.

http://code.google.com/p/gmaps-api-issues/issues/detail?id=820

Google in its own namespace?

2008/12/11 Mike Williams [EMAIL PROTECTED]


 Wasn't it warden [Andrew Leach - Maps API Guru] who wrote:
 I suspect there is a conflict with your script at
 http://www.trivago.de/javascript/js_base_v3_5_12.js which uses h in
 its COM object. It's generally not a good idea to use more than one
 obfuscated script from different sources (Google's own obfuscated
 scripts can be expected to co-exist nicely). If it's possible, try to
 use names of three characters or more in your scripts rather than one-
 or two-character names.

 That shouldn't actually be a problem, because Google are pretty good at
 keeping their top-level variable names local to their own code. In fact,
 the way the API is written, the Google programmers have to go out of
 their way to expose their variables.

 The only thing that would be likely to cause a problem would be
 extending an exposed API object with a Property or Method name that
 might clash.

 E.g. in v2.138f it's perfectly safe to use a variable called el (the
 API internal name for GMarker) because el is a local variable to the
 API. It's not safe to attempt to add a property or method called Qa to
 a marker, like marker.Qa=foo, because that does clash with an existing
 API property (the reference to the GIcon associated with the marker).

 --
 http://econym.org.uk/gmap
 The Blackpool Community Church Javascript Team


 



-- 
Bjorn Brala

GeoStart.nl- Google maps - Swis Webdesign

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Maps API will not work in a table

2008-12-11 Thread osyria .com
try it like this



p style=text-align: center; mce_style=text-align: center;font
color=#80 face=tahoma,arial,helvetica,sans-serif size=3page name
|| name City/fontfont color=#80br mce_bogus=1/font/pp
/p
center

center
iframe--

center


On Thu, Dec 11, 2008 at 8:20 AM, [EMAIL PROTECTED]
[EMAIL PROTECTED]wrote:


 On Dec 10, 3:50 pm, CJ [EMAIL PROTECTED] wrote:
  I can not get my map to center when I have it in an HTML table, but if
  I take it out it works fine, Any Ideas?

 Post a link to your map. You are doing something wrong (probably
 putting not just your map in the table, but the script that creates it
 also, or maybe you have invalid html).

  -- Larry
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: J2SE Desktop App

2008-12-11 Thread bsbi...@googlemail.com

Hi,

I can use somelike JDIC browser to do this

https://jdic.dev.java.net/

thanks everyone!

On Dec 11, 11:18 am, Martin [EMAIL PROTECTED] wrote:
 Whether the map is hosted online or within the application, a
 embedding a browser control is still the way to go i think.

 How else will an application handle the javascript API and
 requirements for HTML rendering?

 Martin.

 On 11 Dec, 09:47, Mike Williams [EMAIL PROTECTED] wrote:

  Wasn't it ProbablyMike who wrote:

  You cannot use the free Google Map API with desktop applications.

  Any map you create HAS to be on a freely accessible public website.

  That's no longer true. The Terms now allow desktop applications as long
  as you provide a publicly accessible webpage from which it can be
  downloaded for free.

 http://code.google.com/intl/iw/apis/maps/faq.html#tos_nonweb

  --http://econym.org.uk/gmap
  The Blackpool Community Church Javascript Team

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Maps API will not work in a table

2008-12-11 Thread warden [Andrew Leach - Maps API Guru]

On Dec 11, 2:19 pm, osyria .com [EMAIL PROTECTED] wrote:
 try it like this

 p style=text-align: center; mce_style=text-align: center;font
 color=#80 face=tahoma,arial,helvetica,sans-serif size=3page name
 || name City/fontfont color=#80br mce_bogus=1/font/pp
 /p
 center

Do bear in mind that center is an alias for div align=center and
should have a /center closing tag. Not closing tags correctly is the
principle cause of maps not centring correctly.

However, I believe what we are talking about here is that the centre-
point of the map is not at the centre-point of the div. We're not
talking about centring the div itself in the page.

Thus it's likely that the content of a table element is being
changed before the parser has encountered /table.

Andrew
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Maps API will not work in a table

2008-12-11 Thread geocode...@gmail.com

On Dec 11, 6:19 am, osyria .com [EMAIL PROTECTED] wrote:
 try it like this

 p style=text-align: center; mce_style=text-align: center;font
 color=#80 face=tahoma,arial,helvetica,sans-serif size=3page name
 || name City/fontfont color=#80br mce_bogus=1/font/pp
 /p
 center

 center
 iframe--

 center


Well that won't work.  It is not valid. Perhaps if you posted a link
we could help.


 On Thu, Dec 11, 2008 at 8:20 AM, [EMAIL PROTECTED]
 [EMAIL PROTECTED]wrote:



  On Dec 10, 3:50 pm, CJ [EMAIL PROTECTED] wrote:
   I can not get my map to center when I have it in an HTML table, but if
   I take it out it works fine, Any Ideas?

  Post a link to your map. You are doing something wrong (probably
  putting not just your map in the table, but the script that creates it
  also, or maybe you have invalid html).

   -- Larry
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: When will 'sensor=true/false' be mandated

2008-12-11 Thread Esa

The example code of API key signup does not contain sensor parameter
yet.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Maps API will not work in a table

2008-12-11 Thread osyria .com
i do it here
and i think it work for me
see this
http://www.o-syria.com/os/latakia/

On Thu, Dec 11, 2008 at 4:25 PM, [EMAIL PROTECTED]
[EMAIL PROTECTED]wrote:


 On Dec 11, 6:19 am, osyria .com [EMAIL PROTECTED] wrote:
  try it like this
 
  p style=text-align: center; mce_style=text-align: center;font
  color=#80 face=tahoma,arial,helvetica,sans-serif size=3page
 name
  || name City/fontfont color=#80br mce_bogus=1/font/pp
  /p
  center
 
  center
  iframe--
 
  center


 Well that won't work.  It is not valid. Perhaps if you posted a link
 we could help.

 
  On Thu, Dec 11, 2008 at 8:20 AM, [EMAIL PROTECTED]
  [EMAIL PROTECTED]wrote:
 
 
 
   On Dec 10, 3:50 pm, CJ [EMAIL PROTECTED] wrote:
I can not get my map to center when I have it in an HTML table, but
 if
I take it out it works fine, Any Ideas?
 
   Post a link to your map. You are doing something wrong (probably
   putting not just your map in the table, but the script that creates it
   also, or maybe you have invalid html).
 
-- Larry
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Directions / Info Window

2008-12-11 Thread trice22

Hello,

GEvent.addListener(directions,load, function() {
// Kill the existing API GDirections listener
GEvent.clearListeners(directions.getMarker(0),click);
// Add your listener
GEvent.addListener(directions.getMarker(0), click, function() {
alert(Click on Marker);
directions.getMarker(0).openInfoWindowHtml('pText here and 
here/
p');
});
});

The alert Click on Marker shows up fine, the info window doesn't
open but the blowup instead.
Overriding the API's some seems to happen too early. Starting to
think that a timeout will be my only chance here…

Thanks,
—trice

On Dec 11, 4:01 pm, Mike Williams [EMAIL PROTECTED] wrote:
 Wasn't it trice22 who wrote:

        directions.load(from: Address 1 to: Address 2);
        GEvent.addListener(directions.getMarker(0), click, function()

 GDirections is asynchronous.

 directions.getMarker(0) doesn't work until after a successful reply has
 been received.

 Try:
   GEvent.addListener(directions,load, function() {
     // Kill the existing API GDirections listener
     GEvent.clearListeners(directions.getMarker(0),click);
     // Add your listener
     GEvent.addListener(directions.getMarker(0), click, function() {
       directions.getMarker(0).openInfoWindowHtml('pText here and
 here/p');
     });
   });

 [You probably don't really need to kill the existing listener, if you
 don't your info window will probably overwrite the one created by the
 API fast enough that the user won't notice it.]

 --http://econym.org.uk/gmap
 The Blackpool Community Church Javascript Team
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: I'm drowning in extraneous mouseover events!!! HELP...

2008-12-11 Thread Chris

OK the link is working, someone please check out this link to my app:
http://www2.freecause.net/~ccoletta/pinurself/ten_thousand_marker_test.html

The main problem is a can't get my app to register a click before
either a mouseover or a mouseout event comes down on top of it and
does something else.

The desired behavior is supposed to be this:

1. Hover over a pink box, and you get a pop-up info window with a name
of a city in a number. (For convenience I made a debug div tag with
the id HOVERSTATUS that should output the word OVERRR )
2. On mouseout the city info window is supposed to disappear. (For
convenience the debug HOVERSTATUS div should output OUT)
3. On click, a different info window is supposed to popup containing
the words CLICK NOT HOVER (the div should then contain the word
CLICK)

Instead this is the behavior that is happening:
1. Hover over a pink box and let the mouse come to a stop and the city
name with a number should appear. OK so far...
2. Move the mouse a little bit while still hovering over the pink box,
and the info window will flash as the debug div will indicate out and
over events being triggered... Undesirable but I can live with
this
3. But here's the show stopper, click on a pin, and immediately one of
the other events comes along and drowns it out the click event. I know
that the click event is registering, because when i used a setTimeout
call to delay the hover events, the click event behavior appears
before the timeout hover behavior.

I need to get these clicks events working without being hampered by
the hover events... any suggestions?

On Dec 9, 3:20 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 On Dec 9, 11:06 am, Chris [EMAIL PROTECTED] wrote:

  The server at work is down.

  Thanks so much for trying.

  Once the server is back up again, should I repost the message?

 You can reply with additional information, no need for a new thread.



  On Dec 9, 3:46 am, ProbablyMike [EMAIL PROTECTED] wrote:

   That page isn't working at all.
   I gave up waiting after a minute, and nothing had loaded, just a blank
   browser window...- Hide quoted text -

  - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Directions / Info Window

2008-12-11 Thread trice22

The timeOut works but not very nicely:

var t = setTimeout(function()
{
GEvent.addListener(directions.getMarker(0), click, function() {
directions.getMarker(0).openInfoWindowHtml('pText here and 
here/
p');
});
}, 500);  // e.g. 100 seems to be to short

The blowUp shows up for a split second and is then replaced by the
info window.
There has to be a better way to handle this, no?

—trice



On Dec 11, 4:53 pm, trice22 [EMAIL PROTECTED] wrote:
 Hello,

 GEvent.addListener(directions,load, function() {
         // Kill the existing API GDirections listener
         GEvent.clearListeners(directions.getMarker(0),click);
         // Add your listener
         GEvent.addListener(directions.getMarker(0), click, function() {
                 alert(Click on Marker);
                 directions.getMarker(0).openInfoWindowHtml('pText here and 
 here/
 p');
         });

 });

 The alert Click on Marker shows up fine, the info window doesn't
 open but the blowup instead.
 Overriding the API's some seems to happen too early. Starting to
 think that a timeout will be my only chance here…

 Thanks,
 —trice

 On Dec 11, 4:01 pm, Mike Williams [EMAIL PROTECTED] wrote:

  Wasn't it trice22 who wrote:

         directions.load(from: Address 1 to: Address 2);
         GEvent.addListener(directions.getMarker(0), click, function()

  GDirections is asynchronous.

  directions.getMarker(0) doesn't work until after a successful reply has
  been received.

  Try:
    GEvent.addListener(directions,load, function() {
      // Kill the existing API GDirections listener
      GEvent.clearListeners(directions.getMarker(0),click);
      // Add your listener
      GEvent.addListener(directions.getMarker(0), click, function() {
        directions.getMarker(0).openInfoWindowHtml('pText here and
  here/p');
      });
    });

  [You probably don't really need to kill the existing listener, if you
  don't your info window will probably overwrite the one created by the
  API fast enough that the user won't notice it.]

  --http://econym.org.uk/gmap
  The Blackpool Community Church Javascript Team
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



How do i remove a marker from a map?

2008-12-11 Thread Eran

I put a marker on the map ,which i want to remove when a buttun is
clicked.
How do i do that?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Directions / Info Window

2008-12-11 Thread geocode...@gmail.com

On Dec 11, 6:58 am, trice22 [EMAIL PROTECTED] wrote:
 The timeOut works but not very nicely:

 var t = setTimeout(function()
 {
         GEvent.addListener(directions.getMarker(0), click, function() {
                 directions.getMarker(0).openInfoWindowHtml('pText here and 
 here/
 p');
         });

 }, 500);  // e.g. 100 seems to be to short

 The blowUp shows up for a split second and is then replaced by the
 info window.
 There has to be a better way to handle this, no?

Link?


 —trice

 On Dec 11, 4:53 pm, trice22 [EMAIL PROTECTED] wrote:

  Hello,

  GEvent.addListener(directions,load, function() {
          // Kill the existing API GDirections listener
          GEvent.clearListeners(directions.getMarker(0),click);
          // Add your listener
          GEvent.addListener(directions.getMarker(0), click, function() {
                  alert(Click on Marker);
                  directions.getMarker(0).openInfoWindowHtml('pText here 
  and here/
  p');
          });

  });

  The alert Click on Marker shows up fine, the info window doesn't
  open but the blowup instead.
  Overriding the API's some seems to happen too early. Starting to
  think that a timeout will be my only chance here…

  Thanks,
  —trice

  On Dec 11, 4:01 pm, Mike Williams [EMAIL PROTECTED] wrote:

   Wasn't it trice22 who wrote:

      directions.load(from: Address 1 to: Address 2);
      GEvent.addListener(directions.getMarker(0), click, function()

   GDirections is asynchronous.

   directions.getMarker(0) doesn't work until after a successful reply has
   been received.

   Try:
     GEvent.addListener(directions,load, function() {
       // Kill the existing API GDirections listener
       GEvent.clearListeners(directions.getMarker(0),click);
       // Add your listener
       GEvent.addListener(directions.getMarker(0), click, function() {
         directions.getMarker(0).openInfoWindowHtml('pText here and
   here/p');
       });
     });

   [You probably don't really need to kill the existing listener, if you
   don't your info window will probably overwrite the one created by the
   API fast enough that the user won't notice it.]

   --http://econym.org.uk/gmap
   The Blackpool Community Church Javascript Team
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



GClientGeocoder.getLocations

2008-12-11 Thread Russ

Hi, I have a website which helps patients find dialysis centres at
their travel destination worldwide. I have already geocoded the
addresses as best I can, so they all have a lat + long.

I'm working on a form for users to enter their travel destination,
geocode the destination, then list the top 10 dialysis centres nearest
the destination. Which I think I can do.

But what I need is to suggest the destination name, for example if
they enter London then display a list of possible destinations -
London UK, London US, London Canada etc.

I'm guessing I need to use GClientGeocoder.getLocations but I'm not
sure what code to use? What should be in the query? The callback
function? and how do I parse the results?

Thanks, Russ.

http://www.globaldialysis.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: How do i remove a marker from a map?

2008-12-11 Thread geocode...@gmail.com

On Dec 11, 6:59 am, Eran [EMAIL PROTECTED] wrote:
 I put a marker on the map ,which i want to remove when a buttun is
 clicked.
 How do i do that?

http://code.google.com/apis/maps/documentation/reference.html#GMap2.GMap2.removeOverlay
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: GClientGeocoder.getLocations

2008-12-11 Thread Rossko

Have a look at Mike's great tutorial, in particular -
   http://econym.org.uk/gmap/didyoumean.htm

cheers, Ross K

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Directions / Info Window

2008-12-11 Thread trice22

Sorry, no link yet.
But a (quite tricky) solution:

function initialize()
{
map = new GMap2(document.getElementById(map_canvas));
map.setCenter(new GLatLng(66.00,33.00), 15);
map.addControl(new GSmallMapControl());

getDirections ('Address 1', 'Address 2');
}

function getDirections (fromAddr, toAddr)
{
var panel= document.getElementById(panel);
directions = new GDirections(null, panel);
directions.load(from:  +fromAddr+  to: +toAddr, { getPolyline:
true, preserveViewport: false } );
GEvent.addListener(directions,'load', showDirections);
}

function setMarkers()
{
var startMarker = new GMarker(directions.getMarker(0).la);
var endMarker = new GMarker(directions.getMarker(1).la)
map.addOverlay(startMarker);
map.setCenter(startMarker.la, 12);
map.addOverlay(endMarker);

GEvent.addListener(startMarker, click, function() {
startMarker.openInfoWindowHtml('pThis is the start 
point./p');
});

GEvent.addListener(endMarker, click, function() {
endMarker.openInfoWindowHtml('pThis is the end point./p');
});

}

function showDirections()
{
setMarkers();
var points = [];
var poly = directions.getPolyline();
for (var i = 0; i  poly.getVertexCount(); i++) {
points[i] = poly.getVertex(i);
}
var mypoly = new GPolyline(points, #ff, 3, 1);
map.addOverlay(mypoly);

}

$(window).ready(function()
{
initialize();
});


It's not too nice an by no means finished but works.
Thanks for all your help!

—trice


On Dec 11, 5:13 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 On Dec 11, 6:58 am, trice22 [EMAIL PROTECTED] wrote:

  The timeOut works but not very nicely:

  var t = setTimeout(function()
  {
          GEvent.addListener(directions.getMarker(0), click, function() {
                  directions.getMarker(0).openInfoWindowHtml('pText here 
  and here/
  p');
          });

  }, 500);  // e.g. 100 seems to be to short

  The blowUp shows up for a split second and is then replaced by the
  info window.
  There has to be a better way to handle this, no?

 Link?



  —trice

  On Dec 11, 4:53 pm, trice22 [EMAIL PROTECTED] wrote:

   Hello,

   GEvent.addListener(directions,load, function() {
           // Kill the existing API GDirections listener
           GEvent.clearListeners(directions.getMarker(0),click);
           // Add your listener
           GEvent.addListener(directions.getMarker(0), click, function() {
                   alert(Click on Marker);
                   directions.getMarker(0).openInfoWindowHtml('pText here 
   and here/
   p');
           });

   });

   The alert Click on Marker shows up fine, the info window doesn't
   open but the blowup instead.
   Overriding the API's some seems to happen too early. Starting to
   think that a timeout will be my only chance here…

   Thanks,
   —trice

   On Dec 11, 4:01 pm, Mike Williams [EMAIL PROTECTED] wrote:

Wasn't it trice22 who wrote:

       directions.load(from: Address 1 to: Address 2);
       GEvent.addListener(directions.getMarker(0), click, function()

GDirections is asynchronous.

directions.getMarker(0) doesn't work until after a successful reply has
been received.

Try:
  GEvent.addListener(directions,load, function() {
    // Kill the existing API GDirections listener
    GEvent.clearListeners(directions.getMarker(0),click);
    // Add your listener
    GEvent.addListener(directions.getMarker(0), click, function() {
      directions.getMarker(0).openInfoWindowHtml('pText here and
here/p');
    });
  });

[You probably don't really need to kill the existing listener, if you
don't your info window will probably overwrite the one created by the
API fast enough that the user won't notice it.]

--http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: the question of Firefox cross site domain

2008-12-11 Thread Rainman

Hi David,

The proxy is quite simple once you grasp the concept.  As you can see
in my code, I point the GDownloadURL to a PHP script (the proxy).  The
PHP script runs on the server side so it gets around the issue that
JavaScript has with cross-domain access restrictions.  The PHP script
simply pulls the XML data off the cross-domain URL and loads it into
memory so it can dump the data back out to JavaScript in your browser
and the GDownloadURL script can process the XML data as if you had
done it in the browser.  I can say as a novice programmer it took me a
little while to get the scripts to do exactly what I was looking for
but the community here really helped me out.

In your script, if you replace example4.xml in the GDownloadURL with
xmlproxy.php and then put this code in a file called xmlproxy.php in
the same directory as your html file it would work (assuming your
script was set up to process the elements correctly).

?php

$url = http://www.google.com/ig/api?weather=61801;;

//fetch XML feed from posted url
$ch = curl_init();
$timeout = 60;
$userAgent = $_SERVER['HTTP_USER_AGENT'];
$header[] = Content-type: text/xml;

curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, $header );
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);

$response = curl_exec($ch);

if (curl_errno($ch)) {
// write error to log file
} else {
curl_close($ch);
echo $response;
}
?

The problem with the URL you are using is that it doesn't return lat
and long coordinates, at least when I tried they were empty strings.
If you give me an example URL that returns XML data with lat/longs I
could set up a demo.

Hope this helps,
Chad

On Dec 10, 5:20 pm, David Miao [EMAIL PROTECTED] wrote:
 Dear Chad,

 I appreciate your suggestion very much. Your program runs perfect. Do
 you know how to use javascript to read xml data from different sitefirefox? 
 Larry suggests me to useproxy. I still do not know how to do
 it. Thank you very much for your help.

 Best, David

 On Dec 9, 4:47 pm, Rainman [EMAIL PROTECTED] wrote:



  David,

  I am doing similar calls on my site and I found (with much help from
  this community) that a very simple PHP script as aproxysolved my
  problems.

  Here is my map:http://www.udfcd.org/FWP/LDAD/gmap.html

  If you click on the Archived ALERT tab and click Update Map with the
  default options you will see it in action.

  I use the this, 'GDownloadUrl(xmlproxy.php?type=rainarchiveME= + ME
  + DE= + DE + YE= + YE+ HE= + HE, function(data)' instead of a
  direct call to the XML file.  I pass the date and time variable
  information from the HTML form to the javascript function and let the
  PHP script do the legwork for reading the XML file and storing it
  locally.

  Here is the relevent part of the PHP script:
  ?php
  if ($_GET['type'] == rainarchive) {
          $url = http://alert2.udfcd.org/cgi-bin/reportgen.new?TPT=tpt/
  xml_rain.tptCFG=lst/fslrain.lstTIM=tim/xml_rain.timYE= . $_GET
  ['YE'] . ME= . $_GET['ME'] . DE= . $_GET['DE'] . HE= . $_GET
  ['HE'];}

  //fetch XML feed from posted url
  $ch = curl_init();
  $timeout = 60;
  $userAgent = $_SERVER['HTTP_USER_AGENT'];
  $header[] = Content-type: text/xml;

  curl_setopt($ch, CURLOPT_URL, $url);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_HTTPHEADER, $header );
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
  curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
  curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);

  $response = curl_exec($ch);

  if (curl_errno($ch)) {
      $fl=fopen($logfile, w);
      fwrite($fl, curl_error($ch) .  url:  . $url); //write contents
  of error to log file
      fclose($fl);} else {

      curl_close($ch);
      echo $response;}

  ?

  I'm a weekend programmer and I was able to get this working for me
  with the help of this group.

  If others see a better way to do this I'm open to suggestions as well.

  Good luck!
  Chad

  On Dec 8, 8:19 am, David Miao [EMAIL PROTECTED] wrote:

   Dear larry and all,

   I appreciate very much your valuable suggestions. Could you please
   give me more detail suggestions how to modify my code if using Json to
   call the xml data from the url http://www.google.com/ig/api?
   weather=61801? since I am not very familar with network stuff. With
   view source, you can see the code 
   fromhttp://abe-research.illinois.edu/Faculty/grift/Research/EBI/xhr-reque
   I thank you again for your help. Have a good day!

   Sincerely,

   David

   On Dec 8, 12:37 am, [EMAIL PROTECTED] [EMAIL PROTECTED]
   wrote:

On Dec 7, 7:10 pm, David Miao [EMAIL PROTECTED] wrote: Dear 
Sir/Madam,

 I am asking for help to solve the question ofFirefoxcross site
 domain. I am trying to develop a simple program to show weather info
 on my map. I modified the program from Mr. 

Re: gmail and Google Maps interface

2008-12-11 Thread Rossko

I suppose its worded a bit differently from your last thread
  
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/c01fcd17e00ef3b2/701d64a03b8e37d0#701d64a03b8e37d0

Question ; do want to create something yourself, using the Google Maps
API (the topic of this group) or are you looking for some ready-made
solution that uses Google Maps (the topic of that group -
   http://groups.google.com/group/Google-Maps

How would you grant this 'something' access to your email account, you
might need to think about before looking for some web-based solution.

If you told us what you were really trying to do it may help ... do
these emails come from another service, are you able to obtain the
data by a different route, say by requesting JSON or something?

cheers, Ross K

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Add an Search function. Look for the Markers in my XML file

2008-12-11 Thread Rossko

This is basic 'using a database' stuff.   Exact details depend on the
database you're using, that you didn't mention.  But you might want to
look into something like
  SELECT somestuff FROM mytable WHERE name='usersuppliedname'

cheers, Ross K

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Add an Search function. Look for the Markers in my XML file

2008-12-11 Thread daddyyankeee

Thanks for your reply Ross,

i didn`t think of that. By the way i`m using phpmyadmin /sql as
database  BUT  when there`s a hit for that name i have to place a
marker how do i do that?
My first intention was like

   function searchRestaurant() {
 var name= document.getElementById('name').value;{
 searchRestaurantName(name);
}


funtion seachRestaurantName ()
   var searchUrl = 'phpsqlsearch_genxml.php?name=' + name;
 GDownloadUrl(searchUrl, function(data) {
   var xml = GXml.parse(data);
   var markers = xml.documentElement.getElementsByTagName
('marker');
//searching in the array//
for (var i = 0; i  markers.length; i++) {
  if (markers.length == 0) {
 sidebar.innerHTML = 'No results found.';
 map.setCenter(new GLatLng(40, -100), 4);
 return;
   }
else {
// markersArray.push(marker);
return marker
}

But this doesnt seem to work
can someone please give some direction if i`m on the right track?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: applying Douglas-Peuker or other to shp file

2008-12-11 Thread bratliff

On Dec 10, 6:32 pm, maps.huge.info [Maps API Guru]
[EMAIL PROTECTED] wrote:
 Mike,

 The problem with D-P and common borders is due to the direction the
 algorithm takes when simplifying the border. For neighboring polygons,
 the algorithm will go in opposite directions for every common line.
 You can see this yourself by just tracing the border with your finger
 around one polygon, then do the same with its neighbor. D-P will
 calculate different simplification results depending on where it
 starts, so slivers and other issues are inevitable. The only way
 around this, and it can be done, is to determine common borders, break
 them into lines, simplify them one at a time, reassemble the polygons,
 check for invalid results (crossing lines, etc.), fix those and you're
 done. Sounds easy, doesn't it?

 While it does sound daunting, if you start with the base geometry, the
 Tiger edges shapefile, and simplify that before building the edges
 into larger shapes, the results are easier to deal with.

 -John Coryat

 http://maps.huge.info

 http://www.usnaviguide.com

Hi Mike  John,

Essentially, I agree with one small difference.  Except for ties, D-P
is symmetrical in the forward  reverse direction if the same set of
pivot points is used.  Unfortunately, D-P was designed for polylines
not for polygons.  A closed loop has neither a beginning nor end.
Choosing an initial point is arbitrary.  Whatever your choice, the
first split will occur at a remote point diametrically opposite the
first point.  D-P will continue to reduce both halves of a common
boundary using a different set of pivots.

I have reduced states  counties to their common boundary line
segments.  I have applied a less rigorous smoothing algorithm than D-P
but it does give good results.  It is not influenced by initial point
selection.  It is done in a single pass rather than recursively like D-
P.  I will be happy to explain it in detail.

The results can be seen with:

www.polyarc.us/polybuilder

Eliminating common boundaries reduces the size of the point definition
file by half.  I am using a home grown (run length encoding)
compression scheme to further shrink the file size.  It is pixel based
rather than Lat/Lon based.  Unlike the API, it does not require a zoom
level string.  The JS file contains both the compressor  the
decompressor.  I explained it in one of my posts several months ago.

I left in some debugging stuff to try to demonstrate a bug to Pamela.
The bug still exists but I have found a way around it.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Auto Tile Cutter creating 3x3 tile set

2008-12-11 Thread maps.huge.info [Maps API Guru]

I'm not familiar with that tile cutter, but I am familiar with the
tiling system of the API. I would postulate that the problem lies in
the tile cutter rather than the API as the API works perfectly
(nothing works perfectly!) for tiles constructed and named properly
from zoom 0 on. There can only be one tile at zoom 0, tile 0-0. Any
naming convention that creates more than a single tile is either
flawed or perhaps you've set a parameter wrong.

Hope that helps.

-John Coryat

http://maps.huge.info

http://www.usnaviguide.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: How do I calculate coordinates of the corner of a static map?

2008-12-11 Thread bratliff

On Dec 10, 7:04 pm, Hari Shenoy [EMAIL PROTECTED] wrote:
 I am working on overlaying data over a static google map.

 However, for placing the other information on top of the map, I need
 to specify the corner coordinates.

 here is the link to my 256*256 map.

 http://maps.google.com/staticmap?center=47.5831595,-122.292939zoom=1...

  Given the center coordinates:
  lat - 47.5831595
  long - 122.292939

 and also the fact that I have the size in pixels given (256*256) how
 can I get coordinates for the top left and bottom right corners of
 this map?

  thanks,
  Hari

Check out the BBox function of:

www.polyarc.us/adjust.js

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



distance calculation formula

2008-12-11 Thread yolf

anybody knows the distance calculation formula which uses Google in
maps api?
JavaScript:
pline = polylineEncoder.dpEncodeToGPolyline(verts);
map.addOverlay(pline);
pLen = parseFloat(pline.getLength());
I need to do the same, but in php code.
I tried this way:
-
$path = 0;
for($i=0;$isizeof($traceMv)-1;++$i)
{
$lon1 = $traceMv[$i]['longitude'];
$lat1 = $traceMv[$i]['latitude'];
$lon2 = $traceMv[$i]['longitude'];
$lat2 = $traceMv[$i+1]['latitude'];

$line = floatval(substr(111.2*acos(sin($lat1) * sin($lat2) + cos
($lat1) * cos($lat2) * cos($lon2-$lon1)),0,10));
$path += $line;
}
$path = round($path,3);
-
Sometimes it works, but doesn't match google's a bit. And sometimes
result is unexpected:
google's result: 408 meters
php: 23 km 103 m

Rows in $traceMv have such structure:
id, latitude, longitude.

Help please
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: 'Parameters' in infowindow is it possible?

2008-12-11 Thread daniel

Thank you for the replies.

I am aware of the map being lower than the checkboxes.  It is mainly
like that due to all the designers at the University have access to
the map and all have their own opinions of how it should look.

Mike,

I understand that they are the same, and the link works  great if I
add it into the infowindowhtml(address + 'a href=..'

But when I add it to the xml file it doesn't load that icon any
longer.

marker  name=Crisp Hall Lab address=Where: Room 215 url='lt;a
href=http://150.201.32.54:8080/public/public.swf?
map_id=1lab_id=4srv=http://150.201.32.54:8080gt;Computer
Availabilitylt;/agt;' img='lt;img src=img/VT_Crisp.jpg gt;'
lng=-89.529031 lat=37.313225 category=computing /


Maybe I had overlooked something, but looking at the url this is how I
see it:
a href=http://150.201.32.54:8080/public/public.swf?
map_id=1lab_id=4srv=http://150.201.32.54:8080;Computer
Availability/a

I was thinking of only keeping the url (http://www.semo.edu/) in the
xml file then concatenating the other needed parts to make it a
link.

Thanks.

On Dec 11, 3:58 am, Mike Williams [EMAIL PROTECTED] wrote:
 The only difference between that and the existing links to things like
 http://www.semo.edu/; that you already use in your map. Just remember
 to keep being careful with quote types and line breaks.

 --http://econym.org.uk/gmap
 The Blackpool Community Church Javascript Team
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Area code mapping

2008-12-11 Thread bratliff

On Dec 10, 7:18 pm, MapDaData [EMAIL PROTECTED] wrote:
 Greetings!  I'm working with one of our developers to create a map
 that will show various marketing data on a map delineated into sales
 reps territories.  Territories are designated by area codes.  I can't
 find any lat/long data for area codes, so we tried using zip codes but
 it just bogs the browser down. Could probably buy data from third-
 party, but not really in the budget.

 Has anyone tackled this type of problem already?  Any help greatly
 appreciated.

Aren't gerrymandered area codes rather meaningless today ?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



ClusterManager script

2008-12-11 Thread qFox

I've taken the ClusterMarker script from Martin Pearman (http://
googlemapsapi.martinpearman.co.uk/articles.php?cat_id=1) but was not
happy (enough) with it so I rewrote it from scratch. It's basically
the same idea except there's more and better caching because his
original script would recompute and replot the clusters any time you
moved anything.

Anyways, hope it helps somebody. You can find the project at http://cm.qfox.nl

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: distance calculation formula

2008-12-11 Thread warden [Andrew Leach - Maps API Guru]

On Dec 11, 4:08 pm, yolf [EMAIL PROTECTED] wrote:
 $line = floatval(substr(111.2*acos(sin($lat1) * sin($lat2) + cos
 ($lat1) * cos($lat2) * cos($lon2-$lon1)),0,10));

A couple of things come to mind:
- you need to ensure that you're using radians for cos and sin to work
correctly (you may be, the code snippet doesn't make it clear)
- where does 111.2 come from?

You may want to use the haversine formula on each line segment. It's
given at http://www.movable-type.co.uk/scripts/latlong.html among
other places.

Andrew
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: 'Parameters' in infowindow is it possible?

2008-12-11 Thread Mike Williams

Why didn't you say that in the first place instead of messing us about.

I've got half a mind to not bother explaining the obvious mistake you 
made there.

-- 
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: distance calculation formula

2008-12-11 Thread Mike Williams

Wasn't it yolf who wrote:
   $lon1 = $traceMv[$i]['longitude'];
   $lat1 = $traceMv[$i]['latitude'];
   $lon2 = $traceMv[$i]['longitude'];

It looks like your $lon2 is always the same as $lon1. That can't be 
right. Perhaps you're missing a +1.

-- 
http://econym.org.uk/gmap
The Blackpool Community Church Javascript Team


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: from lat, lon, zoom to x y ???

2008-12-11 Thread bratliff

The file

www.polyarc.us/adjust.js

contains Mercator projection conversions without the API.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: the question of Firefox cross site domain

2008-12-11 Thread bratliff

Using JSON without a proxy (two hops per round trip) is much more
efficient than using XML with a proxy (four hops per round trip).
Also, JSON is much more concise than XML.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: 'Parameters' in infowindow is it possible?

2008-12-11 Thread Rossko

Hint -
http://articles.techrepublic.com.com/5100-10878_11-5032714.html
'Beware of the ampersand when using XML'


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: make a marker always appear on top of another

2008-12-11 Thread Dave Llorens

Apparently I suck at googling.  I tried pretty hard, and bang, there
it is.  Thanks!

On Dec 10, 10:45 pm, Mike Williams [EMAIL PROTECTED] wrote:
 Normally, the most southern marker will be on top, irrespective of the
 icon type. If you require any other behaviour you need to use
 {zIndexProcess}.

 See:http://econym.org.uk/gmap/zindex.htm

 --http://econym.org.uk/gmap
 The Blackpool Community Church Javascript Team
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Making the tileoverlay refresh function work?

2008-12-11 Thread DeirdreH

Website here:
http://www.lakecountypassage.com/index3.html

We have a wms server providing map tiles to overlay on a Google base
map. These tiles reflect current congestion data, and that data is
updated about every 2 minutes.

About every 2 minutes, we have a periodic Ajax function that requests
updated incident/roadwork/har data from the server. That response
sends us a js fragment with the new icon array, a call to update the
icons, and a call to our tile refresh function. I see it hit our
refresh function, which calls the google-provided refresh on the tile
overlay. And . . . according to both Firebug and my packet sniffer,
nothing happens.  These tiles have the cache-control header provided
by geoserver, (Cache-Controlmax-age=0, must-revalidate). They do not
have the older pragma no-cache header because I have been unable to
work out a way to make it happen.

If I add a random number to the tile request, we do get refreshed
tiles. But, the memory leak caused by big image files heading into the
cache (of both IE7 and FF2) every 2 minutes kills the browser in about
an hour on your standard desktop. One of our requirements is that this
page needs to remain open  updating indefinitely.

Am I using the tileoverlay refresh command incorrectly? Is there
anyway to make IE and FF update these tiles without making the browser
think that it's a different filename each time around?

Thanks,
Deirdre

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re:Hello, How are you doing recently?

2008-12-11 Thread AKHIL GOYAL
*Hello, How are you doing recently?
 I would like to introduce you a great company which i knew from other
website.Their website is  **www.dsg-trade.com* http://www.dsg-trade.com/*
.They can offer you all kinds of electronical products which you need like
laptops ,gps ,TV LCD,cell phones,ps3,MP3/4,motorcycles  etc...Please
take some time to have a check ,there must be somethings you 'd like to
purchase .The Christmas is coming!There are kinds of products for presenting
for you. Go to their website, you must get a pleasant surprise.now the
compay have concession activities,all of our products are sold in wholesale
price for 15 days.*
*The contact email:  **dsgtrade_2...@188.com* dsgtrade_2...@188.com*  MSN:
**trade...@hotmail.com/trade-...@hotmail.com*trade...@hotmail.com/trade-...@hotmail.com
*Enjoy your shopping and enjoy your time.
Regards*

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: J2SE Desktop App

2008-12-11 Thread Neil.Young


Mike Williams schrieb:
 Wasn't it ProbablyMike who wrote:

   
 You cannot use the free Google Map API with desktop applications.

 Any map you create HAS to be on a freely accessible public website.
 

 That's no longer true. The Terms now allow desktop applications as long 
 as you provide a publicly accessible webpage from which it can be 
 downloaded for free.

 http://code.google.com/intl/iw/apis/maps/faq.html#tos_nonweb

   
This is slightly contrary to what pamela said earlier (browser control 
is OK). If it is allowed to use GM with a browser control, than the 
pages MUST not be hosted locally. Is that right?

Regards



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: from lat, lon, zoom to x y ???

2008-12-11 Thread Neil.Young

Bratliff, your JS style is brillant, but what is that offset=268435456 
in terms of earth geometry? Just curious.
Regards


bratliff schrieb:
 The file

 www.polyarc.us/adjust.js

 contains Mercator projection conversions without the API.

 

   

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



highlight street - time surface

2008-12-11 Thread Tanguy

Hi,

can you tell me if there are functions to:

1 / if I click on a street, highlight the entire street.

2 / from a point, draw a bounding surface all points accessible within
a maximum limit time. Example: an area covering all points in a radius
of one hour thirty.

Thank you in advance.

This issue has been automatically translated from French.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Making the tileoverlay refresh function work?

2008-12-11 Thread bratliff

DeirdreH wrote:
 Website here:
 http://www.lakecountypassage.com/index3.html

 We have a wms server providing map tiles to overlay on a Google base
 map. These tiles reflect current congestion data, and that data is
 updated about every 2 minutes.

 About every 2 minutes, we have a periodic Ajax function that requests
 updated incident/roadwork/har data from the server. That response
 sends us a js fragment with the new icon array, a call to update the
 icons, and a call to our tile refresh function. I see it hit our
 refresh function, which calls the google-provided refresh on the tile
 overlay. And . . . according to both Firebug and my packet sniffer,
 nothing happens.  These tiles have the cache-control header provided
 by geoserver, (Cache-Control  max-age=0, must-revalidate). They do not
 have the older pragma no-cache header because I have been unable to
 work out a way to make it happen.

 If I add a random number to the tile request, we do get refreshed
 tiles. But, the memory leak caused by big image files heading into the
 cache (of both IE7 and FF2) every 2 minutes kills the browser in about
 an hour on your standard desktop.

It may be memory fragmentation caused by the garbage collector.  I had
a similar thing happening in a flight simulator.  Reallocating
obsolete tiles was counterproductive.  If I rebuilt DOM elements from
scratch, it improved animation performance  eliminated crashes.  I
repeated the operation again every one thousand tiles.

The browser is a black box.  Unfortunately, it provides no indication
of the state of the memory pool.  You may have a lot of little chunks
with nothing large enough for another tile.  It may require an entire
image to fit into a single contiguous chunk.  It may not be smart
enough to combine physically adjacent chunks.  It may use the first
fit rather than the best fit.

Occasionally cleaning house seems to help.  You might try rebuilding
your tile overlays periodically.  A massive infusion of memory into
the garbage collector may force it to reorganize its memory pool.  It
appears to have worked in my case.

 One of our requirements is that this
 page needs to remain open  updating indefinitely.

 Am I using the tileoverlay refresh command incorrectly? Is there
 anyway to make IE and FF update these tiles without making the browser
 think that it's a different filename each time around?

 Thanks,
 Deirdre
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re egeoxml - XML polyline WORKS, KML polygon doesn't

2008-12-11 Thread ashore

Using Mike's great js in both, the polygon file script fails silently
while the other works correctly;  see
  http://www.saefern.org/tickets/test_polyline.php

and
  http://www.saefern.org/tickets/test_polyline.php  - a bit slow, but
it appears.

I've stepped through egeoxml to some extent, and the two files as well
as related threads here, but nothing has jumped out.

This is really just to let me test/debug locally, but getting it to
work wd be a real help.  Thanks for any insights here.

AS
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Auto Tile Cutter creating 3x3 tile set

2008-12-11 Thread Deng

Thanks John - and thanks for your presentation/pdf. I've been
referencing it off and on for the last 2 weeks trying to teach myself
a thing or two.

Maybe this is better suited to the Mapki page, but below is a link to
the PS3 script I'm using. I've tried a few variations here and there
to try and establish a 2x2 set. No luck so far:

http://maps.droppsburgh.com/mapki_tile_carver.txt

Those familiar with the Automatic Tile Carver script from Mapki,
please take a look to see if I've misconfig'd anything.

If the script looks like it should work, and NOT generate a 3x3 tile
set..then I'm baffled.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: highlight street - time surface

2008-12-11 Thread geocode...@gmail.com

On Dec 11, 8:36 am, Tanguy compte.goo...@touraineverte.com wrote:
 Hi,

 can you tell me if there are functions to:

 1 / if I click on a street, highlight the entire street.

 2 / from a point, draw a bounding surface all points accessible within
 a maximum limit time. Example: an area covering all points in a radius
 of one hour thirty.

No there aren't.

  -- Larry
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Making the tileoverlay refresh function work?

2008-12-11 Thread DeirdreH

By removing the overlay and re-creating it? For some reason, I had the
impression that doing that was also problematic for IE--that it didn't
deallocate properly when you removed and recreated a tile layer
overlay. But I guess I am in a position to test that. :)

And talking about destroying/recreating the DOM elements from scratch:
yeah, I was considering say, setting a timer for an hour and if the
page was still open, switching quickly to another page on the site,
then back to the map page, in order trigger the api unload function
and try to clean up the DOM. I'm been hesitating on that approach
because it's going to be a PITA to retain the state from the map page-
other page-map page. Got to make it flexible enough to maintain the
center lat/lon, the zoom level, the options and (if applicable) the
open infowindow. But I have seen issues with the unload function
appearing not to clean up memory either.

Deirdre

On Dec 11, 1:11 pm, bratliff bratl...@umich.edu wrote:
 DeirdreH wrote:
  Website here:
 http://www.lakecountypassage.com/index3.html

  We have a wms server providing map tiles to overlay on a Google base
  map. These tiles reflect current congestion data, and that data is
  updated about every 2 minutes.

  About every 2 minutes, we have a periodic Ajax function that requests
  updated incident/roadwork/har data from the server. That response
  sends us a js fragment with the new icon array, a call to update the
  icons, and a call to our tile refresh function. I see it hit our
  refresh function, which calls the google-provided refresh on the tile
  overlay. And . . . according to both Firebug and my packet sniffer,
  nothing happens.  These tiles have the cache-control header provided
  by geoserver, (Cache-Control   max-age=0, must-revalidate). They do not
  have the older pragma no-cache header because I have been unable to
  work out a way to make it happen.

  If I add a random number to the tile request, we do get refreshed
  tiles. But, the memory leak caused by big image files heading into the
  cache (of both IE7 and FF2) every 2 minutes kills the browser in about
  an hour on your standard desktop.

 It may be memory fragmentation caused by the garbage collector.  I had
 a similar thing happening in a flight simulator.  Reallocating
 obsolete tiles was counterproductive.  If I rebuilt DOM elements from
 scratch, it improved animation performance  eliminated crashes.  I
 repeated the operation again every one thousand tiles.

 The browser is a black box.  Unfortunately, it provides no indication
 of the state of the memory pool.  You may have a lot of little chunks
 with nothing large enough for another tile.  It may require an entire
 image to fit into a single contiguous chunk.  It may not be smart
 enough to combine physically adjacent chunks.  It may use the first
 fit rather than the best fit.

 Occasionally cleaning house seems to help.  You might try rebuilding
 your tile overlays periodically.  A massive infusion of memory into
 the garbage collector may force it to reorganize its memory pool.  It
 appears to have worked in my case.

  One of our requirements is that this
  page needs to remain open  updating indefinitely.

  Am I using the tileoverlay refresh command incorrectly? Is there
  anyway to make IE and FF update these tiles without making the browser
  think that it's a different filename each time around?

  Thanks,
  Deirdre
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: from lat, lon, zoom to x y ???

2008-12-11 Thread Neil.Young



bratliff schrieb:
 On Dec 11, 7:05 pm, Neil.Young neil.yo...@freenet.de wrote:
   
 Bratliff, your JS style is brillant, but what is that offset=268435456
 in terms of earth geometry? Just curious.
 Regards
 

 Thanks but it has also been criticized for the use of local
 functions.  Just trying to keep extra junk out of the global
 namespace.

   
What is wrong with that? It is critical in terms of memory allocation? 
It was very popular in the good old times of Turbo Pascal and Delphi, 
just in order to keep the things a bit more clear (to show, that this 
and that function is required in this and that context only). BTW: I 
learn a lot from your code. I'm not that professional with JS, so 
especially your juggling with JSON objects is very exciting :) And not 
to forget your polygon hint lately... Very cool. Keep on doing this!
 The offset (25620) is half the circumference of the Earth in pixels
 at zoom level 21.  It is used to move the origin from the prime
 meridian to the international date line.  In the case of a sphere, the
 radius can be factored out.  In the case of an ellipsoid, it is
 required.
   
Ah. Thanks a lot. For now I just knew the Google kind of making the 
projection (the array of bitmap center coords for a given zoom level 
combined with the same math, you know?). Thanks for making that clear.

Regards

 

   

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Making the tileoverlay refresh function work?

2008-12-11 Thread bratliff

On Dec 11, 7:37 pm, DeirdreH deird...@gmail.com wrote:
 By removing the overlay and re-creating it? For some reason, I had the
 impression that doing that was also problematic for IE--that it didn't
 deallocate properly when you removed and recreated a tile layer
 overlay. But I guess I am in a position to test that. :)

IE is unable to unwind circular references in the DOM.  If you have no
circular references, I believe the garbage collector will work without
memory leaks.

You might reconstruct an IFRAME with your state information in the
parent frame.  Except for the prospect of memory leaks, you might
alternate between two DIVs - one visible - one hidden.

I am not using Google's API for animation.  I have a home grown tile
stitcher.  It has no circular references in the DOM, a known cause of
memory leaks.  It is illegal but it is just a toy.  Pam has never
complained.

 And talking about destroying/recreating the DOM elements from scratch:
 yeah, I was considering say, setting a timer for an hour and if the
 page was still open, switching quickly to another page on the site,
 then back to the map page, in order trigger the api unload function
 and try to clean up the DOM. I'm been hesitating on that approach
 because it's going to be a PITA to retain the state from the map page-other 
 page-map page. Got to make it flexible enough to maintain the

 center lat/lon, the zoom level, the options and (if applicable) the
 open infowindow. But I have seen issues with the unload function
 appearing not to clean up memory either.

 Deirdre

 On Dec 11, 1:11 pm, bratliff bratl...@umich.edu wrote:

  DeirdreH wrote:
   Website here:
  http://www.lakecountypassage.com/index3.html

   We have a wms server providing map tiles to overlay on a Google base
   map. These tiles reflect current congestion data, and that data is
   updated about every 2 minutes.

   About every 2 minutes, we have a periodic Ajax function that requests
   updated incident/roadwork/har data from the server. That response
   sends us a js fragment with the new icon array, a call to update the
   icons, and a call to our tile refresh function. I see it hit our
   refresh function, which calls the google-provided refresh on the tile
   overlay. And . . . according to both Firebug and my packet sniffer,
   nothing happens.  These tiles have the cache-control header provided
   by geoserver, (Cache-Control   max-age=0, must-revalidate). They do 
   not
   have the older pragma no-cache header because I have been unable to
   work out a way to make it happen.

   If I add a random number to the tile request, we do get refreshed
   tiles. But, the memory leak caused by big image files heading into the
   cache (of both IE7 and FF2) every 2 minutes kills the browser in about
   an hour on your standard desktop.

  It may be memory fragmentation caused by the garbage collector.  I had
  a similar thing happening in a flight simulator.  Reallocating
  obsolete tiles was counterproductive.  If I rebuilt DOM elements from
  scratch, it improved animation performance  eliminated crashes.  I
  repeated the operation again every one thousand tiles.

  The browser is a black box.  Unfortunately, it provides no indication
  of the state of the memory pool.  You may have a lot of little chunks
  with nothing large enough for another tile.  It may require an entire
  image to fit into a single contiguous chunk.  It may not be smart
  enough to combine physically adjacent chunks.  It may use the first
  fit rather than the best fit.

  Occasionally cleaning house seems to help.  You might try rebuilding
  your tile overlays periodically.  A massive infusion of memory into
  the garbage collector may force it to reorganize its memory pool.  It
  appears to have worked in my case.

   One of our requirements is that this
   page needs to remain open  updating indefinitely.

   Am I using the tileoverlay refresh command incorrectly? Is there
   anyway to make IE and FF update these tiles without making the browser
   think that it's a different filename each time around?

   Thanks,
   Deirdre
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



spam

2008-12-11 Thread marcelo

Spam
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/e8cb0b82ef0fb7ae#


On Dec 11, 7:26 pm, AKHIL GOYAL goyalak...@gmail.com wrote:
 *Hello, How are you doing recently?
  I would like to introduce you a great company which i knew from other
 website.Their website is  **www.dsg-trade.com*http://www.dsg-trade.com/*
 .They can offer you all kinds of electronical products which you need like
 laptops ,gps ,TV LCD,cell phones,ps3,MP3/4,motorcycles  etc...Please
 take some time to have a check ,there must be somethings you 'd like to
 purchase .The Christmas is coming!There are kinds of products for presenting
 for you. Go to their website, you must get a pleasant surprise.now the
 compay have concession activities,all of our products are sold in wholesale
 price for 15 days.*
 *The contact email:  **dsgtrade_2...@188.com* dsgtrade_2...@188.com*  MSN:
 **trade...@hotmail.com/trade-...@hotmail.com*trade...@hotmail.com/trade-...@hotmail.com
 *Enjoy your shopping and enjoy your time.
 Regards*
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: from lat, lon, zoom to x y ???

2008-12-11 Thread Mika Tuupola


On Dec 11, 2008, at 9:45 PM, bratliff wrote:

 Thanks but it has also been criticized for the use of local
 functions.  Just trying to keep extra junk out of the global
 namespace.

People who criticize not polluting global namespace can be ignored :)

-- 
Mika Tuupola
http://www.appelsiini.net/


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Auto show result at page load with Google Maps?

2008-12-11 Thread Feng

Using google local search, is there a way to automatically load a
search query when a page loads.

Say that I go to a page that's for Pizza in Seattle,WA, how do I
automatically display a Google Map on my page that shows all of the
Pizza restaurants in Seattle?

the examples they provide:
http://www.google.com/uds/solutions/loca...

Just shows how you can add the search map.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Simple Infowindow question

2008-12-11 Thread atomworks

Hello,

Can't seem to find out how to do this easily anywhere but I'm sure its
not hard. I was just wondering how you can call up the infowindow for
a marker when the marker is clicked on. I have generated a map with
several markers and the last one drawn has the window open already,
but none of the windows will open if I click the markers so I'm
obviously missing something...

What do I need to do to bring up the infowindows when the marker is
clicked?

Cheers,

Leonard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Making the tileoverlay refresh function work?

2008-12-11 Thread bratliff

For what it is worth, too much panning / zooming will also crash and/
or hang maps.google.com.  Clearly, the API was not designed for a lot
of repetitive tile replacement.  Clearly, old browsers like IE6 were
not designed to optimally reclaim memory.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



RE: Simple Infowindow question

2008-12-11 Thread Ralph Ames


What do I need to do to bring up the infowindows when the marker is
clicked?

Try Mike's tutorial
http://econym.org.uk/gmap/

Ralph


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: the question of Firefox cross site domain

2008-12-11 Thread David Miao

Dear Forum,

I appreciate all of your kind help for the problem, particuarly for
Larry and Chad's help. Finally, I used Chad's php code for xml proxy
and asked our system administrator help to get things done, because of
my weak network background.

I also acknowledged that json is a good data format and do not have
cross-domain issue. I tried and it works well. For me, only limit of
json sounds that fewer of climate data are published in json format,
and most of them are available in xml (e.g., NOAA, google and Yahoo
weather).  Anyway, I thank all of your suggestions and it open my
mind.

I like the forum, we have a good team.

Sincerely, David

On Dec 11, 10:46 am, bratliff bratl...@umich.edu wrote:
 Using JSON without a proxy (two hops per round trip) is much more
 efficient than using XML with a proxy (four hops per round trip).
 Also, JSON is much more concise than XML.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: GClientGeocoder.getLocations

2008-12-11 Thread Russ

That's just what I was looking for

Cheers, Russ


On Dec 11, 4:17 pm, Rossko ros...@culzean.clara.co.uk wrote:
 Have a look at Mike's great tutorial, in particular -
    http://econym.org.uk/gmap/didyoumean.htm

 cheers, Ross K

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Directions in a DIV - overflow problem

2008-12-11 Thread DeepBlueJr

Hi,

I'm currently experiencing some problems when I implement the Google
Map API.

My page is based on the following example:

http://code.google.com/apis/maps/documentation/examples/directions-advanced.html

What I have is a 300px by 200px div to view the directions results
(map is set to null). The results overflow the div and overflow is
hidden. I have a script (dyn-web.com/code/scroll/) that can scroll up
and down divs but DWthe script doesn't recognize the full length of
results.

Is there a way to figure out the true height of the directions div
from the Google map side?

I'm guessing the problem is more with the script. Many thanks for
anyone's help, and let me know if you need more info.

Albert

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Fire InfoWindow Click trigger question

2008-12-11 Thread cmhunt

Hi

I have a javascript function which allows me to open an InfoWindow
from outside the map. The function works fine. (For example, see
http://www.wesportactivityhub.org.uk/, click Badminton, check Display
as list and then click on any club) .

I'm working on a new version of this app which, after the InfoWindow
is open using method above, it uses javascript to grab a div by id
from within the InfoWindow and changes some of this data. This works
fine except the very first time. It will then work from then onwards.

Having stepped through the code using Visual Studio 2008, after my
function which triggers the click event on the point is fired, the
contents aren't available using getElementById. At the end of my
function, I'd expect that all to happen but further Google Maps
javascript runs (which I can't make any sense of). I guess this is
what actually puts the InfoWindow contents on the page so the DOM can
access.

After the first time, as I said, it works fine.

Can anyone think of any way to sort the problem so it works every
time?

Thanks for any help.

Chris

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Specifying road closures for driving directions?

2008-12-11 Thread Ken

Hi -

How can a road closure be indicated so that the driving directions
route around it?

Our university campus closes roads and bridges for construction and
we'd like to be able to specify this so that the Google driving
directions route around the problem, as though the road or bridge does
not exist. How can this be done?

(Although the Google driving directions are not part the maps API,
there does not seem to be a more suitable group to query about this.
It looks like there are way to specify particular routes when desired,
but what is the way to specify non-routes?)

-Ken


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: Specifying road closures for driving directions?

2008-12-11 Thread ashore

I expect that the experts here will have something on this point, but
it appears to me that the potential mischief that cd be created by
malfeasance or misfeasance wd be intolerable.  I'd assume it as not
possible, pending some special display of creativity.

AS

On Dec 11, 3:49 pm, Ken furryroos...@gmail.com wrote:
 Hi -

 How can a road closure be indicated so that the driving directions
 route around it? ...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



Re: 'Parameters' in infowindow is it possible?

2008-12-11 Thread daniel

Rossko,

Thank you for the link, I had overlooked the ampersand.

Mike,

I originally wanted to link to be in the infowindow but changed my
mind after posting to move it to the xml.  Sorry for the confusion, I
had made it seem like I was just messing around.

My apologies, and thank you for the help.


On Dec 11, 10:51 am, Rossko ros...@culzean.clara.co.uk wrote:
 Hint -http://articles.techrepublic.com.com/5100-10878_11-5032714.html
 'Beware of the ampersand when using XML'
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



GoogleMapAPI.class.php

2008-12-11 Thread jeamo

Does anybody has experience with the PHP GoogleMapAPI by Monte Ohrt?
http://www.phpinsider.com/php/code/GoogleMapAPI/

I have it in use and it works fine with most adresses.
I use this function:

$map-addMarkerByAddress();

But for some adresses like
6767 Warth am Arlberg, Bregenzerwaldstrasse 36, Sporthotel
Steffisalp
Google doesn't find the location although you can find it on the
maps.google.com site.

Thanx for help.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Maps API group.
To post to this group, send email to Google-Maps-API@googlegroups.com
To unsubscribe from this group, send email to 
google-maps-api+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~--~~~~--~~--~--~---



  1   2   >