[Google Maps API v3] Help with infowindows for multiple markers

2010-07-13 Thread doug
Hi,
I'm just starting out on trying to develop a category based POI as a
new feature for my website. I've studied all of the examples, googled
extensively but I've reached a bit of an impasse. I'm certain the
solution is going to be blindingly obvious once it's pointed out to me
but I've spent days trying to figure this out.

Essentially clicking on any of the markers opens the infowindow for
the last one added.

Here's the code snippet

// populate map with POIs

for (i in mapData.POI)
{
thisPOI = mapData.POI[i];
POIPos = new google.maps.LatLng(thisPOI.map_lat, 
thisPOI.map_long);

marker = new google.maps.Marker(
{
position: POIPos,
map: map,
title:thisPOI.POI_title,
zIndex: Math.round(POIPos.lat()*-10)5
});
contentString = thisPOI.POI_desc;
google.maps.event.addListener(marker, 'click', 
function() {
infowindow.setContent(contentString);
infowindow.open(map,marker);
});
}

Can anyone see any obvious mistakes?

I am having another problem. If I use a custom Icon then the
infowindow doesn't show up at all although the map pans to fit it on
screen.

Regards
Doug

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



[Google Maps API v3] Re: 有SSL API吗

2010-07-13 Thread Stefan Karlsson
Hi,
Chads answer translated back to chinese in gTranslate (i do not know
if this makes any sense or not since I know no chinese)
米格尔给出了答案:
你需要一个地图API许可证总理指出:http://www.google.com/enterprise/earthmaps/maps.html


Stefan

On 13 Juli, 00:59, Chad Killingsworth
chadkillingswo...@missouristate.edu wrote:
 Miguel gave the answer:

 You need a Maps API Premier license for 
 that:http://www.google.com/enterprise/earthmaps/maps.html

 Chad Killingsworth

 On Jul 12, 5:50 pm, Jonathanccwong jonathanccw...@gmail.com wrote:



  Let me try to help translate (as I do not know the answer to this
  question)
  the OP needs to use Google Maps Javascript API v3 in an SSL encrypted
  site but he/she is getting warnings that says some content on the page
  is unencrypted/not verified, etc.

  So the question is whether there is an API that will work in an SSL
  site.
  If not, are there any work-around?

  
  So would the Google Maps Premier work?
  But that does come with a cost.

  On Jul 7, 3:44 am, Miguel Angel Vilela mig...@google.com wrote:

   I don't understand Chinese but it looks like you want to use the Maps API
   over SSL (https).
   You need a Maps API Premier license for 
   that:http://www.google.com/enterprise/earthmaps/maps.html

   On Wed, Jul 7, 2010 at 11:50, 敢为所想 alx...@gmail.com wrote:
需要在SSL页面中使用Google Maps JavaScript API v3, 但是只有普通版本:
   http://maps.google.com/maps/api/js?sensor=true
这时会收到一个警告: 包含未验证内容!

不知道有没有SSL API? 例如:
   https://maps.google.com/maps/api/js?sensor=true

如果没有SSL API, 有其它的解决方法吗?
谢谢!

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

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



[Google Maps API v3] Re: Help with infowindows for multiple markers

2010-07-13 Thread Pil


On Jul 13, 8:50 am, doug doug.ant...@gmail.com wrote:

 Can anyone see any obvious mistakes?

How should that be possible in an incomplete  snippet?

There are several reasons why the posting guide lines ask for a link.

http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical?_done=/group/Google-Maps-API%3F

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



[Google Maps API v3] Re: Help with infowindows for multiple markers

2010-07-13 Thread doug


On Jul 13, 8:36 am, Pil wolf...@gmail.com wrote:
 On Jul 13, 8:50 am, doug doug.ant...@gmail.com wrote:

  Can anyone see any obvious mistakes?

 How should that be possible in an incomplete  snippet?

 There are several reasons why the posting guide lines ask for a link.

 http://groups.google.com/group/Google-Maps-API/web/why-including-a-li...

I appreciate that but I'm still developing it on my home machine using
XAMPP, It's not on the live site yet. I'll see if I can get something
up and running.

Thanks
Doug

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



[Google Maps API v3] Re: XML Construction for Custom Markers

2010-07-13 Thread Rossko
The URL to get the data from 'pipes' has  encoded into it.  I'd be
suspicious about how your php script is interpreting the GET
parameters supplied to it, and then passing them on to yahoo.  Check
what URL you actually call, you may need to de-encode it.

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



[Google Maps API v3] Re: Help with infowindows for multiple markers

2010-07-13 Thread doug


On Jul 13, 10:34 am, doug doug.ant...@gmail.com wrote:
 On Jul 13, 8:36 am, Pil wolf...@gmail.com wrote:

  On Jul 13, 8:50 am, doug doug.ant...@gmail.com wrote:

   Can anyone see any obvious mistakes?

  How should that be possible in an incomplete  snippet?

  There are several reasons why the posting guide lines ask for a link.

 http://groups.google.com/group/Google-Maps-API/web/why-including-a-li...

 I appreciate that but I'm still developing it on my home machine using
 XAMPP, It's not on the live site yet. I'll see if I can get something
 up and running.

 Thanks
 Doug

I've set it up at http://development.arvclub.co.uk/Forum/atlas.php
user name is test user and the password is letmein
Please be aware that this is using our live database.

Thanks again for the support
Regards
Doug

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



[Google Maps API v3] Different result from google maps V3 api's than found on the maps.google.com ?

2010-07-13 Thread nitin murkute
Hi All

Can somebody explain me why results on maps.google.com differs from
the example on
http://gmaps-samples-v3.googlecode.com/svn/trunk/geocoder/v3-geocoder-tool.html


??
Try entering following address in both the places and see the
different result location.

mocha mayas, 105 Main Street, Shelburne Falls, MA, 01370


Is it anything to do with bounds or viewport specification? If yes how
you specify it in api?

Can anybody help?

Thanks in advance...
Nitin Murkute

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



[Google Maps API v3] Re: Different result from google maps V3 api's than found on the maps.google.com ?

2010-07-13 Thread Rossko
 Can somebody explain me why results on maps.google.com differs from
 the example 
 onhttp://gmaps-samples-v3.googlecode.com/svn/trunk/geocoder/v3-geocoder...

FAQ
http://code.google.com/apis/maps/faq.html#geocoder_differences

 Is it anything to do with bounds or viewport specification? If yes how
 you specify it in api?

Viewport biasing
http://code.google.com/apis/maps/documentation/javascript/services.html#GeocodingViewports
Region biasing
http://code.google.com/apis/maps/documentation/javascript/services.html#GeocodingRegionCodes

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



[Google Maps API v3] Re: Markers Taken from MySql DB

2010-07-13 Thread Rossko
 someone can post me an example of ajax geocoding request that send
 the informations to the db?

Already did, you dismissed it.

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



[Google Maps API v3] Re: Help with infowindows for multiple markers

2010-07-13 Thread Chad Killingsworth
You aren't properly creating a closure on the marker. Daniel wrote an
excellent post about how to address the issue:
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/f40390e4a6ba89e9/25a246d92f93e9ea#25a246d92f93e9ea

Chad Killingsworth

On Jul 13, 5:25 am, doug doug.ant...@gmail.com wrote:
 On Jul 13, 10:34 am, doug doug.ant...@gmail.com wrote:





  On Jul 13, 8:36 am, Pil wolf...@gmail.com wrote:

   On Jul 13, 8:50 am, doug doug.ant...@gmail.com wrote:

Can anyone see any obvious mistakes?

   How should that be possible in an incomplete  snippet?

   There are several reasons why the posting guide lines ask for a link.

  http://groups.google.com/group/Google-Maps-API/web/why-including-a-li...

  I appreciate that but I'm still developing it on my home machine using
  XAMPP, It's not on the live site yet. I'll see if I can get something
  up and running.

  Thanks
  Doug

 I've set it up athttp://development.arvclub.co.uk/Forum/atlas.php
 user name is test user and the password is letmein
 Please be aware that this is using our live database.

 Thanks again for the support
 Regards
 Doug

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



[Google Maps API v3] Re: Different result from google maps V3 api's than found on the maps.google.com ?

2010-07-13 Thread nitin murkute
  var southWest = new google.maps.LatLng(42.639497406239926,
-72.823620202771);
  var northEast = new google.maps.LatLng(42.54699229637924,
-72.603893640271);
  var bounds = new google.maps.LatLngBounds(southWest, northEast);

  geocoder.geocode(
   { 'address': $(#address).val(),'bounds':
bounds },
   function (results, status) {}
  );


Still I am not getting the desired result.
Can you help?

Thanks in advance...
Nitin Murkute


On Jul 13, 4:01 pm, Rossko ros...@culzean.clara.co.uk wrote:
  Can somebody explain me why results on maps.google.com differs from
  the example 
  onhttp://gmaps-samples-v3.googlecode.com/svn/trunk/geocoder/v3-geocoder...

 FAQhttp://code.google.com/apis/maps/faq.html#geocoder_differences

  Is it anything to do with bounds or viewport specification? If yes how
  you specify it in api?

 Viewport 
 biasinghttp://code.google.com/apis/maps/documentation/javascript/services.ht...
 Region 
 biasinghttp://code.google.com/apis/maps/documentation/javascript/services.ht...

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



[Google Maps API v3] Re: Different result from google maps V3 api's than found on the maps.google.com ?

2010-07-13 Thread nitin murkute
Hi Rossko,

Thanks for the reply...
I will research on the points you suggested.
Mean while is there any code example for this?

Thanks
Nitin Murkute

On Jul 13, 4:01 pm, Rossko ros...@culzean.clara.co.uk wrote:
  Can somebody explain me why results on maps.google.com differs from
  the example 
  onhttp://gmaps-samples-v3.googlecode.com/svn/trunk/geocoder/v3-geocoder...

 FAQhttp://code.google.com/apis/maps/faq.html#geocoder_differences

  Is it anything to do with bounds or viewport specification? If yes how
  you specify it in api?

 Viewport 
 biasinghttp://code.google.com/apis/maps/documentation/javascript/services.ht...
 Region 
 biasinghttp://code.google.com/apis/maps/documentation/javascript/services.ht...

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



[Google Maps API v3] Re: Polylines in Opera

2010-07-13 Thread bratliff
On Jul 12, 10:52 pm, Ben Appleton apple...@google.com wrote:
 I seem to recall iPhone needed clip in addition to / instead of overflow
 hidden.  But I should check more recent builds.

Does the iPhone (WebKit) use SVG of CANVAS ?  CANVAS discards
everything outside of its box without either style.clip or
style.overflow.  SVG might be different.  style.clip='rect(0px,
256px,256px,0px)' really hurts performance during fly-over
animation.

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



[Google Maps API v3] Geocoding markers shows error when creating 11 or more

2010-07-13 Thread moderntymes
I'm trying to create a map with approximately 40 markers. Each marker
is geocoded and has an event handler for 'clicked' that redirects to a
new page. I've pretty much used the geocoding code straight from the
Google API v3 site, but the code fails if I add more than 10 markers.
On the 11th, I get a Javascript error. If I try to show more than 11,
then all the markers disappear.

I receive a rather useless (to me at least) error message: '0' is null
or not an object.

If I take out the event handler, the problem remains so it seems to be
connected to the geocoding. I think it has something to do with these
lines:
   geocoder13.geocode( { 'address': '6059 S Seneca,Wichita,KS,67217'},
function(results, status) {
  var marker13 = new google.maps.Marker({
 map: map,
 position: results[0].geometry.location,
 title:Cox Farm
  });
   });

In particular, if I remove the stuff after function(results, status)
{ up to the next }, I don't get an error. Of course I also don't get
any markers!

I tried with each geocoding occurence listed separately, which you can
see here: http://cornmaze.moderntymes.com/map.htm

I also tried making a function to do the geocoding here:
http://cornmaze.moderntymes.com/map_testgc.htm

Results are the same either way.

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



[Google Maps API v3] Re: Help with infowindows for multiple markers

2010-07-13 Thread doug
That's absolutely spot-on and it's now working correctly! Thank you
for the pointer.

Regards
Doug

On Jul 13, 12:33 pm, Chad Killingsworth
chadkillingswo...@missouristate.edu wrote:
 You aren't properly creating a closure on the marker. Daniel wrote an
 excellent post about how to address the 
 issue:http://groups.google.com/group/google-maps-js-api-v3/browse_thread/th...

 Chad Killingsworth

 On Jul 13, 5:25 am, doug doug.ant...@gmail.com wrote:

  On Jul 13, 10:34 am, doug doug.ant...@gmail.com wrote:

   On Jul 13, 8:36 am, Pil wolf...@gmail.com wrote:

On Jul 13, 8:50 am, doug doug.ant...@gmail.com wrote:

 Can anyone see any obvious mistakes?

How should that be possible in an incomplete  snippet?

There are several reasons why the posting guide lines ask for a link.

   http://groups.google.com/group/Google-Maps-API/web/why-including-a-li...

   I appreciate that but I'm still developing it on my home machine using
   XAMPP, It's not on the live site yet. I'll see if I can get something
   up and running.

   Thanks
   Doug

  I've set it up athttp://development.arvclub.co.uk/Forum/atlas.php
  user name is test user and the password is letmein
  Please be aware that this is using our live database.

  Thanks again for the support
  Regards
  Doug

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



[Google Maps API v3] Re: Geocoding markers shows error when creating 11 or more

2010-07-13 Thread geocode...@gmail.com
On Jul 13, 5:43 am, moderntymes doug-goo...@moderntymes.com wrote:
 I'm trying to create a map with approximately 40 markers. Each marker
 is geocoded and has an event handler for 'clicked' that redirects to a
 new page. I've pretty much used the geocoding code straight from the
 Google API v3 site, but the code fails if I add more than 10 markers.
 On the 11th, I get a Javascript error. If I try to show more than 11,
 then all the markers disappear.

 I receive a rather useless (to me at least) error message: '0' is null
 or not an object.

 If I take out the event handler, the problem remains so it seems to be
 connected to the geocoding. I think it has something to do with these
 lines:
    geocoder13.geocode( { 'address': '6059 S Seneca,Wichita,KS,67217'},
 function(results, status) {
       var marker13 = new google.maps.Marker({
          map: map,
          position: results[0].geometry.location,
          title:Cox Farm
       });
    });

 In particular, if I remove the stuff after function(results, status)
 { up to the next }, I don't get an error. Of course I also don't get
 any markers!

 I tried with each geocoding occurence listed separately, which you can
 see here:http://cornmaze.moderntymes.com/map.htm

 I also tried making a function to do the geocoding 
 here:http://cornmaze.moderntymes.com/map_testgc.htm

 Results are the same either way.

The general advice is not to geocode addresses everytime your page
loads.  Geocode them once, offline, then use the resulting coordinates
to display the markers.

Geocoding the addresses every time wastes google's resources, so they
have implemented rate limits and quotas.  You should only geocode
addresses you don't know in advance (like user input) on the fly.

  -- Larry

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



[Google Maps API v3] Re: Different result from google maps V3 api's than found on the maps.google.com ?

2010-07-13 Thread Rossko
 Still I am not getting the desired result.

Or if you already know what result you want, use it directly and don't
geocode it.

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



[Google Maps API v3] Re: good way to ignore click event if it's part of a double click event?

2010-07-13 Thread DanInDC
Yea, that is exactly what I am trying to avoid. Thanks though.

On Jul 12, 2:02 pm, Shadow shadowcree...@gmail.com wrote:
 Very simple so I will only give pseudo-code:

 global var isSingleClick = false, checkRef = null;

 onClick {
   isSingleClick = !isSingleClick;
   if( checkRef != null )
     clearTimeout( checkRef );
   checkRef = setTimeout( 500ms, maybeHandleClick() );

 }

 onDblClick {
   isSingleClick = false;

 }

 maybeHandleClick () {
 if( isSingleClick )
    handleClick();

 }

 Hack to your satisfaction, but that is the general idea...

 Hope this helps
 -Shadow

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



[Google Maps API v3] Click on custom overlay (OverlayView) triggers click on map

2010-07-13 Thread Bradley
I'm creating a custom SVG overlay on google maps by extending the
OverlayView class.  These SVG circles come in all sizes.
Unfortunately however when I click on an overlay, it also triggers a
click on my map, which (according to the docs) it should not (and i
don't want it to).

I'm assuming that I somehow have to specify the dimensions of my
overlay such that gmaps knows when the overlay being clicked but I'm
unclear on how to do this.

Any help is greatly appreciated.  I've included a small sample below
as to how I'm creating my overlay, it's pretty much taken from the
examples.

// create my div and attach canvas to it
function init(){
div = document.createElement('div');
canvas = Raphael(div, width, width);
}

// create the circle in the canvas and attach div to pane
MyOverlay.prototype.onAdd = function(){
var circle = canvas.circle(width/2, width/2, diameter/2).attr(style);
var panes = this.getPanes();
panes.overlayLayer.appendChild(div);

};

// set center and dimensions of div
MyOverlay.prototype.draw = function(){
  var overlayProjection = this.getProjection(),
centerPoint = overlayProjection.fromLatLngToDivPixel(position);

  div.className = circleOverlay;
  div.style.left = centerPoint.x - width/2 + 'px';
  div.style.top = centerPoint.y - width/2 + 'px';
  div.style.width = width + 'px';
  div.style.height = width + 'px';
};

MyOverlay.prototype.onRemove = function(){
  div.parentNode.removeChild(div);
  div = null;
};

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



[Google Maps API v3] KLM Parser / Renderer

2010-07-13 Thread bratliff
Any plans to split the KML parsing  rendering services ?  It was a
welcome change from V2 to V3 for the directions service.  Your gx or
sf services already do it.  It enables changing the attributes of
individual components of the KML file.

Also, an off-line KML to JSONP conversion utility could be useful.

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



[Google Maps API v3] Re: setOptions :: disableDefaultUI

2010-07-13 Thread Alex (Axle) Van Leyen
Thanks guys.

@Chad:That would appear to be the most logical reasoning on the
matter. Thanks for the reply.

@Marx: Your example confirms my suspicions. Thank you for your
assistance.

On Jul 13, 1:01 am, Marx Zeng marx.z...@gmail.com wrote:
 Try this.http://marx-tseng.appspot.com/maps/DisableDefaultUI.html

 On 7月13日, 上午1時19分, Alex (Axle) Van Leyen alex.vanle...@gmail.com
 wrote:



  The silence in this topic only tells me that either no one has an
  answer, or I've missed something. In either case, I'd really
  appreciate an answer to my question - even if it's a nope.

  On Jul 8, 4:49 pm, Alex (Axle) Van Leyen alex.vanle...@gmail.com
  wrote:

  http://groups.google.com/group/google-maps-js-api-v3/msg/b60f31fa6b76...

   In the above link, I noticed that disableDefaultUI was listed in the
   options that does not work with the setOptions method. I've been
   digging through the net to see if I could find a solution to the
   problem I'm working on; though I'm not having much luck.

   I'd like to know if the above linked issue has since been resolved (I
   have tried it, I just want to be sure it's just me failing to use this
   correctly); or if it hasn't, a possible work around for turning the
   default interface on and off using radio buttons (or any input control
   for that matter - I'm just using radio buttons).

   Any assistance on this matter will be greatly appreciated.

   Axle Van Leyen

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



[Google Maps API v3] Re: Different result from google maps V3 api's than found on the maps.google.com ?

2010-07-13 Thread nitin murkute
Please check the address I have given in first post on both the
website, one google maps and other is google api example.
You will see the difference.

What I want is the Api should return result like the google map.

Can you help?

Thanks
Nitin Murkute

On Jul 13, 6:31 pm, Rossko ros...@culzean.clara.co.uk wrote:
  Still I am not getting the desired result.

 Or if you already know what result you want, use it directly and don't
 geocode it.

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



[Google Maps API v3] Re: Geocoding markers shows error when creating 11 or more

2010-07-13 Thread moderntymes
Certainly that's good advice, but these locations are actually dynamic
(or will be in the final version). The locations will be coming from a
frequently changing database, so I'll need to be doing the geocoding.

I think there's a problem with the programming though, and I think it
is related to the Javascript closure.

On Jul 13, 9:19 am, geocode...@gmail.com geocode...@gmail.com
wrote:
 On Jul 13, 5:43 am, moderntymes doug-goo...@moderntymes.com wrote:





  I'm trying to create a map with approximately 40 markers. Each marker
  is geocoded and has an event handler for 'clicked' that redirects to a
  new page. I've pretty much used the geocoding code straight from the
  Google API v3 site, but the code fails if I add more than 10 markers.
  On the 11th, I get a Javascript error. If I try to show more than 11,
  then all the markers disappear.

  I receive a rather useless (to me at least) error message: '0' is null
  or not an object.

  If I take out the event handler, the problem remains so it seems to be
  connected to the geocoding. I think it has something to do with these
  lines:
     geocoder13.geocode( { 'address': '6059 S Seneca,Wichita,KS,67217'},
  function(results, status) {
        var marker13 = new google.maps.Marker({
           map: map,
           position: results[0].geometry.location,
           title:Cox Farm
        });
     });

  In particular, if I remove the stuff after function(results, status)
  { up to the next }, I don't get an error. Of course I also don't get
  any markers!

  I tried with each geocoding occurence listed separately, which you can
  see here:http://cornmaze.moderntymes.com/map.htm

  I also tried making a function to do the geocoding 
  here:http://cornmaze.moderntymes.com/map_testgc.htm

  Results are the same either way.

 The general advice is not to geocode addresses everytime your page
 loads.  Geocode them once, offline, then use the resulting coordinates
 to display the markers.

 Geocoding the addresses every time wastes google's resources, so they
 have implemented rate limits and quotas.  You should only geocode
 addresses you don't know in advance (like user input) on the fly.

   -- Larry- Hide quoted text -

 - Show quoted text -

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



[Google Maps API v3] Issues with the BlackBerry 4.6 Browser

2010-07-13 Thread Rick Scott
I realize that it is not on the supported devices list, but I have
this,
https://rwscott.no-ip.org/golf?ro
working fairly well. The problem so far is that controls within about
200 px of the map div cannot be activated, so I have to add in space
to keep the map away from the controls. It works okay, but it is a lot
of scrolling. You can see this as the pointers position is displayed
in the filler. As the pointer approaches the map, the updates will
stop.

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



[Google Maps API v3] how to show google search bar using api version 3

2010-07-13 Thread Kash
Hi,

I want to show /hide google search bar using  Google map api version
3. Earlier i used version 2 api and using EnableSearchBar() I was able
to show / hide the search bar but this option does not seem working in
version 3.

Could you help me in this matter ?

Also

is key attribute  now non mandatory in version 3? I was able to show
map without using key ?

Kindly help me in this regard.

Thanks a lot in advance.

- Kash

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



[Google Maps API v3] Map animate

2010-07-13 Thread Ivan Poluyanov
Hello everyone!
How i can scroll map from javascript with animation?

.panTo - If the point is already visible in the current map view,
change the center in a smooth animation.

thanks.

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



[Google Maps API v3] Re: Geocoding markers shows error when creating 11 or more

2010-07-13 Thread geocode...@gmail.com
On Jul 13, 6:46 am, moderntymes doug-goo...@moderntymes.com wrote:
 Certainly that's good advice, but these locations are actually dynamic
 (or will be in the final version). The locations will be coming from a
 frequently changing database, so I'll need to be doing the geocoding.

 I think there's a problem with the programming though, and I think it
 is related to the Javascript closure.

Sounds to me like you need to implement your code to handle error
conditions better.

  -- Larry


 On Jul 13, 9:19 am, geocode...@gmail.com geocode...@gmail.com
 wrote:



  On Jul 13, 5:43 am, moderntymes doug-goo...@moderntymes.com wrote:

   I'm trying to create a map with approximately 40 markers. Each marker
   is geocoded and has an event handler for 'clicked' that redirects to a
   new page. I've pretty much used the geocoding code straight from the
   Google API v3 site, but the code fails if I add more than 10 markers.
   On the 11th, I get a Javascript error. If I try to show more than 11,
   then all the markers disappear.

   I receive a rather useless (to me at least) error message: '0' is null
   or not an object.

   If I take out the event handler, the problem remains so it seems to be
   connected to the geocoding. I think it has something to do with these
   lines:
      geocoder13.geocode( { 'address': '6059 S Seneca,Wichita,KS,67217'},
   function(results, status) {
         var marker13 = new google.maps.Marker({
            map: map,
            position: results[0].geometry.location,
            title:Cox Farm
         });
      });

   In particular, if I remove the stuff after function(results, status)
   { up to the next }, I don't get an error. Of course I also don't get
   any markers!

   I tried with each geocoding occurence listed separately, which you can
   see here:http://cornmaze.moderntymes.com/map.htm

   I also tried making a function to do the geocoding 
   here:http://cornmaze.moderntymes.com/map_testgc.htm

   Results are the same either way.

  The general advice is not to geocode addresses everytime your page
  loads.  Geocode them once, offline, then use the resulting coordinates
  to display the markers.

  Geocoding the addresses every time wastes google's resources, so they
  have implemented rate limits and quotas.  You should only geocode
  addresses you don't know in advance (like user input) on the fly.

    -- Larry- Hide quoted text -

  - Show quoted text -- Hide quoted text -

 - Show quoted text -

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



[Google Maps API v3] Re: Geocoding markers shows error when creating 11 or more

2010-07-13 Thread geocode...@gmail.com
On Jul 13, 7:27 am, geocode...@gmail.com geocode...@gmail.com
wrote:
 On Jul 13, 6:46 am, moderntymes doug-goo...@moderntymes.com wrote:

  Certainly that's good advice, but these locations are actually dynamic
  (or will be in the final version). The locations will be coming from a
  frequently changing database, so I'll need to be doing the geocoding.

  I think there's a problem with the programming though, and I think it
  is related to the Javascript closure.

 Sounds to me like you need to implement your code to handle error
 conditions better.

and add a createMarker function so you get function closure:
http://www.geocodezip.com/cornmaze_moderntymes_com_map_testgcA.html

Note that even with those few locations I get an OVER_QUERY_LIMIT
error for one of those points.
You will need to rethink your design.

   -- Larry






  On Jul 13, 9:19 am, geocode...@gmail.com geocode...@gmail.com
  wrote:

   On Jul 13, 5:43 am, moderntymes doug-goo...@moderntymes.com wrote:

I'm trying to create a map with approximately 40 markers. Each marker
is geocoded and has an event handler for 'clicked' that redirects to a
new page. I've pretty much used the geocoding code straight from the
Google API v3 site, but the code fails if I add more than 10 markers.
On the 11th, I get a Javascript error. If I try to show more than 11,
then all the markers disappear.

I receive a rather useless (to me at least) error message: '0' is null
or not an object.

If I take out the event handler, the problem remains so it seems to be
connected to the geocoding. I think it has something to do with these
lines:
   geocoder13.geocode( { 'address': '6059 S Seneca,Wichita,KS,67217'},
function(results, status) {
      var marker13 = new google.maps.Marker({
         map: map,
         position: results[0].geometry.location,
         title:Cox Farm
      });
   });

In particular, if I remove the stuff after function(results, status)
{ up to the next }, I don't get an error. Of course I also don't get
any markers!

I tried with each geocoding occurence listed separately, which you can
see here:http://cornmaze.moderntymes.com/map.htm

I also tried making a function to do the geocoding 
here:http://cornmaze.moderntymes.com/map_testgc.htm

Results are the same either way.

   The general advice is not to geocode addresses everytime your page
   loads.  Geocode them once, offline, then use the resulting coordinates
   to display the markers.

   Geocoding the addresses every time wastes google's resources, so they
   have implemented rate limits and quotas.  You should only geocode
   addresses you don't know in advance (like user input) on the fly.

     -- Larry- Hide quoted text -

   - Show quoted text -- Hide quoted text -

  - Show quoted text -- Hide quoted text -

 - Show quoted text -

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



[Google Maps API v3] Re: Different result from google maps V3 api's than found on the maps.google.com ?

2010-07-13 Thread geocode...@gmail.com
On Jul 13, 6:51 am, nitin murkute nitin.murk...@gmail.com wrote:
 Please check the address I have given in first post on both the
 website, one google maps and other is google api example.
 You will see the difference.

 What I want is the Api should return result like the google map.

Then give it the correct address.  The API geocoder is ignoring the
business name.

  -- Larry


 Can you help?

 Thanks
 Nitin Murkute

 On Jul 13, 6:31 pm, Rossko ros...@culzean.clara.co.uk wrote:



   Still I am not getting the desired result.

  Or if you already know what result you want, use it directly and don't
  geocode it.- Hide quoted text -

 - Show quoted text -

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



[Google Maps API v3] Re: Different result from google maps V3 api's than found on the maps.google.com ?

2010-07-13 Thread geocode...@gmail.com
On Jul 13, 6:50 am, nitin murkute nitin.murk...@gmail.com wrote:
 How do you think we can use those local search in API?

There  is a separate Local Search API, with its own terms of use:
http://code.google.com/apis/ajaxsearch/local.html

  -- Larry


 On Jul 13, 6:15 pm, geocode...@gmail.com geocode...@gmail.com
 wrote:



  On Jul 13, 4:12 am, nitin murkute nitin.murk...@gmail.com wrote:

   Hi Rossko,

   Thanks for the reply...
   I will research on the points you suggested.
   Mean while is there any code example for this?

  Code for what?

  The Google Maps result is returning a different address it (it uses
  other sources of data such as local search).
  The Google Maps API geocoder is geocoding the address you are giving
  it.

    -- Larry

   Thanks
   Nitin Murkute

   On Jul 13, 4:01 pm, Rossko ros...@culzean.clara.co.uk wrote:

 Can somebody explain me why results on maps.google.com differs from
 the example 
 onhttp://gmaps-samples-v3.googlecode.com/svn/trunk/geocoder/v3-geocoder...

FAQhttp://code.google.com/apis/maps/faq.html#geocoder_differences

 Is it anything to do with bounds or viewport specification? If yes how
 you specify it in api?

Viewport 
biasinghttp://code.google.com/apis/maps/documentation/javascript/services.ht...
Region 
biasinghttp://code.google.com/apis/maps/documentation/javascript/services.ht...quoted
 text -

   - Show quoted text -- Hide quoted text -

 - Show quoted text -

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



[Google Maps API v3] Re: how to show google search bar using api version 3

2010-07-13 Thread geocode...@gmail.com
On Jul 13, 7:00 am, Kash kapil.na...@gmail.com wrote:
 Hi,

 I want to show /hide google search bar using  Google map api version
 3. Earlier i used version 2 api and using EnableSearchBar() I was able
 to show / hide the search bar but this option does not seem working in
 version 3.

 Could you help me in this matter ?

I don't believe that is implemented yet in v3, nor do I know that it
will be.  Check the issues tracker.

Found this from a quick search:
There's a feature request already filed for this.  Please *star* it to
express your interest in seeing it added to the API:
http://code.google.com/p/gmaps-api-issues/issues/detail?id=1697



 Also

 is key attribute  now non mandatory in version 3? I was able to show
 map without using key ?

No key is required for API v3.

  -- Larry


 Kindly help me in this regard.

 Thanks a lot in advance.

 - Kash

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



Re: [Google Maps API v3] Generic function for access any table from data base and display data on google maps.

2010-07-13 Thread Nathan Raley
There are many ways to do this as Davide mentioned.

We'll need more details to help point you in a better direction.

What language will you be using and what database server will you be using?

On Mon, Jul 12, 2010 at 3:19 AM, Davide Cremonesi dvd@gmail.com wrote:

 Hi Ramya,
 you need to develop some mechanism to read the data on server side and
 tranfer them to the client in a suitable format (kml, xml, json, ...).
 How you'll implement it will depend on which programming language you use,
 on how large is your data, etc...
 You can have a look at this excellent example:
 http://code.google.com/intl/it-IT/apis/maps/articles/phpsqlajax_v3.html

 Hope it helps,
 Davide

 2010/7/12 ramya rachana...@gmail.com

 Hi all,
 I am working on google maps api v3. I am trying to create a generic
 function which access any table from the data base and display the
 data on the google maps. could anyone please help me in solving my
 problem by giving me some examples where similar functions have been
 developed.

 Thanks
 Ramya.

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


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


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



[Google Maps API v3] Re: Geocoding markers shows error when creating 11 or more

2010-07-13 Thread moderntymes
I have no idea why there would be OVER_QUERY_LIMIT error, but isn't
that on a per client basis anyway? I certainly haven't made 2500
geolocation requests today. That seems very odd.

I tried to keep the code design as simple as possible. I will try
creating a createMarker function to get function closure, which could
very well be my problem. I understand I need to rethink my design,
which is why I was posting here.The createMarker function will
hopefully help, and thanks for the code sample!

On Jul 13, 10:48 am, geocode...@gmail.com geocode...@gmail.com
wrote:
 On Jul 13, 7:27 am, geocode...@gmail.com geocode...@gmail.com
 wrote:

  On Jul 13, 6:46 am, moderntymes doug-goo...@moderntymes.com wrote:

   Certainly that's good advice, but these locations are actually dynamic
   (or will be in the final version). The locations will be coming from a
   frequently changing database, so I'll need to be doing the geocoding.

   I think there's a problem with the programming though, and I think it
   is related to the Javascript closure.

  Sounds to me like you need to implement your code to handle error
  conditions better.

 and add a createMarker function so you get function 
 closure:http://www.geocodezip.com/cornmaze_moderntymes_com_map_testgcA.html

 Note that even with those few locations I get an OVER_QUERY_LIMIT
 error for one of those points.
 You will need to rethink your design.

    -- Larry





   On Jul 13, 9:19 am, geocode...@gmail.com geocode...@gmail.com
   wrote:

On Jul 13, 5:43 am, moderntymes doug-goo...@moderntymes.com wrote:

 I'm trying to create a map with approximately 40 markers. Each marker
 is geocoded and has an event handler for 'clicked' that redirects to a
 new page. I've pretty much used the geocoding code straight from the
 Google API v3 site, but the code fails if I add more than 10 markers.
 On the 11th, I get a Javascript error. If I try to show more than 11,
 then all the markers disappear.

 I receive a rather useless (to me at least) error message: '0' is null
 or not an object.

 If I take out the event handler, the problem remains so it seems to be
 connected to the geocoding. I think it has something to do with these
 lines:
    geocoder13.geocode( { 'address': '6059 S Seneca,Wichita,KS,67217'},
 function(results, status) {
       var marker13 = new google.maps.Marker({
          map: map,
          position: results[0].geometry.location,
          title:Cox Farm
       });
    });

 In particular, if I remove the stuff after function(results, status)
 { up to the next }, I don't get an error. Of course I also don't get
 any markers!

 I tried with each geocoding occurence listed separately, which you can
 see here:http://cornmaze.moderntymes.com/map.htm

 I also tried making a function to do the geocoding 
 here:http://cornmaze.moderntymes.com/map_testgc.htm

 Results are the same either way.

The general advice is not to geocode addresses everytime your page
loads.  Geocode them once, offline, then use the resulting coordinates
to display the markers.

Geocoding the addresses every time wastes google's resources, so they
have implemented rate limits and quotas.  You should only geocode
addresses you don't know in advance (like user input) on the fly.

  -- Larry- Hide quoted text -

- Show quoted text -- Hide quoted text -

   - Show quoted text -- Hide quoted text -

  - Show quoted text -- Hide quoted text -

 - Show quoted text -

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



[Google Maps API v3] Re: Traffic Incidents?

2010-07-13 Thread Michael Bentz
Right... So it would seem that Google hasn't added the ability to use
Traffic Incidents in V3 Yet... Bummer!

On Jul 1, 2:53 pm, Nathan Raley nlrale...@gmail.com wrote:
 Looking through the documentation I don't see anything referencing the
 incidents in the new API that I could find.  The section for the traffic
 layer in the API v3 documentation is very minimal with regards to what you
 can or cannot do with it now.  You basically have your constructor and then
 your get and set map methods.

 On Wed, Jun 30, 2010 at 1:42 PM, Michael Bentz mbbe...@gmail.com wrote:
  Taking a hint from V2, I tried passing incidents:true to the
  TrafficLayer object... didn't work

  trafficLayer = new google.maps.TrafficLayer({incidents:true});

  No errors, but no incidents either.

  Thanks

  On Jun 30, 1:33 pm, Michael Bentz mbbe...@gmail.com wrote:
   I am not finding in the API how to display Traffic Incidents in the
   Traffic Layer. Is this no longer supported?

   Thanks

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



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



[Google Maps API v3] Re: XML Construction for Custom Markers

2010-07-13 Thread ActivityPedia
Got it ! thank you so much Rossko and everyone who helped me found
out ! ;-)
 - I was actually having a  problem. I'm now catching the
_render= from yahoo pipes and rebuilding the url.
 - and I was also using the kml output from my pipe, instead of the
(geo)rss.
= it now works great.
here is the code for those who would be interested in converting yahoo
pipes to google maps with custom icons.

You can also have a look on http://activitypedia.org (in French).

?php

  function startElement($parser, $name, $attribs) {
global $latitude, $longitude, $currentTag, $withinItem, $icon,
$kml;
$currentTag = strtolower($name);
switch ($currentTag) {

case item:
 $withinItem = true;
 $kml[] = Placemark;
 if ($icon) {
   $kml[] = styleUrl#icon/styleUrl;
 }
 $latitude = 0;
 $longitude = 0;
 break;

case title:
 if ($withinItem) {
   $kml[] = name;
 }
 break;

case description:
 if ($withinItem) {
   $kml[] = description;
 }
 break;
}
  }

  function endElement($parser, $name) {
global $latitude, $longitude, $currentTag, $withinItem, $kml;
switch (strtolower($name)) {

case item:
  $withinItem = false;
  $kml[] =   Pointcoordinates$longitude,$latitude,0/
coordinates/Point;
  $kml[] = /Placemark;
  break;

case title:
  if ($withinItem) {
$kml[] = /name;

  }
  break;

case description:
  if ($withinItem) {
$kml[] = /description;
  }
  break;
}
$currentTag = ;
  }

  function characterData($parser, $data) {
global $latitude, $longitude, $currentTag, $withinItem, $kml;
switch ($currentTag) {

case item:
case title:
case description:
  if ($withinItem) {
$kml[] = htmlspecialchars(trim($data));
  }
  break;

case geo:lat:
  $latitude = $data;
  break;

case geo:long:
  $longitude = $data;
  break;
}
  }

$file = $_GET['url'];
$icon = $_GET[icon];
$render = $_GET[_render];
  if ($render) {
 $file=$file.'_render='.$render;
  }
$currentTag = ;
$withinItem = false;
$latitude = 0;
$longitude = 0;

$kml = array();
$kml[] = ?xml version=\1.0\ encoding=\UTF-8\?;
$kml[] = kml xmlns=\http://www.opengis.net/kml/2.2\;;
$kml[] = Document;

if ($icon) {
  $kml[] = Style id=\icon\;
  $kml[] =   IconStyle;
  $kml[] =   scale10/scale;
  $kml[] = Iconhref$icon/href/Icon;
  $kml[] =   /IconStyle;
  $kml[] = /Style;
}

$xmlParser = xml_parser_create();
xml_set_element_handler($xmlParser, startElement, endElement);
xml_set_character_data_handler($xmlParser, characterData);

//Initialize the Curl session

$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $file);
//Execute the fetch
$xml_data = curl_exec($ch);
curl_close($ch);

xml_parse($xmlParser, $xml_data, true);
xml_parser_free($xmlParser);

$kml[] = /Document;
$kml[] = /kml;

header(Content-Type: application/vnd.google-earth.kml
+xml;charset=UTF-8);
echo implode($kml);
?

On 13 juil, 12:18, Rossko ros...@culzean.clara.co.uk wrote:
 The URL to get the data from 'pipes' has  encoded into it.  I'd be
 suspicious about how your php script is interpreting the GET
 parameters supplied to it, and then passing them on to yahoo.  Check
 what URL you actually call, you may need to de-encode it.

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



[Google Maps API v3] Zoom

2010-07-13 Thread LUIS TARZIA
Hello,is possible animate the zoom of map how is actually in
maps.google.com hen i dblclick the map ??
the map is moved how the zoom of camera.
Thanks.

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



[Google Maps API v3] Zoom

2010-07-13 Thread LUIS TARZIA
Hello,is possible animate the zoom of map how is actually in
maps.google.com hen i dblclick the map ??
the map is moved how the zoom of camera.
Thanks.

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



[Google Maps API v3] Zoom

2010-07-13 Thread LUIS TARZIA
Hello,is possible animate the zoom of map how is actually in
maps.google.com hen i dblclick the map ??
the map is moved how the zoom of camera.
Thanks.

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



[Google Maps API v3] Move polyline

2010-07-13 Thread LUIS TARZIA
Hello again:
Two questions:
How i get the effect what appears in the maps.google.com when i draw a
polyline and in the mouse over shot the little circle and if i press
the mouse and move then the line is recalculated ??
The polyline not have event of mouse.

And:

How i draw the polyline in middle of street when i clicked in a point
of map and union with other point.
The line somethimes not draw over the streen and draw over the houses.
Is possible know where is the street draw ??

Thanks.

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



[Google Maps API v3] Move polyline

2010-07-13 Thread LUIS TARZIA
Hello again:
Two questions:
How i get the effect what appears in the maps.google.com when i draw a
polyline and in the mouse over shot the little circle and if i press
the mouse and move then the line is recalculated ??
The polyline not have event of mouse.

And:

How i draw the polyline in middle of street when i clicked in a point
of map and union with other point.
The line somethimes not draw over the streen and draw over the houses.
Is possible know where is the street draw ??

Thanks.

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



[Google Maps API v3] Move polyline

2010-07-13 Thread LUIS TARZIA
Hello again:
Two questions:
How i get the effect what appears in the maps.google.com when i draw a
polyline and in the mouse over shot the little circle and if i press
the mouse and move then the line is recalculated ??
The polyline not have event of mouse.

And:

How i draw the polyline in middle of street when i clicked in a point
of map and union with other point.
The line somethimes not draw over the streen and draw over the houses.
Is possible know where is the street draw ??

Thanks.

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



Re: [Google Maps API v3] Re: Not full map in jquery dialog

2010-07-13 Thread Mark Young
Hello... I was having a similar problem on my page at
http://www.hamilton-classics.com/new/admin/events.php?dothis=add .  I
seem to have it working now until I set the dialog to  autoOpen:
false .  Now its showing grey tiles.

Can anyone help?

Thanks.

Mark Young

On 13 July 2010 05:46, Marx Zeng marx.z...@gmail.com wrote:
 Tty this.
 http://marx-tseng.appspot.com/maps/Map_In_jQuery_Dialog.html

 jquery dialog will be left blank default content around, so I can not
 completely fill the entire dialog

 On 7月13日, 上午4時41分, phiLipdexTer philip.dex...@gmail.com wrote:
 Hey all,
 I'm using a jquery dialog to show a map. Here are my current results.
 img594(dot)imageshack(dot)us/img594/7151/33241051.png
 When I take it out of the dialog I don't have the problem so I think
 the issue is that it's in the dialog ,,, I think.
 When I try to move the map around I can get it to fill the full
 dialog, but when I move the tile just outside it clears and all I get
 is grey until I move it around. In short,, I cannot move the map too
 far without having most of the tiles on the right hand side grey.
 Thanks

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



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



[Google Maps API v3] Re: Adding a custom icon stops the InfoWindow from displaying

2010-07-13 Thread geocode...@gmail.com
On Jul 13, 11:54 am, doug doug.ant...@gmail.com wrote:
 Hi,
 I've made a bit more progress since my earlier stumbling block.
 Sometimes it seems the hardest thing is knowing the right question to
 ask :-)

 I've added an array of custom icons but when I add the icon and shadow
 components to the createmarker function the info window no longer
 displays. Oddly the map pans so the infowindow would fit.

 I've set it up athttp://development.arvclub.co.uk/Forum/atlas.php
 Log on id is test user and the password is letmein.

Why password protected?


 Hope you can help again.

 Many thanks

 Doug

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



[Google Maps API v3] Re: Adding a custom icon stops the InfoWindow from displaying

2010-07-13 Thread geocode...@gmail.com
On Jul 13, 1:08 pm, geocode...@gmail.com geocode...@gmail.com
wrote:
 On Jul 13, 11:54 am, doug doug.ant...@gmail.com wrote:

  Hi,
  I've made a bit more progress since my earlier stumbling block.
  Sometimes it seems the hardest thing is knowing the right question to
  ask :-)

  I've added an array of custom icons but when I add the icon and shadow
  components to the createmarker function the info window no longer
  displays. Oddly the map pans so the infowindow would fit.

  I've set it up athttp://development.arvclub.co.uk/Forum/atlas.php
  Log on id is test user and the password is letmein.

 Why password protected?

Here are some examples of custom icons with infowindows (not password
protected):
http://www.geocodezip.com/v3_markers_infowindows.html
http://www.geocodezip.com/v3_markers_normal_colored_infowindows.html

  -- Larry






  Hope you can help again.

  Many thanks

  Doug- Hide quoted text -

 - Show quoted text -

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



[Google Maps API v3] Re: good way to ignore click event if it's part of a double click event?

2010-07-13 Thread Shadow
I agree, it is ugly and the timeout should be handled in the thing
that triggers the event. But that's the way we had to do it here.

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



[Google Maps API v3] Re: Polylines in Opera

2010-07-13 Thread Chad Killingsworth
I believe the iPhone uses SVG while Android uses CANVAS. That has
always seemed odd since they are both WebKit browsers.
See http://code.google.com/events/io/2010/sessions/maps-api-v3-api.html
at about 20 minutes in.

Marc Ridey mentioned at I/O that there was a significant bug in the
Android SVG implementation (prior to 2.2).

Chad Killingsworth

On Jul 13, 7:40 am, bratliff bratl...@umich.edu wrote:
 On Jul 12, 10:52 pm, Ben Appleton apple...@google.com wrote:

  I seem to recall iPhone needed clip in addition to / instead of overflow
  hidden.  But I should check more recent builds.

 Does the iPhone (WebKit) use SVG of CANVAS ?  CANVAS discards
 everything outside of its box without either style.clip or
 style.overflow.  SVG might be different.  style.clip='rect(0px,
 256px,256px,0px)' really hurts performance during fly-over
 animation.

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



Re: [Google Maps API v3] Re: Polylines in Opera

2010-07-13 Thread Marc Ridey
The bug was in the use of transformed cropped images in Canvas. SVG is not
supported in the current release of Android.

On Wed, Jul 14, 2010 at 8:55 AM, Chad Killingsworth 
chadkillingswo...@missouristate.edu wrote:

 I believe the iPhone uses SVG while Android uses CANVAS. That has
 always seemed odd since they are both WebKit browsers.
 See http://code.google.com/events/io/2010/sessions/maps-api-v3-api.html
 at about 20 minutes in.

 Marc Ridey mentioned at I/O that there was a significant bug in the
 Android SVG implementation (prior to 2.2).

 Chad Killingsworth

 On Jul 13, 7:40 am, bratliff bratl...@umich.edu wrote:
  On Jul 12, 10:52 pm, Ben Appleton apple...@google.com wrote:
 
   I seem to recall iPhone needed clip in addition to / instead of
 overflow
   hidden.  But I should check more recent builds.
 
  Does the iPhone (WebKit) use SVG of CANVAS ?  CANVAS discards
  everything outside of its box without either style.clip or
  style.overflow.  SVG might be different.  style.clip='rect(0px,
  256px,256px,0px)' really hurts performance during fly-over
  animation.

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



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



[Google Maps API v3] Google Maps “More” Button F or Displaying Videos, Pictures, Wikipedia, More Content

2010-07-13 Thread sneha
Hi, I want to include a button similar to the Google Map's More
button which has options to see the pictures, videos etc.. Any help
would be appreciated.

Thanks,
sneha

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



[Google Maps API v3] Multiple routes taken from an xml only show last entry API v3

2010-07-13 Thread Jose Carlos
Hi everybody!

I've been trying to implement a map which has multiple routes and
shows them at the same time. It seems that when the xml gets read, the
only info left is the last entry. This causes that the only route
rendered is the last one. I would be very grateful if you could give
me a hand with this problem.

The code I wrote is the following:

script type=text/javascript src=http://maps.google.com/maps/api/js?
sensor=false/script
script type=text/javascript src=scripts/downloadxml.js/script
script type=text/javascript

var directionsDisplay;
var directionsService = new google.maps.DirectionsService();
var map;

// function to calculate the route
  function calcRoute(point1,point2) {
var request = {
origin:point1,
destination:point2,
//waypoints: mrutas,
travelMode: google.maps.DirectionsTravelMode.DRIVING
};
directionsService.route(request, function(response, status) {
  if (status == google.maps.DirectionsStatus.OK) {
directionsDisplay.setDirections(response);
  }else{echo=error}
});
  }

  function initialize() {
// this makes the map
directionsDisplay = new google.maps.DirectionsRenderer();
var myOptions = {
zoom:6,
center: new google.maps.LatLng(40.371659, -3.62548),
mapTypeControl: true,
mapTypeControlOptions: {style:
google.maps.MapTypeControlStyle.DROPDOWN_MENU},
navigationControl: true,
mapTypeId: google.maps.MapTypeId.HYBRID,
}

map = new google.maps.Map(document.getElementById(rutas),
myOptions);
directionsDisplay.setMap(map);
// reads the data from the xml
downloadUrl(rutas01.xml, function(doc) {
var xmlDoc = xmlParse(doc);
var rutas =
xmlDoc.documentElement.getElementsByTagName(ruta);
for (var i = 0; i  rutas.length; i++) {
  // gets atributes for start point
  var point1 = new google.maps.LatLng(
parseFloat(rutas[i].getAttribute(lat1)),
parseFloat(rutas[i].getAttribute(lng1)));
  // gets atributes endt point
 var point2 = new google.maps.LatLng(
parseFloat(rutas[i].getAttribute(lat2)),
parseFloat(rutas[i].getAttribute(lng2)));
  // gets atributes for info window (not implemented yet)
  var html = rutas[i].getAttribute(html);
  // gets atributes for label (not implemented yet)
  var label = rutas[i].getAttribute(label);
  // calculates the route
  var cruta = calcRoute(point1,point2);
}
  });
  }

DATA IN THE XML

rutas
 ruta html=data to show in the infowindow Valencia Madrid
label=Sitio 1 lat1=39.470239 lng1=-0.376805 lat2=40.416691
lng2=-3.700345 /
 ruta html=data to show in the infowindow Sevilla Valencia
label=Sitio 2 lat1=37.38264 lng1=-5.996295 lat2=39.470239
lng2=-0.376805 /
  ruta html=data to show in the infowindow Madrid Sevilla
label=Sitio 3 lat1=40.416691 lng1=-3.700345 lat2=37.38264
lng2=-5.996295 /
/rutas


The online html
http://espanavision.es/web/mapas/recogida.html

Thank you in advance, best regards
Jose C Lopez

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



[Google Maps API v3] Static Map - Print Large Map

2010-07-13 Thread randomblink
Question... The Google Map Static API states that 640x640 is the
largest map possible. Short of generating several of these and tiling
them together, is there any way to get a decent sized map together for
a printing to a large plotter (like 62inches wide)?

Or am I just dreaming...?

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



[Google Maps API v3] Re: main.js error

2010-07-13 Thread dlevesque
I got the same issue on IE8. I don't know why but using the ajax api
fixed the problem:

google.load(maps, 3,  {other_params:sensor=false});
google.setOnLoadCallback(onLoadCallback);

function onLoadCallback()
{
// init google map here ...
}

Tested on IE6 and it works too.

Hope this help

Daniel

On 5 juil, 12:35, geocode...@gmail.com geocode...@gmail.com wrote:
 On Jul 5, 8:18 am, Ashley ash...@host365.com wrote:



  Hi

  We are having problems with the following code.

  maps.gstatic.com/intl/en_gb/mapfiles/api-3/1/6/main.js

  Problem at line 26 char 70

  Although in most browsers this causes no problems at all, in IE6 in a
  Citrix environment it appears to cause occasional problems with
  loading the Google functions (zoom and map/terrain/hybrid buttons) and
  in addition (the real problem) the markers can no longer be clicked on
  to bring up the pop-up info balloon. Clearly we arent 100% sure the js
  causes the error in this environment but at least if we can get rid of
  the js error, we can rule that out as contributing.

  Perhaps someone knows why this file causes problems and a workaround.
  Or perhaps someone has insight into foibles of the Citrix environment
  (WIn2k, IE6).

 That error is not very useful.  If you could post a link to your map
 and provide instructions on how to recreate the error, someone might
 be able to catch the error in a debugger and find the root cause.

   -- Larry



  Thanks

  Ashley



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



[Google Maps API v3] Setting the exact bounds of a map

2010-07-13 Thread Klaas
Hi,

I've got a simple map and I want to set it's exact bounds.

I tried using map.fitBounds(myBounds) and map.panToBounds(myBounds),
but both do not set the bounds. They just adjust the map bounds in the
way that myBounds fits into the displayed bounds.

If I call map.fitBounds( map.getBounds()), it zooms out. How can i
specify the exact bounds of a map? Something where
map.specialSettingOfBounds( map.getBounds()) does not modify the
bounds.

Any ideas?

Thanks for your help, any hints appreciated,
Klaas.

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



[Google Maps API v3] Re: Geocoding markers shows error when creating 11 or more

2010-07-13 Thread moderntymes
If there is throttling, which would certainly explain this, Google
should really say so in their API. If it weren't for their rate
limiting, seems like it would load plenty fast since the 10 that work
ok come up quite fast. Forty doesn't seem like so many to me,
considering I've seen examples where there are 100s or even thousands
of markers. I understand they must not be geolocating for those, but
still...

I read and re-read the section in the API regarding geolocation (again
just now) and didn't see anything about a rate limit, other than the
2500/day limit. I appreciate your info and quick responses, to make up
for what the online references lacked!

On Jul 13, 11:50 am, Rossko ros...@culzean.clara.co.uk wrote:
  I have no idea why there would be OVER_QUERY_LIMIT error, but isn't
  that on a per client basis anyway? I certainly haven't made 2500
  geolocation requests today. That seems very odd.

 Not odd at all.  2500/day is one every 35 seconds.   Google do allow
 you to have small bursts, but they do also apply a rate limit which
 your method is clearly breaking.   You need to throttle your
 requests.   Your map is going to load very slowly if you geocode every
 time someone views it.

 Geocode your data at point of entry to the database ; it matters not
 if it changes daily.  Not only does it prevent your application from
 hogging resources shared by other people, but your own map will
 perform many times faster.

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



[Google Maps API v3] Locations Along a Route

2010-07-13 Thread Mikee12
Hello, I can not find any example of locations along a route.  There
are examples for V2 but I found nothing for V3.  Any suggestions,
examples, hints woud be greatly appreciated.

Thank you.

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



[Google Maps API v3] Polygon with text

2010-07-13 Thread Pedro Montezinho
Hello,

It's possible to add some text to a polygon? I'm trying to put
something like a tag in a new poygon wich is visible directly in the
polygon.

Is it possible?

Thanks.

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



Re: [Google Maps API v3] KLM Parser / Renderer

2010-07-13 Thread Ben Appleton
No plans at this point.  How would JSON would be any more useful than raw
KML?  Afterall you can load the KML directly into the browser, parsing and
modifying it as you wish.  What JSON schema would we use?

On Tue, Jul 13, 2010 at 11:40 PM, bratliff bratl...@umich.edu wrote:

 Any plans to split the KML parsing  rendering services ?  It was a
 welcome change from V2 to V3 for the directions service.  Your gx or
 sf services already do it.  It enables changing the attributes of
 individual components of the KML file.

 Also, an off-line KML to JSONP conversion utility could be useful.

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



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



Re: [Google Maps API v3] Re: Polylines in Opera

2010-07-13 Thread Ben Appleton
Lack of Android SVG might be considered a serious bug in Android SVG ;-)

On Wed, Jul 14, 2010 at 9:07 AM, Marc Ridey mri...@google.com wrote:

 The bug was in the use of transformed cropped images in Canvas. SVG is not
 supported in the current release of Android.


 On Wed, Jul 14, 2010 at 8:55 AM, Chad Killingsworth 
 chadkillingswo...@missouristate.edu wrote:

 I believe the iPhone uses SVG while Android uses CANVAS. That has
 always seemed odd since they are both WebKit browsers.
 See http://code.google.com/events/io/2010/sessions/maps-api-v3-api.html
 at about 20 minutes in.

 Marc Ridey mentioned at I/O that there was a significant bug in the
 Android SVG implementation (prior to 2.2).

 Chad Killingsworth

 On Jul 13, 7:40 am, bratliff bratl...@umich.edu wrote:
  On Jul 12, 10:52 pm, Ben Appleton apple...@google.com wrote:
 
   I seem to recall iPhone needed clip in addition to / instead of
 overflow
   hidden.  But I should check more recent builds.
 
  Does the iPhone (WebKit) use SVG of CANVAS ?  CANVAS discards
  everything outside of its box without either style.clip or
  style.overflow.  SVG might be different.  style.clip='rect(0px,
  256px,256px,0px)' really hurts performance during fly-over
  animation.

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


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


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



Re: [Google Maps API v3] Geocoder.geocode returns ERROR on a long running page.

2010-07-13 Thread Ben Appleton
Your session expires after a day or so.  Can you reload the page once a day?

On Wed, Jul 14, 2010 at 1:36 AM, Jeff ggior...@gmail.com wrote:

 I have a long running page that is used to display status items and a
 map.  The page itself can be up for days, in a 24 hour period, it
 might need to geocode an address 2 or 3 times.

 At some point, the status of a geocode request will be ERROR and
 then no more geocode requests will work until the page it refreshed.

 I have very similar code for V2 and V3 of the API, the V2 version runs
 flawlessly for weeks on end.  The V3 version fails after 24 to 36
 hours.  I have not been able to reproduce on demand, but it is fairly
 reliable that within 24 to 36 hours there will be a failure.  I have
 been able to (just now) trap the situation in the debugger, and
 nothing appears to be amiss.  The code that I'm using is as follows:

 I'm loading the api with: script src=http://maps.google.com/maps/api/
 js?sensor=false type=text/javascript/script

 Then in my event handler for when I need to move the map, I have the
 following code:
if (window.console)
console.log(Doing Geocode now);
var coder = new google.maps.Geocoder();
coder.geocode({ address: result.Address }, function
 (georesult, status) {
if (window.console)
console.log(Geocode result: %d, status);
if (status == google.maps.GeocoderStatus.OK) {
moveMap(georesult[0].geometry.location.lat(),
 georesult[0].geometry.location.lng(),
 georesult[0].geometry.location_type, result.AlarmID);
}
});

 This runs/works as expected for hours and sometimes days on end, then
 the returned status will be ERROR and then it's dead.
 I suspect that there is some cached / global item that goes stale and
 does not get refreshed until the page is refreshed.

 Any thoughts on how to avoid / workaround / recover would be greatly
 appreciated.


 I do get the following error from IE, doubt it had anything to do with
 this problem...
 User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/
 4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
 3.0.30729; Media Center PC 6.0; Tablet PC 2.0; Zune
 4.0; .NET4.0C; .NET4.0E; OfficeLiveConnector.1.4; OfficeLivePatch.1.3;
 InfoPath.2)
 Timestamp: Tue, 13 Jul 2010 15:15:42 UTC


 Message: Unspecified error.
 Line: 25
 Char: 517
 Code: 0
 URI: http://maps.gstatic.com/intl/en_us/mapfiles/api-3/1/6/main.js


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



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



[Google Maps API v3] Re: Polyline thickness and zoom

2010-07-13 Thread William
On Jul 12, 1:40 am, bratliff bratl...@umich.edu wrote:
 It seems to me you will have to determine the tangent at each vertex
 in order to have a fixed displacement from each vertex along the
 perpendicular to the tangent.  It requires interpolation along each of
 two line segments connecting each vertex with its two immediate
 neighbors in order to have two equidistant verticies from which the
 tangent can be determined.  It is feasible.  It is a lot of overhead
 for JavaScript.

yeah that's what the example does, but the fixed displacement is in
mercator units (map pixels) and the polylines are stored in latlngs,
so there's large overhead reprojecting the data.  To remove the
reprojection overhead, I'll do an example with the data in mercator
using raw SVG/VML.

This will also give a performance comparison with the V3
google.maps.Polyline, which is a heavyweight implementation. I am sure
that javascript will be quick enough for the parallel calculations.

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



Re: [Google Maps API v3] Re: MarkerClusterer for V3

2010-07-13 Thread Luke Mahé
Hey Jarrod,

I was thinking allowing a option to make the cluster center be the true
center. The reason it is not at the moment is because I wanted it to act the
same as the v2 clusterer so developers could easily switch over, but I will
have a look at adding it soon.

-- Luke


On Wed, Jul 14, 2010 at 2:21 AM, Jarrod mcg...@gmail.com wrote:

 Hi Luke,

 Really liking the MarkerClusterer plugin.

 Just wondering if there is a better way to get the center of a cluster
 as it just seems to set the center based on the first marker in the
 cluster. This isn't a huge issue, it's just quite a noticable
 difference for markers that are on the edges of the grid.

 Cheers,
 Jarrod

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



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



[Google Maps API v3] Re: OVER_QUERY_LIMIT For Elevation Service

2010-07-13 Thread William
On Jul 13, 1:50 am, JavaJive c.e.m.harri...@macfh.co.uk wrote:
 For the results below where I am trying to create a reliable
 system of recovery if an error is caused ...

I agree this is the most important part of the system, to have
assurance it's going to work in all conditions, and so far there's
been OVER_QUERY_LIMIT and UNKNOWN_ERROR, which require different
handling.  I will try to replicate your results with the
UNKNOWN_ERROR:

 A:  A subsequent re-sending of the request is almost guaranteed to
fail with the same error
 B:  Request(s) that initially return UNKNOWN_ERROR later appear to
return OK, but by then the record of which transmitter the results
refer to have been lost when the request object destroyed itself after
the initial error.

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



RE: [Google Maps API v3] Multiple routes taken from an xml only show last entry API v3

2010-07-13 Thread Ralph Ames
http://espanavision.es/web/mapas/recogida.html

I get no map in IE7 maybe because of this line

mapTypeId: google.maps.MapTypeId.HYBRID,

It has a comma at the end that's not needed.


Ralph
-
www.easypagez.com/maps/map_index.html
www.easypagez.com/maps/v3_basicmap.html





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

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



[Google Maps API v3] Re: Mini map need smaller marker icons

2010-07-13 Thread geocode...@gmail.com
On Jul 13, 1:58 pm, Marc mdso...@gmail.com wrote:
 I am using a small map just 250W x 150H. My preferance is to shrink
 everything porportionalty but how? Or I have managed to make size
 adjustments on everything except the markers. How can I resize the
 markers, and remove the shadow.

Custom markers like these:
http://www.geocodezip.com/v3_markers_red.html
or these:
http://www.geocodezip.com/v3_markers_colored.html
or you could even do the little red dots

  Does that help?

  -- Larry

 I could put the zoom controls back if
 they can be shrink too. Any help would be greatly appreciated. Here is
 my code.

 !DOCTYPE doctype PUBLIC -//w3c//dtd html 4.0 transitional//en
 html
 head
   meta http-equiv=Content-Type
  content=text/html; charset=iso-8859-1

 style type=text/css
 * {margin:0;padding:0;}
 #map_container {position:relative;margin:1px;}
 #map_canvas {width:250px;height:150px;border:1px solid black;}

 }

 !--
 .style1 {font-size: 14px}

 }

 .style17 {font-size: 36px}
 --
   /style

 script type=text/javascript src=http://maps.google.com/maps/api/js?
 sensor=false/script
 script type=text/javascript
   var map;
   function initialize() {
     var map_center = new google.maps.LatLng(37.3190500, -119.5564800);
     var store1 = new google.maps.LatLng(37.321664, -119.563259);
     var store2 = new google.maps.LatLng(37.318913, -119.549177);
     var store3 = new google.maps.LatLng(37.318088, -119.550151);
     var store4 = new google.maps.LatLng(37.315256, -119.563599);
         var store5 = new google.maps.LatLng(37.319600, -119.548500);

     var myOptions = {
       zoom: 14,
       center: map_center,
           disableDefaultUI: true,
           navigationControl: false,
       scaleControl: false,
       mapTypeId: google.maps.MapTypeId.ROADMAP
     }
     map = new google.maps.Map(document.getElementById(map_canvas),
 myOptions);

     var marker1 = new google.maps.Marker({
         position: store1,
         map: map,
         title:N1
     });
     var marker2 = new google.maps.Marker({
         position: store2,
         map: map,
         title:N2
     });
     var marker3 = new google.maps.Marker({
         position: store3,
         map: map,
         title:C1
     });
     var marker4 = new google.maps.Marker({
         position: store4,
         map: map,
         title:C2
         });
     var marker5 = new google.maps.Marker({
         position: store5,
         map: map,
         title:J1
     });
     google.maps.event.addListener(marker1, 'click', function() {
       map.set_center(store1);
       map.set_zoom(10);
     });
     google.maps.event.addListener(marker2, 'click', function() {
       map.set_center(store2);
       map.set_zoom(10);
     });
     google.maps.event.addListener(marker3, 'click', function() {
       map.set_center(store3);
       map.set_zoom(10);
     });
     google.maps.event.addListener(marker4, 'click', function() {
       map.set_center(store4);
       map.set_zoom(10);
     });
         google.maps.event.addListener(marker5, 'click', function() {
       map.set_center(store5);
       map.set_zoom(10);
     });
   }
 /script

 center
                    body onload=initialize()center
   div id=map_container
   div id=map_canvas/div/div
 /body
 /html

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



[Google Maps API v3] Re: Setting the exact bounds of a map

2010-07-13 Thread Rossko
 I've got a simple map and I want to set it's exact bounds.

You can't ; zoom is only available in integer levels, so a map of
fixed viewing pane size cannot be exactly fitted to any particular
bounds.   Then there's the issue of proportions ; if your bounds were
square and the viewport rectangular an exact fit cannot be achieved.
Square is itself pretty meaningless here, due to looking at a curved
world's surface through the distortion of Mercator's projection.

The fitBounds method does what it can to give a map view that
_includes_ the given bounds, but usually includes a bit more too.
What you see is how it is intended to work.

If you want to change the map centre without changing the zoom, you
can.

I guess you could write some complicated code that actually resized
the map pane somewhere in between a minimum size and a maximum twice
as big, to give a good fit to bounds ; it would look a bit weird in
action though.

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



[Google Maps API v3] Re: Geocoding markers shows error when creating 11 or more

2010-07-13 Thread geocode...@gmail.com
On Jul 13, 3:44 pm, moderntymes doug-goo...@moderntymes.com wrote:
 If there is throttling, which would certainly explain this, Google
 should really say so in their API. If it weren't for their rate
 limiting, seems like it would load plenty fast since the 10 that work
 ok come up quite fast. Forty doesn't seem like so many to me,
 considering I've seen examples where there are 100s or even thousands
 of markers. I understand they must not be geolocating for those, but
 still...
They aren't geocoding, they are using latitude and longitude directly
without using any additional resources from google other than the API
javascript and the map tiles.

Geocoding is a shared free resource.  You are trying to hog it.  The
rate limit prevents people from doing that.

  -- Larry


 I read and re-read the section in the API regarding geolocation (again
 just now) and didn't see anything about a rate limit, other than the
 2500/day limit. I appreciate your info and quick responses, to make up
for what the online references lacked!

 On Jul 13, 11:50 am, Rossko ros...@culzean.clara.co.uk wrote:



   I have no idea why there would be OVER_QUERY_LIMIT error, but isn't
   that on a per client basis anyway? I certainly haven't made 2500
   geolocation requests today. That seems very odd.

  Not odd at all.  2500/day is one every 35 seconds.   Google do allow
  you to have small bursts, but they do also apply a rate limit which
  your method is clearly breaking.   You need to throttle your
  requests.   Your map is going to load very slowly if you geocode every
  time someone views it.

  Geocode your data at point of entry to the database ; it matters not
  if it changes daily.  Not only does it prevent your application from
  hogging resources shared by other people, but your own map will
  perform many times faster.- Hide quoted text -

 - Show quoted text -

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



[Google Maps API v3] Re: Polygon with text

2010-07-13 Thread Marx Tseng
Try this sample.

http://marx-tseng.appspot.com/maps/Polygons.html


On 7月14日, 上午2時22分, Pedro Montezinho pedro.montezi...@gmail.com
wrote:
 Hello,

 It's possible to add some text to a polygon? I'm trying to put
 something like a tag in a new poygon wich is visible directly in the
 polygon.

 Is it possible?

 Thanks.

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



[Google Maps API v3] Re: Google Maps “More” Butt on For Displaying Videos, Pictures, Wikipedia, More Conten t

2010-07-13 Thread Marx Tseng
Try this sample.
http://marx-tseng.appspot.com/maps/Custom_Control.html
or
http://marx-tseng.appspot.com/maps/POC_Public_Security_Map.html

On 7月14日, 上午4時10分, sneha snehamd...@gmail.com wrote:
 Hi, I want to include a button similar to the Google Map's More
 button which has options to see the pictures, videos etc.. Any help
 would be appreciated.

 Thanks,
 sneha

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



[Google Maps API v3] JavaScript / Markers Loop Question

2010-07-13 Thread Mike
Hi,

I have a map with multiple markers loading from XML.

The markers load properly, but no matter which marker I click, the
same bubble pops up on the same marker.

Here is my loop:
=

  var markers =
data.documentElement.getElementsByTagName(marker);
  for (var i = 0; i  markers.length; i++)
  {
var bubbletext = p+ markers[i].getAttribute(club) + ::
+ markers[i].getAttribute(stat) +/p;
var latlng = new
google.maps.LatLng(parseFloat(markers[i].getAttribute(lat)),parseFloat(markers[i].getAttribute(lng)));
var infowindow = new google.maps.InfoWindow({content:
bubbletext});
var marker = new google.maps.Marker({position: latlng, map:
map});
google.maps.event.addListener(
marker, click, function() {
infowindow.open(map, marker);
});
   }
 });

=

Any help would be appreciated.
Thanks, Mike

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



[Google Maps API v3] Re: JavaScript / Markers Loop Question

2010-07-13 Thread geocode...@gmail.com
On Jul 13, 7:42 pm, Mike rotti...@gmail.com wrote:
 Hi,

 I have a map with multiple markers loading from XML.

 The markers load properly, but no matter which marker I click, the
 same bubble pops up on the same marker.

You aren't getting function closure on the markers.
Pitfall number 3 on Mike Williams' (v2) Tutorial:
The Basics - Part 1 Markers with info windows
http://econym.org.uk/gmap/basic1.htm


 Here is my loop:
 =

       var markers =
 data.documentElement.getElementsByTagName(marker);
       for (var i = 0; i  markers.length; i++)
       {
         var bubbletext = p+ markers[i].getAttribute(club) + ::
 + markers[i].getAttribute(stat) +/p;
         var latlng = new
 google.maps.LatLng(parseFloat(markers[i].getAttribute(lat)),parseFloat(ma­rkers[i].getAttribute(lng)));
         var infowindow = new google.maps.InfoWindow({content:
 bubbletext});
         var marker = new google.maps.Marker({position: latlng, map:
 map});
         google.maps.event.addListener(
         marker, click, function() {
                 infowindow.open(map, marker);
         });
        }
      });

 =

 Any help would be appreciated.

Does this help:
http://www.geocodezip.com/v3_MW_example_map3.html

  -- Larry


 Thanks, Mike

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



[Google Maps API v3] Re: JavaScript / Markers Loop Question

2010-07-13 Thread Mike
Thanks for the reply Larry, but not really. I am confused by this
unroll stuff  :/

On Jul 13, 10:57 pm, geocode...@gmail.com geocode...@gmail.com
wrote:
 On Jul 13, 7:42 pm, Mike rotti...@gmail.com wrote:

  Hi,

  I have a map with multiple markers loading from XML.

  The markers load properly, but no matter which marker I click, the
  same bubble pops up on the same marker.

 You aren't getting function closure on the markers.
 Pitfall number 3 on Mike Williams' (v2) Tutorial:
 The Basics - Part 1 Markers with info 
 windowshttp://econym.org.uk/gmap/basic1.htm







  Here is my loop:
  =

        var markers =
  data.documentElement.getElementsByTagName(marker);
        for (var i = 0; i  markers.length; i++)
        {
          var bubbletext = p+ markers[i].getAttribute(club) + ::
  + markers[i].getAttribute(stat) +/p;
          var latlng = new
  google.maps.LatLng(parseFloat(markers[i].getAttribute(lat)),parseFloat(ma 
  ­rkers[i].getAttribute(lng)));
          var infowindow = new google.maps.InfoWindow({content:
  bubbletext});
          var marker = new google.maps.Marker({position: latlng, map:
  map});
          google.maps.event.addListener(
          marker, click, function() {
                  infowindow.open(map, marker);
          });
         }
       });

  =

  Any help would be appreciated.

 Does this help:http://www.geocodezip.com/v3_MW_example_map3.html

   -- Larry



  Thanks, Mike

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



[Google Maps API v3] Re: JavaScript / Markers Loop Question

2010-07-13 Thread Marx Tseng
Try this sample.
http://marx-tseng.appspot.com/maps/Markers_Infowindow.html

On 7月14日, 上午10時42分, Mike rotti...@gmail.com wrote:
 Hi,

 I have a map with multiple markers loading from XML.

 The markers load properly, but no matter which marker I click, the
 same bubble pops up on the same marker.

 Here is my loop:
 =

       var markers =
 data.documentElement.getElementsByTagName(marker);
       for (var i = 0; i  markers.length; i++)
       {
         var bubbletext = p+ markers[i].getAttribute(club) + ::
 + markers[i].getAttribute(stat) +/p;
         var latlng = new
 google.maps.LatLng(parseFloat(markers[i].getAttribute(lat)),parseFloat(ma 
 rkers[i].getAttribute(lng)));
         var infowindow = new google.maps.InfoWindow({content:
 bubbletext});
         var marker = new google.maps.Marker({position: latlng, map:
 map});
         google.maps.event.addListener(
         marker, click, function() {
                 infowindow.open(map, marker);
         });
        }
      });

 =

 Any help would be appreciated.
 Thanks, Mike

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



[Google Maps API v3] Re: JavaScript / Markers Loop Question

2010-07-13 Thread Chad Killingsworth
Larry is correct in that it is a closure problem. Take a look at
Daniel's write up of the issue and see if that makes things clearer:
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/f40390e4a6ba89e9/25a246d92f93e9ea#25a246d92f93e9ea

Chad Killingsworth

On Jul 13, 10:20 pm, Mike rotti...@gmail.com wrote:
 Thanks for the reply Larry, but not really. I am confused by this
 unroll stuff  :/

 On Jul 13, 10:57 pm, geocode...@gmail.com geocode...@gmail.com
 wrote:



  On Jul 13, 7:42 pm, Mike rotti...@gmail.com wrote:

   Hi,

   I have a map with multiple markers loading from XML.

   The markers load properly, but no matter which marker I click, the
   same bubble pops up on the same marker.

  You aren't getting function closure on the markers.
  Pitfall number 3 on Mike Williams' (v2) Tutorial:
  The Basics - Part 1 Markers with info 
  windowshttp://econym.org.uk/gmap/basic1.htm

   Here is my loop:
   =

         var markers =
   data.documentElement.getElementsByTagName(marker);
         for (var i = 0; i  markers.length; i++)
         {
           var bubbletext = p+ markers[i].getAttribute(club) + ::
   + markers[i].getAttribute(stat) +/p;
           var latlng = new
   google.maps.LatLng(parseFloat(markers[i].getAttribute(lat)),parseFloat(ma
­rkers[i].getAttribute(lng)));
           var infowindow = new google.maps.InfoWindow({content:
   bubbletext});
           var marker = new google.maps.Marker({position: latlng, map:
   map});
           google.maps.event.addListener(
           marker, click, function() {
                   infowindow.open(map, marker);
           });
          }
        });

   =

   Any help would be appreciated.

  Does this help:http://www.geocodezip.com/v3_MW_example_map3.html

    -- Larry

   Thanks, Mike

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



[Google Maps API v3] Re: Polylines in Opera

2010-07-13 Thread Chad Killingsworth
Yes I do believe I would consider lack of support to be a serious SVG
bug :-) Right along with multitouch events.

Chad Killingsworth

On Jul 13, 7:14 pm, Ben Appleton apple...@google.com wrote:
 Lack of Android SVG might be considered a serious bug in Android SVG ;-)



 On Wed, Jul 14, 2010 at 9:07 AM, Marc Ridey mri...@google.com wrote:
  The bug was in the use of transformed cropped images in Canvas. SVG is not
  supported in the current release of Android.

  On Wed, Jul 14, 2010 at 8:55 AM, Chad Killingsworth 
  chadkillingswo...@missouristate.edu wrote:

  I believe the iPhone uses SVG while Android uses CANVAS. That has
  always seemed odd since they are both WebKit browsers.
  Seehttp://code.google.com/events/io/2010/sessions/maps-api-v3-api.html
  at about 20 minutes in.

  Marc Ridey mentioned at I/O that there was a significant bug in the
  Android SVG implementation (prior to 2.2).

  Chad Killingsworth

  On Jul 13, 7:40 am, bratliff bratl...@umich.edu wrote:
   On Jul 12, 10:52 pm, Ben Appleton apple...@google.com wrote:

I seem to recall iPhone needed clip in addition to / instead of
  overflow
hidden.  But I should check more recent builds.

   Does the iPhone (WebKit) use SVG of CANVAS ?  CANVAS discards
   everything outside of its box without either style.clip or
   style.overflow.  SVG might be different.  style.clip='rect(0px,
   256px,256px,0px)' really hurts performance during fly-over
   animation.

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

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

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



[Google Maps API v3] Custom KML icons not showing

2010-07-13 Thread Richardmtl
Hi!

So I've seen this issue being mentioned a few times in this forum, but
I haven't come across a solution that seems to work.

My map is on my main site (http://mexicometro.org; don't bother
worrying about the other pages, I'm in the process of switching over
to v3 and I'm not done yet, only on my index.php). I have tried to
load a kmz file that has many custom icons, but all I get is the blue
default icon. Same with google maps (though I noticed that on Google
Maps, SOME of the icons appear).

I tried with 2 differently-named files (thinking that it was maybe the
Google cache; I had an error in my kmz before because I wasn;t giving
an absolute href for the icons): http://mexicometro.org/Mexico-Metro.kmz
and http://mexicometro.org/test.kmz


Oh! I just n!oticed that if I turn on and off some of the icons on the
google maps page, some of them turn into the blue default icon! So
there's a limit as to how many will appear on the google maps. But why
would that limit affect my map using the api? And in any case, NO
custom icons appear on my page.

So, any advice?

Thanks,

Richard



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



[Google Maps API v3] Missing satellite tile with Google Maps V3 in China

2010-07-13 Thread scubajeff
Dear Google Maps Team,

I'm working in China, recently upgrade to V3, the ROADMAP and TERRAIN
maps display flawlessly, but the SATELLITE and HYBRID mode shows
Sorry, we don't have imagery view here frequently. Any help please?
Is it because the your Maps business license issue in China?

BTW, my application use maps.google.com, not ditu.google.com.

Jeff

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



[Google Maps API v3] Re: Missing satellite tile with Google Maps V3 in China

2010-07-13 Thread scubajeff
and watching the browser status bar when the script loading tiles,
seems like the script hits sorry.google.com many times.


On 7月14日, 上午11时46分, scubajeff scubajeff...@gmail.com wrote:
 Dear Google Maps Team,

 I'm working in China, recently upgrade to V3, the ROADMAP and TERRAIN
 maps display flawlessly, but the SATELLITE and HYBRID mode shows
 Sorry, we don't have imagery view here frequently. Any help please?
 Is it because the your Maps business license issue in China?

 BTW, my application use maps.google.com, not ditu.google.com.

 Jeff

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