Re: [Google Maps API v3] Re: loading kml and fusion tables layers using JSON

2011-05-18 Thread Chris Broadfoot
Correct. setMap(undefined) will act the same as setMap(null) even though
this is undocumented behaviour.

On Thu, May 19, 2011 at 6:57 AM, Michael Geary  wrote:

> On Wed, May 18, 2011 at 11:56 AM, Rossko wrote:
>
>> > var map;
>>
>> Thats an empty variable called 'map' in global scope
>> ...
>>
>> > overlay.setMap(map);
>>
>> This attempts to add an overlay to the empty variable in global scope.
>> No javascript error reported?
>>
>
> It may just be a no-op. The code is basically doing this:
>
> overlay.setMap( undefined );
>
> That may (the docs don't say) be treated the same as:
>
> overlay.setMap( null );
>
> So it would remove the overlay from a map if it's on one, or do nothing if
> it's not. (The docs don't make this clear either, but I suspect this isn't
> treated as an error.)
>
> Of course, that's not what the OP wants to have happen - and you already
> showed *why* map is undefined - but it would explain the lack of a JS error.
>
> -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-v3@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.
>



-- 
http://twitter.com/broady

-- 
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-v3@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: Using the places library without a map on the same page

2011-05-18 Thread Johannes Schill
Hi Thor!

Thanks for your quick reply. To rephrase: we're using a map, but its
not shown until the user clicks on a search result from the
autocomplete feature. I'll double-check the terms. Isnt it possible to
manually feed the Autocomplete with manually set bounds instead of the
map.getBounds()?

I tried another approach, using the webservice[4] instead, but it
didnt work as I expected; "debaser stockholm" gave me 3 hits,
"stockholm debaser" 1 hit, "debaser" 0 hits. I only included the
required parameters to make the search as world-wide  as possible. Is
it a bit shaky or is that expected?

[4] http://code.google.com/apis/maps/documentation/places/autocomplete.html

Thanks again and hi from Sweden.

Johannes

-- 
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-v3@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] Marker V3 and Draggable Marker V3 did not appear on my browser.

2011-05-18 Thread Chris Broadfoot
What browser and operating system are you using? Can you replicate this on
another computer? Can you take a screenshot, please?

Can you see the marker in the page you linked? If so, could you please link
to your own test/demo pages that you're having troubles with.

On Thu, May 19, 2011 at 1:21 PM, jesar james  wrote:

> Hello, I'm a noob in using/developing Google Maps JavaScript API v3.
> I'm having a problem with my test/demo pages
> when it comes to the Marker V3 and Draggable Marker V3. They didn't
> appear on any of my test/demo pages.
> I even tried copying the codes from
> http://code.google.com/apis/ajax/playground/#draggable_marker_v3
> but still, no
> Marker/Draggable Marker was displayed. What could I have been doing
> wrong? Why do such things happen?
>
> I hope to hear from any of you soon. 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-v3@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.
>
>


-- 
http://twitter.com/broady

-- 
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-v3@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] Using V3 with Mapstraction

2011-05-18 Thread Chris Broadfoot
As far as I know Mapstraction supports V3.

You need to specify the sensor parameter when loading with the AJAX loader:

google.load("maps","3", {"other_params":"sensor=true_or_false"});

Loading the script from
https://maps.google.com/maps/api/js?sensor=true_or_false should work, so I'm
going to have to ask you to get support from Mapstraction on this one.

-- 
http://twitter.com/broady

-- 
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-v3@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] Marker V3 and Draggable Marker V3 did not appear on my browser.

2011-05-18 Thread jesar james
Hello, I'm a noob in using/developing Google Maps JavaScript API v3.
I'm having a problem with my test/demo pages
when it comes to the Marker V3 and Draggable Marker V3. They didn't
appear on any of my test/demo pages.
I even tried copying the codes from 
http://code.google.com/apis/ajax/playground/#draggable_marker_v3
but still, no
Marker/Draggable Marker was displayed. What could I have been doing
wrong? Why do such things happen?

I hope to hear from any of you soon. 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-v3@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: Calculate heading to the marker in street view

2011-05-18 Thread Chris Broadfoot
You might want something like this:

http://geoapis.appspot.com/agdnZW9hcGlzchMLEgtFeGFtcGxlQ29kZRjRiQIM

Chris

-- 
http://twitter.com/broady

-- 
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-v3@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] MarkerClusterer - please Help!

2011-05-18 Thread Chris Broadfoot
See the MarkerClusterer docs for examples:
http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclusterer/docs/examples.html

On Thu, May 19, 2011 at 2:28 AM, majora  wrote:

> Hi
>
> Trying to implement a way to limit the amount of makers shown on my map
> when it loads and though that markerclusterer might be a solution. I'm a
> complete nob however and have no idea how to implement it. I've listed my
> code below and wonder if any0pje could give me any ideas how to chnage the
> code so that I can use this new code?
>
> thanks very much
>
> var map;
>
> var myCentreLat = 54.50;
> var myCentreLng = -4.00;
>
> var initialZoom = 6;
>
> function infoCallback(infowindow, marker) {
>  return function() {
>   infowindow.open(map, marker);
>  };
> }
>
> function addMarker(myPos,myTitle,myInfo,myIcon) {
>
>   var marker = new google.maps.Marker({
> position: myPos,
> map: map,
> title: myTitle,
> icon: myIcon,
> });
>
> var infowindow = new google.maps.InfoWindow({content: myInfo});
>   google.maps.event.addListener(marker, 'click', infoCallback(infowindow,
> marker));
>
>
> }
>
> function initialize() {
>   var latlng = new google.maps.LatLng(myCentreLat,myCentreLng);
>   var myOptions = {
> zoom: initialZoom,
> center: latlng,
> mapTypeControlOptions: {style:
> google.maps.MapTypeControlStyle.DEFAULT},
> scaleControl: true,
> scaleControlOptions: {position: google.maps.ControlPosition.RIGHT_TOP},
> zoomControlOptions: {style: google.maps.ZoomControlStyle.SMALL},
> mapTypeId: google.maps.MapTypeId.HYBRID,
>   };
>   map = new
> google.maps.Map(document.getElementById("map_canvas"),myOptions);
>
>   for (Id in uni_data) {
>   var info = "" + uni_data[Id].Name +
> "" + "Address: " + uni_data[Id].Address + "" + "" +
> "Rank of 118: " + uni_data[Id].Rank + "" + "Undergraduates: " +
> uni_data[Id].Undergraduates +" - " + "Postgraduates: " +
> uni_data[Id].Postgraduates + "" + "Subject Scores/100" +
> "" + "Chemistry - " + uni_data[Id].Chemistry + " - " + "IT - " +
> uni_data[Id].IT + "" + "Earth Sciences - " + uni_data[Id].Geography
> + " - " + "Mathematics - " + uni_data[Id].Mathematics + "" +
> "Medicine - " + uni_data[Id].Medicine + " - " + "Law - " +
> uni_data[Id].Law + "" + uni_data[Id].URL + "";
>
>   // Convert co-ords
>   var osPt = new OSRef(uni_data[Id].Easting,uni_data[Id].Northing);
>   var llPt = osPt.toLatLng(osPt);
>   llPt.OSGB36ToWGS84();
>
> var myIcon;
>   for (LawRank in uni_data){
> if (uni_data[Id].LawCat == '25') {
> myIcon = '
> http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=' +
> uni_data[Id].LawRank + '|FF'
> }
> else if (uni_data[Id].LawCat == '50') {
> myIcon = '
> http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=' +
> uni_data[Id].LawRank + '|FF6600'
> }
> else if (uni_data[Id].LawCat == '75') {
> myIcon = '
> http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=' +
> uni_data[Id].LawRank + '|FBB917'
> }
> else {
> myIcon = '
> http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=' +
> uni_data[Id].LawRank + '|B1FB17'
>};
>
>   }
>   addMarker(new
> google.maps.LatLng(llPt.lat,llPt.lng),uni_data[Id].Name,info, myIcon);
>}
> }
>
> --
> 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-v3@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.
>



-- 
http://twitter.com/broady

-- 
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-v3@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] All markers not shown in any browser anymore...

2011-05-18 Thread Chris Broadfoot
Read this first:
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/2b3f101fd509919e

-- 
http://twitter.com/broady

-- 
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-v3@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] Geo-coding API Issue

2011-05-18 Thread Chris Broadfoot
I'm not sure what you're actually asking. Can you summarise?

On Wed, May 18, 2011 at 11:36 PM, Laura A.  wrote:

> Here’s the scoop:
>
> We are building a dealer locater for a client of ours. During testing
> we discovered that every call to the Google geo-coding API is
> returning a “QUERY_LIMIT_REACHED”
>
> It seems that our client’s prior setup has upset Google and it is now
> denying all requests from OpusRoofBlanket.com. According to our Tech
> team, the former system was reaching out for the requested zip code on
> every page load, and each of those would be considered a query.  Under
> the current API license that Google allows you to use for free, you
> cannot exceed 2,500 queries.
>
> So, here’s the quote from our Tech guy:
>
> “In my searches, I found that the requests worked fine if done on the
> local site. It is only on the live site this issue is occurring. After
> further review of the Google Geocoding API, it is my belief that
> Google has done one of a few possible items:
>
> A) Google blocked all access to the GeoCoding API From the Opus
> roofing site.
>
> B) Lowered the max limit from 2,500 Per day for the opus site (This is
> in the API info).
>
> C) Increased the minimum amount of time between requests (IE: Instead
> of one call per minute, One Call Per Hour, Etc)”
>
> He also has this to say:
>
> “Every call to Google’s geocoding API (Part of Google Maps) is failing
> with an error of ‘QUERY_LIMIT_REACHED’. The system is using the v3
> API, querying
> https://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=X
> Where  is the zip code to search. Currently, there should be no
> calls to the API other than 3 sections of the site. The first is the
> admin, the second is http://opusroofblanket.com/dealers (Built by RCI
> to replace the original) and the third (The original locator) is
> http://opusroofblanket.com/dealer-locator/ .Both of these are
> currently not publicly available so there should be no reason for the
> limit error to occur. On a log of the system, there has been one call
> to the API in the past 5 days.
>
> The only thing I can conclude is the the opus site has been locked
> from using the geo-coding API in general.
> If so, we need to know why this was and what we can do to resolve it.
>
> The new system is set up so that it stores the details for searched
> zips into the database so only one call will happen. When running on a
> development server, the system works fine and now errors are
> returned.”
>
>
> We appreciate any help and feedback that anybody can supply, so that
> we may resolve this issue for our client.
>
> 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-v3@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.
>
>


-- 
http://twitter.com/broady

-- 
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-v3@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] color coded regions dynamic report kmllayer

2011-05-18 Thread Chris Broadfoot
Have you considered using Fusion Tables? Combined with the new dynamic
styling API, you could style polygons on the fly:
http://googlegeodevelopers.blogspot.com/2011/05/turn-up-power-of-your-fusion-tables.html

On Thu, May 19, 2011 at 9:36 AM, geo12345  wrote:

> There doesn't seem to be much up-take in my question so maybe I should
> re-phrase:
>
> I'm using precooked colored kml layers (red, orange, yellow, green, blue,
> indigo, violet) because parsing the polygon data on the browser would take
> forever
> the polygon data is approx 30 MB in total.
>
> This has the limitation that we can't dynamically color-code the polygons.
> We can't dynamically change the balloon text.
>
> Maybe if the polygon data were much smaller eg 60 KB it would be possible
> to handle client side using eg geoxml3
>
> My question is: has anyone else taken the approach of predefining a limited
> set of colored kml layers and rendering reports with this set of regions?
>
> Or would an alternative be to simplify the polygon shapes such that they
> are much smaller and handle client side with the advantage of changing the
> balloon text on the fly?
>
> I am interested to hear what existing successful projects have done
>
> --
> 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-v3@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.
>



-- 
http://twitter.com/broady

-- 
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-v3@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] Load saved polyline in Directions service

2011-05-18 Thread Chris Broadfoot
Can I suggest another solution that may be more in line with our terms of
service?

Consider saving the waypoints in your database, and when you want to display
them again, send off a request again to the DirectionsService.

You'll also notice this will likely conform better to our terms of service.

-- 
http://twitter.com/broady

-- 
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-v3@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: How can I write or etch text directly onto a map? Or, I want to etch text onto a zip code region.

2011-05-18 Thread Chris Broadfoot
On Thu, May 19, 2011 at 5:34 AM, trouble  wrote:

> Since I just need the numbers, I could make png images for numbers 0-9.
> Then, draw the zip code using those images.  The question then becomes how
> can i overlay an image onto a map???
>

http://code.google.com/apis/maps/documentation/javascript/reference.html#GroundOverlay

The MapLabel library that Luke is talking about won't do exactly what you
want - it's designed to place labels similar to default Google map labels -
such that they are rendered at the same pixel size regardless of zoom level.
It'd certainly be possible to modify to do what you want, though.

Chris

-- 
http://twitter.com/broady

-- 
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-v3@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] How can I write or etch text directly onto a map? Or, I want to etch text onto a zip code region.

2011-05-18 Thread jeff rozner
Hey guys,

Thank you. I'll take a look at the youtube link!

Actually, I found a viable plug-in called EInsert.  However, it only works
for the depreciated V2.  But I will attempt to refactor it for V3.

Thanks again.

Jeff

On Wed, May 18, 2011 at 3:36 PM, Luke Mahé  wrote:

> Chris and I are working on a MapLabel library that should be released soon
> which will allow you to add text to places on the map and have them look
> like labels.
>
> You can see it in action in the Google IO talk that Chris gave -
> http://www.youtube.com/watch?v=ATfdi-oYWzw
>
> -- Luke
>
>
>
> On Wed, May 18, 2011 at 12:01 PM, trouble  wrote:
>
>> Hello,
>>
>> I am having much difficulty here.  If you look at this example from
>> Google's Demo gallery,
>> http://www.usnaviguide.com/v3maps/WhatZipCode.htm?lat=37&lng=-122, you'll
>> see that the zip code boundary is drawn and the zip code is displayed within
>> this boundary in large size font and adjusts proportionally with zooming.
>> Now, having talked with the author of the demo, and analyzing the code, he
>> is using an image overlay.  Now, I don't think he understood me, for I was
>> asking him how he got the zip code displayed on the zip code boundary.  I'm
>> not sure if he has a database of images which store each one as it's own
>> entity, thus the "95065" zip code in his example is part of the image he
>> receives from the server.
>>
>> My problem, then, is a little different.  I'm trying to figure out how to
>> overlay text or, perhaps an on-the-fly image of the text in javascript, if
>> such a thing is possible.
>>
>> Thank you for any help.
>>
>> --
>> 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-v3@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-v3@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-v3@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: Not all Destinations are being processed

2011-05-18 Thread Enoch Lau
The alert is after the for loops in that function, so by the time the code 
gets to it, the variables distance, duration, from and to all contain the 
values for the last origin/last destination.

-- 
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-v3@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: Custom Map Types - Base Map Type seems not working

2011-05-18 Thread Quang Nguyen
Aha, I see. I misunderstood. Thanks you guys so much!

Cheers,
Quang

On Wed, May 18, 2011 at 3:37 PM, Rossko  wrote:

> Chris, further down the page at
>
> http://code.google.com/apis/maps/documentation/javascript/maptypes.html#CustomMapTypes
> I don't this example does work as intended (in the English docs)
> maptype-traffic
>
> http://code.google.com/apis/maps/documentation/javascript/examples/maptype-traffic.html
> redirects to a picture of the Moon
>
> --
> 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-v3@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-v3@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] Maps API v3.2 being retired (was: 2011/5/7 - New Release (3.5))

2011-05-18 Thread Chris Broadfoot (Google Employee)
Just to follow up on my mail from a couple weeks ago (copied below), we'll
be retiring v3.2 today.

In accordance with our versioning strategy, any sites requesting version 3.2
will receive 3.3 instead (the new frozen version).

I'll take this as an opportunity to remind you to always test your map
against nightly version (now 3.5) so that we can catch any issues early in
the release cycle.

Chris

-- Forwarded message --
From: Chris Broadfoot (Google Employee) 
Date: Sun, May 8, 2011 at 5:53 AM
Subject: 2011/5/7 - New Release (3.5)
To: "google-maps-js-api-v3@googlegroups.com" <
google-maps-js-api-v3@googlegroups.com>


Hi all,

We're pleased to announce version 3.5 of the Maps API for JavaScript.

Firstly, a reminder that if you do not specify a minor version when loading
the Maps API, you will automatically receive 3.5. Production applications
should always specify a minor version (v=3.3, v=3.4). Read more about
versioning here:
http://code.google.com/apis/maps/documentation/javascript/basics.html#Versioning

We plan to retire 3.2 on May 15, and applications that request 3.2 will
receive 3.3. At this time, 3.3 will be frozen, and no further code changes
will be made.

3.5 includes all changes for 3.4. You can see the full change log here:
http://code.google.com/p/gmaps-api-issues/wiki/JavascriptMapsAPIv3Changelog

This release is essentially identical to the latest 3.4 release, and no
features have been added.

-- 
http://twitter.com/broady



-- 
http://twitter.com/broady

-- 
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-v3@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] Query Fusion Table

2011-05-18 Thread James McGill
Try where: "trap = 'A'"

(Single quotes around 'A', double quotes around the entire query)

Regards,
James


On Thu, May 19, 2011 at 4:25 AM, Alan Wheeler  wrote:
> I am trying to query a fusion table (862420). This table has a column of kml
> data named geometry and a text column named "trap" which holds the trap
> name. I just want a simple query to highlight a single trap location. In
> this example it is "A".
>
> I am using the following query function
>
>
> var trap_layer = new google.maps.FusionTablesLayer({
>   query: {
>     select: 'geometry',
>     from: '862420',
> where: 'trap = A'
>
>
> The problem is this returns all traps and I do not understand what is wrong.
> Any help would be greatly appreciated.
>
> --
> 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-v3@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-v3@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: Using the places library without a map on the same page

2011-05-18 Thread Thor Mitchell (Google Employee)
Hi Johannes,

As part of the Maps API, the Places library is covered by the Maps API Terms 
of Service, which does require it be used in conjunction with a map. This 
does not mean you must always pass in a map bounds when using Autocomplete, 
but it does mean that your app must use a map in some way, even if it's just 
a small thumbnail map of the Place selected by the user using Autocomplete.

With regards to why the establishments are not shown, in the absence of 
bounds to constrain the predictions made by Autocomplete, the geocode 
matches outrank the establishment matches, thus being returned in preference 
to establishments.

Many thanks,

Thor.

-- 
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-v3@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] color coded regions dynamic report kmllayer

2011-05-18 Thread geo12345
There doesn't seem to be much up-take in my question so maybe I should 
re-phrase:

I'm using precooked colored kml layers (red, orange, yellow, green, blue, 
indigo, violet) because parsing the polygon data on the browser would take 
forever
the polygon data is approx 30 MB in total.

This has the limitation that we can't dynamically color-code the polygons. 
We can't dynamically change the balloon text. 

Maybe if the polygon data were much smaller eg 60 KB it would be possible to 
handle client side using eg geoxml3 

My question is: has anyone else taken the approach of predefining a limited 
set of colored kml layers and rendering reports with this set of regions?

Or would an alternative be to simplify the polygon shapes such that they are 
much smaller and handle client side with the advantage of changing the 
balloon text on the fly?

I am interested to hear what existing successful projects have done

-- 
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-v3@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] Not all Destinations are being processed

2011-05-18 Thread jimmyt1988
function priceJourney(){
var origin1 = new google.maps.LatLng(51.289719,-0.722829);
var destinationA = "Hayling Island, Beach Road, South Hayling";
var destinationB = "Uk, 13 Lynwood Drive, Mytchett, England";

var service = new google.maps.DistanceMatrixService();
service.getDistanceMatrix(
  {
origins: [origin1],
destinations: [destinationA, destinationB],
travelMode: google.maps.TravelMode.DRIVING,
unitSystem: google.maps.UnitSystem.IMPERIAL,
avoidHighways: false,
avoidTolls: false
  }, callback);

function callback(response, status) {

  if (status == google.maps.DistanceMatrixStatus.OK) {
var origins = response.originAddresses;
var destinations = response.destinationAddresses;

for (var i = 0; i < origins.length; i++) {
  var results = response.rows[i].elements;
  for (var j = 0; j < results.length; j++) {
var element = results[j];
var distance = element.distance.text;
var duration = element.duration.text;
var from = origins[i];
var to = destinations[j];
  }
}
  }

alert(element + "" + distance + "" + duration +
"" + from + "" + to);
$('priceOfJourney').html(element + "" + distance + "" + duration + "" + from + "" + to);
}
}

The alert comes out with:

"[object Object]1 ft1 min27 Lynwood Dr, Camberley,
Surrey GU16 6, UK26 Lynwood Dr, Camberley, Surrey GU16 6, UK"

Any ideas why the destinations aren't all being processed?

-- 
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-v3@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: struggling to combine detecting users geolocation on a map & some geoxml3

2011-05-18 Thread Christopher Watson
hi larry,

was hoping that the two wouldnt interfere with each other, so pleased that
they should work together. it was pretty slow to load finding the users
location. think i'd just made a mess merging the codes.

redone 'cleaner' merge as it were and its pretty quick asking for the users
location to share.  http://creativemaps.vism.ag/locationdev1.htm

the geolocation is fine, but in my error messages from testing on comp, not
sure how to fix these errors? are they simple? i edited out where it was
using latlng to get location, do i need to do it elsewhere?


Message: 'bmi_load' is undefined
Line: 882
Char: 1
Code: 0
URI: http://creativemaps.vism.ag/locationdev1.htm


Message: 'lat' is undefined
Line: 256
Char: 7
Code: 0
URI: http://creativemaps.vism.ag/locationdev1.htm


Message: 'Bg[...]' is null or not an object
Line: 40
Char: 995
Code: 0
URI: http://maps.gstatic.com/intl/en_gb/mapfiles/api-3/4/9/main.js


Message: Object doesn't support this property or method
Line: 855
Char: 1
Code: 0
URI: http://creativemaps.vism.ag/locationdev1.htm


I went searching for a map center link, used a span that i found in the
forum, but not working, might be one of these error messages. I know there
are many little differences between the merging of the pages that could be
causing the problems. like i think the working geoxml3 uses var map = null
and it isnt here in the geolocation. would geolocation be fine if i used the
null? is this causing problems?

hope you can help.


VTM blog: Future
Everything
[image: Twitter] Latest tweet: The Visual
Think Map Daily is out! http://bit.ly/b8a7pV ▸ Top stories today via
@coleran @aaronkoblin
Follow @visualthinkmap 

Reply

Retweet
   19:29 May-18
  Get this email app!


Signature powered by

WiseStamp



On Sat, May 14, 2011 at 1:25 AM, geocode...@gmail.com
wrote:

> On May 13, 5:17 pm, "geocode...@gmail.com" 
> wrote:
> > On May 13, 4:33 pm, Christopher Watson 
> > wrote:
> >
> > > hey all,
> >
> > > i have used an exmaple in google maps to detect geolocation of a user
> and it
> > > centers the map to their location  here:
> http://creativemaps.vism.ag/location.htm
> >
> > > works!
> >
> > Not for me.
> >
> >
> >
> > > and i have this geo xml 3 functioning to make markers interactive
> through
> > > hiding and linking:http://creativemaps.vism.ag/manchester.htm
> >
> > > works!
> >
> > > How can i combine the two? i want the second one really to center on
> the
> > > users location for its lat lng.
> >
> > > if i can do this, i dont have to have lots of individual maps, i can
> have
> > > just one and a single xml file full of markers.
> >
> > > i had ago at combing it here:
> >
> > http://creativemaps.vism.ag/manchesterlocation.htm
> >
> > > but my limited ability of just copy pasting to try combine isnt enough
> and am going to really
> > > struggle.
> >
> > > any examples of this working somewhere or help will be really
> appreciated.
> >
> > > many thanks
> >
> > I think what you want to do is:
> > 1. not have geoxml3 set the center of the map (you are already doing
> > this).
> > 2. use the geolocation service to set the center of the map if it is
> > supported and gives a valid location.
> >
> > Those two things should not effect each other.  You need to make sure
> > you handle the case where the user either doesn't have geolocation or
> > declines to share their location.  I think that it the problem you are
> > running into as the first example doesn't work for me.
>
> It did work eventually.  It took so long to display a map that I
> though it wasn't ever going to, when I went back to it it was
> displaying this:
>
> "Error: Your browser isn't supporting us find your geolocation. Have a
> look at Manchester's Creative Map"
>
>  Larry
>
> >
> >   -- Larry
>
> --
> You received this message because you are subscribed to the

[Google Maps API v3] Re: support for gx:track in google maps and KmlLayer

2011-05-18 Thread Emanuele Ziglioli
Hi again,

I've found the list of supported kml elements in Google Maps:

http://code.google.com/apis/kml/documentation/mapsSupport.html
http://code.google.com/apis/kml/documentation/kmlelementsinmaps.html

It confirms the lack of support for gx:track.

Regards,
Emanuele

-- 
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-v3@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: support for gx:track in google maps and KmlLayer

2011-05-18 Thread Emanuele Ziglioli
sorry, I meant the GE plugin is not available on Linux (not Macs, of course)
E.

-- 
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-v3@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] support for gx:track in google maps and KmlLayer

2011-05-18 Thread Emanuele Ziglioli
Hi,

I've created a kml file containing gx:track and tried to open it in Google 
Maps.
No track was displayed. Are there plans to support that extension?

Furthermore, what's really missing in Google Maps is the time domain, 
Markers don't have a timestamp property so it's impossible to add a time 
slider to Maps. Is there anything out there that could provide that 
functionality?
I know I could use the Earth plugin but that's not available on Macs or 
mobile devices!

Thanks,
Emanuele Ziglioli
Sirtrack Wildlife Solutions 
http://www.sirtrack.com/ 
New Zealand 

-- 
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-v3@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] Bug: Fusion Tables data not clickable when disableDoubleClickZoom:true.

2011-05-18 Thread Аркадий Кулев
When I set disableDoubleClickZoom:true in the map options, I can't click on 
any of the dots that come from the Fusion Tables data (the popup will not 
open in Chrome).

-- 
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-v3@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] Using the places library without a map on the same page

2011-05-18 Thread Johannes Schill
Hello,

Is it possible to use the Places library - the autocomplete feature[1]
without having a map on the same page? Im trying to follow the
example[2] but when i remove the map - and the code related to the map
- the autocomplete stops showing "establishments" and only "geocodes"
are being included in the result. Maybe my default bounds are bad in
my javascript[3]?

[1] 
http://code.google.com/apis/maps/documentation/javascript/places.html#places_autocomplete
[2] 
http://code.google.com/intl/sv/apis/maps/documentation/javascript/examples/places-autocomplete.html
[3] http://www.jspaste.com/?id=283

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-v3@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: loading kml and fusion tables layers using JSON

2011-05-18 Thread Michael Geary
On Wed, May 18, 2011 at 11:56 AM, Rossko  wrote:

> > var map;
>
> Thats an empty variable called 'map' in global scope
> ...
>
> > overlay.setMap(map);
>
> This attempts to add an overlay to the empty variable in global scope.
> No javascript error reported?


It may just be a no-op. The code is basically doing this:

overlay.setMap( undefined );

That may (the docs don't say) be treated the same as:

overlay.setMap( null );

So it would remove the overlay from a map if it's on one, or do nothing if
it's not. (The docs don't make this clear either, but I suspect this isn't
treated as an error.)

Of course, that's not what the OP wants to have happen - and you already
showed *why* map is undefined - but it would explain the lack of a JS error.

-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-v3@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] How can I write or etch text directly onto a map? Or, I want to etch text onto a zip code region.

2011-05-18 Thread Luke Mahé
Chris and I are working on a MapLabel library that should be released soon
which will allow you to add text to places on the map and have them look
like labels.

You can see it in action in the Google IO talk that Chris gave -
http://www.youtube.com/watch?v=ATfdi-oYWzw

-- Luke


On Wed, May 18, 2011 at 12:01 PM, trouble  wrote:

> Hello,
>
> I am having much difficulty here.  If you look at this example from
> Google's Demo gallery,
> http://www.usnaviguide.com/v3maps/WhatZipCode.htm?lat=37&lng=-122, you'll
> see that the zip code boundary is drawn and the zip code is displayed within
> this boundary in large size font and adjusts proportionally with zooming.
> Now, having talked with the author of the demo, and analyzing the code, he
> is using an image overlay.  Now, I don't think he understood me, for I was
> asking him how he got the zip code displayed on the zip code boundary.  I'm
> not sure if he has a database of images which store each one as it's own
> entity, thus the "95065" zip code in his example is part of the image he
> receives from the server.
>
> My problem, then, is a little different.  I'm trying to figure out how to
> overlay text or, perhaps an on-the-fly image of the text in javascript, if
> such a thing is possible.
>
> Thank you for any help.
>
> --
> 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-v3@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-v3@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 can I write or etch text directly onto a map? Or, I want to etch text onto a zip code region.

2011-05-18 Thread trouble
Since I just need the numbers, I could make png images for numbers 0-9.  
Then, draw the zip code using those images.  The question then becomes how 
can i overlay an image onto a map???

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-v3@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: KML bounds not being returned

2011-05-18 Thread Elizabeth Dobbins
Turns out the KML had  section that conflicts with the Map's
ability to change the Viewport when the KML layer is added to the
map.  If I remove the  section from the KML,
"stnLayer.preserveViewport = 0;" works as expected.

I discovered this by trial and error.  I did not see this documented
anywhere.  The closest documentation is
http://code.google.com/apis/kml/documentation/kmlelementsinmaps.html,
where it says Camera is not supported.

-- 
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-v3@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: Green markers with markermanager

2011-05-18 Thread rich
Thanks rossko. I tried adding parseFloat. This had no affect on the
green markers.

Here are two screenshots to compare green markers on load. Once the
markers are green, zooming or changing the map will cause them to
update to the correct color. Seems like the neon green markers only
show on the first load.

http://imgur.com/a/VCEv2

I am now realizing this is not a google maps api issue, but probably a
bug with the Google maps utility library I am using for StyledMarkers

http://code.google.com/p/google-maps-utility-library-v3/wiki/Libraries

Guess I'll try the issue que..

On May 17, 5:07 pm, Rossko  wrote:
> > proper link for the neon markershttp://www.gunghoguides.com
>
> I don't see any markers at all in FF2.
>
> Your parseSponsors / createMarker functions use strings instead of
> numbers for marker lat/longs, try putting parseFloat in there

-- 
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-v3@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 can I write or etch text directly onto a map? Or, I want to etch text onto a zip code region.

2011-05-18 Thread trouble
Hello,

I am having much difficulty here.  If you look at this example from Google's 
Demo gallery, 
http://www.usnaviguide.com/v3maps/WhatZipCode.htm?lat=37&lng=-122, you'll 
see that the zip code boundary is drawn and the zip code is displayed within 
this boundary in large size font and adjusts proportionally with zooming.  
Now, having talked with the author of the demo, and analyzing the code, he 
is using an image overlay.  Now, I don't think he understood me, for I was 
asking him how he got the zip code displayed on the zip code boundary.  I'm 
not sure if he has a database of images which store each one as it's own 
entity, thus the "95065" zip code in his example is part of the image he 
receives from the server.

My problem, then, is a little different.  I'm trying to figure out how to 
overlay text or, perhaps an on-the-fly image of the text in javascript, if 
such a thing is possible.

Thank you for any help.  

-- 
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-v3@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: loading kml and fusion tables layers using JSON

2011-05-18 Thread Rossko
> var map;

Thats an empty variable called 'map' in global scope

> function initialize() {
...
>         var map = new google.maps.Map(document.getElementById('map'),

Thats a map object called 'map' in the scope of initialize(), when
initialize() completes it won't be accessible to other code


> function toggleLayer(overlay, checked) {
...
>     overlay.setMap(map);

This attempts to add an overlay to the empty variable in global scope.
No javascript error reported?

-- 
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-v3@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] Marker shapes

2011-05-18 Thread Dustin

Was there any success with this?


Dustin

-- 
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-v3@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] Query Fusion Table

2011-05-18 Thread Alan Wheeler
I am trying to query a fusion table (862420). This table has a column of kml 
data named geometry and a text column named "trap" which holds the trap 
name. I just want a simple query to highlight a single trap location. In 
this example it is "A".

I am using the following query function


var trap_layer = new google.maps.FusionTablesLayer({
  query: {
select: 'geometry',
from: '862420',
where: 'trap = A'


The problem is this returns all traps and I do not understand what is wrong. 
Any help would be greatly appreciated.

-- 
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-v3@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: Marker cursor does not change

2011-05-18 Thread Enoch Lau
This appears to be the same issue as reported 
here: http://code.google.com/p/gmaps-api-issues/issues/detail?id=3120

-- 
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-v3@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: Using V3 with Mapstraction

2011-05-18 Thread geocode...@gmail.com
On May 18, 9:49 am, lynakong  wrote:
> Hi i am attempting a mashup using mapstraction and having problems with
> getting the map to work any ideas on the following ? i tried changing the
> version in google.load("maps", "2"); to google.load("maps", "3"); and adding
> the script type="text/javascript"
> src="http://maps.google.com/maps/api/js?sensor=false";>  line but it
> still does not work.

If mapstraction is written for v2, you either need to use v2 or you
need to port mapstraction to v3 (or find someone else that has already
done so...).


  -- Larry

>
> script type="text/javascript"
> src="http://www.google.com/jsapi?key=MYKEY";>
>
>  google.load("maps", "2");
>
>     var geocode_cache = {};
>     var mapstraction;
>     function create_map() {
>         mapstraction = new mxn.Mapstraction('mymap', 'google');
>
> 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-v3@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: Calculate heading to the marker in street view

2011-05-18 Thread The Real Estate
Hello,

Did you figure this out?  I'm trying to do the same thing...center the
streetview on the marker, not on the street.

Thank you for any input.

On May 14, 2:11 pm, GSerg  wrote:
> I've got a marker on a map (v.3).
> I then bring up the default panorama (.getStreetView()), using
> marker.getPosition() for panorama.setPosition().
>
> I then have to manually rotate the street view to find my marker. This is
> the step I want to avoid.
> But I can't seem to be able to calculate the heading value for setPov().
>
> I've tried computeAngle() function from this 
> example,
> but it doesn't seem to help, as in the example the coordinates of the
> panorama POV and the marker are indeed different, but in my case, they are
> "same," so the function always returns 0.
>
> I'm putting quotes arond "same" because on the actual display they are not.
> A panorama POV is always in the middle of the road, whereas a marker, even
> created with the same LatLng, is always on the side of the road, against an
> actual building. So the marker is visible at certain heading, and not
> visible otherwise.
>
> How can I calculate that heading?

-- 
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-v3@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] Using V3 with Mapstraction

2011-05-18 Thread lynakong
Hi i am attempting a mashup using mapstraction and having problems with 
getting the map to work any ideas on the following ? i tried changing the 
version in google.load("maps", "2"); to google.load("maps", "3"); and adding 
the script type="text/javascript" 
src="http://maps.google.com/maps/api/js?sensor=false";>  line but it 
still does not work.

script type="text/javascript" 
src="http://www.google.com/jsapi?key=MYKEY";>
 
 google.load("maps", "2");

var geocode_cache = {};
var mapstraction;
function create_map() {
mapstraction = new mxn.Mapstraction('mymap', 'google');

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-v3@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] MarkerClusterer - please Help!

2011-05-18 Thread majora
Hi

Trying to implement a way to limit the amount of makers shown on my map when 
it loads and though that markerclusterer might be a solution. I'm a complete 
nob however and have no idea how to implement it. I've listed my code below 
and wonder if any0pje could give me any ideas how to chnage the code so that 
I can use this new code?

thanks very much

var map; 

var myCentreLat = 54.50;
var myCentreLng = -4.00;

var initialZoom = 6;

function infoCallback(infowindow, marker) {
 return function() {
  infowindow.open(map, marker);
 };
}

function addMarker(myPos,myTitle,myInfo,myIcon) {

  var marker = new google.maps.Marker({
position: myPos, 
map: map, 
title: myTitle,
icon: myIcon,
});

var infowindow = new google.maps.InfoWindow({content: myInfo});
  google.maps.event.addListener(marker, 'click', infoCallback(infowindow, 
marker));
  
  
}
  
function initialize() {
  var latlng = new google.maps.LatLng(myCentreLat,myCentreLng);
  var myOptions = {
zoom: initialZoom,
center: latlng,
mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DEFAULT},
scaleControl: true,
scaleControlOptions: {position: google.maps.ControlPosition.RIGHT_TOP},
zoomControlOptions: {style: google.maps.ZoomControlStyle.SMALL},
mapTypeId: google.maps.MapTypeId.HYBRID,
  };
  map = new 
google.maps.Map(document.getElementById("map_canvas"),myOptions);
  
  for (Id in uni_data) {
  var info = "" + uni_data[Id].Name + 
"" + "Address: " + uni_data[Id].Address + "" + "" +  
"Rank of 118: " + uni_data[Id].Rank + "" + "Undergraduates: " + 
uni_data[Id].Undergraduates +" - " + "Postgraduates: " + 
uni_data[Id].Postgraduates + "" + "Subject Scores/100" + 
"" + "Chemistry - " + uni_data[Id].Chemistry + " - " + "IT - " + 
uni_data[Id].IT + "" + "Earth Sciences - " + uni_data[Id].Geography 
+ " - " + "Mathematics - " + uni_data[Id].Mathematics + "" + 
"Medicine - " + uni_data[Id].Medicine + " - " + "Law - " + 
uni_data[Id].Law + "" + uni_data[Id].URL + "";

  // Convert co-ords
  var osPt = new OSRef(uni_data[Id].Easting,uni_data[Id].Northing);
  var llPt = osPt.toLatLng(osPt);
  llPt.OSGB36ToWGS84();

var myIcon;
  for (LawRank in uni_data){
if (uni_data[Id].LawCat == '25') {
myIcon = 
'http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=' + 
uni_data[Id].LawRank + '|FF' 
}
else if (uni_data[Id].LawCat == '50') {
myIcon = 
'http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=' + 
uni_data[Id].LawRank + '|FF6600' 
}
else if (uni_data[Id].LawCat == '75') {
myIcon = 
'http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=' + 
uni_data[Id].LawRank + '|FBB917' 
}
else {
myIcon = 
'http://chart.apis.google.com/chart?chst=d_map_pin_letter&chld=' + 
uni_data[Id].LawRank + '|B1FB17' 
   };
  
  }
  addMarker(new 
google.maps.LatLng(llPt.lat,llPt.lng),uni_data[Id].Name,info, myIcon);
   }
}

-- 
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-v3@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] geocode for some 300 addresses

2011-05-18 Thread 駅網
When I enter from browser it woks perfectly with or without language/
region attributes.

##http://maps.google.co.jp/maps/api/geocode/xml?address=
%E5%A4%A7%E9%98%AA%E5%B8%82%E4%B8%AD%E5%A4%AE%E5%8C%BA%E6%97%A5%E6%9C
%AC%E6%A9%8B1-16-14&sensor=false&language=ja®ion=Japan

Then with my php script rewrote from API V2 offered at:
http://code.google.com/intl/ja/apis/maps/articles/phpsqlgeocode.html

This part fails to pass.
$xml = simplexml_load_string($request_url) or die ("cannot load");

When debugging, look into $request_url, the value of it is what I've
pasted above which is Okay
for browser access to get XML type response.
Searching around posts of this discussion group,  I've tried also,

$xml = new SimpleXMLElement(file_get_contents($request_url));
This also doesn't work for me. If it is working for you let me know.

Any simple mistake do I have?
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-v3@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] Script file for GeoXML3

2011-05-18 Thread Laura Autry
Thanks Raju, the only problem is that the script is only useful if you
already have the lat/long cords. The lat/long cords are what we’re having
trouble obtaining...

On Wed, May 18, 2011 at 9:40 AM, Raju M  wrote:

> I recommend to use this script for GeoXML3 integration. before I use some
> other more than 4 script files,all of them are not working perfectly.
> I wasted one day with other script files.
> I got this script from Larry.
>
> http://code.google.com/apis/maps/documentation/javascript/forum.html?place=topic%2Fgoogle-maps-js-api-v3%2FVgp-PNcBoeY%2Fdiscussion
>
> script file
> http://geoxml3.googlecode.com/svn/branches/polys/geoxml3.js
>
> thanks to all
>
> --
> 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-v3@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-v3@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] Geo-coding API Issue

2011-05-18 Thread Laura A.
Here’s the scoop:

We are building a dealer locater for a client of ours. During testing
we discovered that every call to the Google geo-coding API is
returning a “QUERY_LIMIT_REACHED”

It seems that our client’s prior setup has upset Google and it is now
denying all requests from OpusRoofBlanket.com. According to our Tech
team, the former system was reaching out for the requested zip code on
every page load, and each of those would be considered a query.  Under
the current API license that Google allows you to use for free, you
cannot exceed 2,500 queries.

So, here’s the quote from our Tech guy:

“In my searches, I found that the requests worked fine if done on the
local site. It is only on the live site this issue is occurring. After
further review of the Google Geocoding API, it is my belief that
Google has done one of a few possible items:

A) Google blocked all access to the GeoCoding API From the Opus
roofing site.

B) Lowered the max limit from 2,500 Per day for the opus site (This is
in the API info).

C) Increased the minimum amount of time between requests (IE: Instead
of one call per minute, One Call Per Hour, Etc)”

He also has this to say:

“Every call to Google’s geocoding API (Part of Google Maps) is failing
with an error of ‘QUERY_LIMIT_REACHED’. The system is using the v3
API, querying 
https://maps.googleapis.com/maps/api/geocode/json?sensor=false&address=X
Where  is the zip code to search. Currently, there should be no
calls to the API other than 3 sections of the site. The first is the
admin, the second is http://opusroofblanket.com/dealers (Built by RCI
to replace the original) and the third (The original locator) is
http://opusroofblanket.com/dealer-locator/ .Both of these are
currently not publicly available so there should be no reason for the
limit error to occur. On a log of the system, there has been one call
to the API in the past 5 days.

The only thing I can conclude is the the opus site has been locked
from using the geo-coding API in general.
If so, we need to know why this was and what we can do to resolve it.

The new system is set up so that it stores the details for searched
zips into the database so only one call will happen. When running on a
development server, the system works fine and now errors are
returned.”


We appreciate any help and feedback that anybody can supply, so that
we may resolve this issue for our client.

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-v3@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] Load saved polyline in Directions service

2011-05-18 Thread YoSeQuienSoy
In my app i decode the polyline obtained from directions service and
save it in a GIS. What i want to do is load the polyline from database
and use directions services so I can modify my saved polyline with the
directions services assistant (fit polyline on street)

I think that maybe can be done saving in the DB the JSON object
created by direction services, then when I need to modify it, do a
request to directions services and replace the response with the saved
JSON object.

Anyone have do something like that or have a better 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-v3@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] MarkerImage and canvas

2011-05-18 Thread DreamFalcon
Hi,
I'm trying to draw the markers on the canvas for faster drawing.
But if I use the scaledSize option on the marker, no canvas is
created.

My code:

var icon_Size= 100;
var resize = 50; //50% of icon_Size

function createSite(point, site) {

var iconSize2=icon_Size * (resize/100);
var icon = new google.maps.MarkerImage('image.png',
new google.maps.Size(iconSize2, iconSize2),
new google.maps.Point(0,0), //origin
   new google.maps.Point(iconSize2/2,iconSize2/2), //
anchor
  new google.maps.Size(iconSize2, iconSize2) //scaledSize
);

var shape = {
coord: [1, 1, 1, iconSize2, iconSize2, iconSize2, iconSize2 , 
1,1,
1],
type: 'poly'
};
var marker = new google.maps.Marker({
position: point,
optimized: true,
icon: icon,
shape: shape,
title: 'teste',
zIndex: 5
});

var name = site.site_name;
google.maps.event.addListener(marker,"click", function() {
showSiteInfo(site);
});
return marker;
}

-- 
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-v3@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 can I remove GeoXml Layer In map

2011-05-18 Thread Rossko
>         geoXmlLayer.hideDocument(geoXml.docs[0]);

What is 'geoXml'?  Did you mean your geoXmlLayer object, that should
have a .docs[0] array property.
I expect your browser error messages should have helped point to this

-- 
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-v3@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] Script file for GeoXML3

2011-05-18 Thread Raju M
I recommend to use this script for GeoXML3 integration. before I use some 
other more than 4 script files,all of them are not working perfectly. 
I wasted one day with other script files. 
I got this script from Larry. 
http://code.google.com/apis/maps/documentation/javascript/forum.html?place=topic%2Fgoogle-maps-js-api-v3%2FVgp-PNcBoeY%2Fdiscussion
 
 

script file
http://geoxml3.googlecode.com/svn/branches/polys/geoxml3.js

thanks to all

-- 
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-v3@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 can I remove GeoXml Layer In map

2011-05-18 Thread Raju M
Thanks very very much...
script cheat me. its not working very well...

-- 
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-v3@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 can I remove GeoXml Layer In map

2011-05-18 Thread Raju M
Thanks mate...
http://geoxml3.googlecode.com/svn/branches/polys/geoxml3.js this
script helped me...
before I have one more problem in my one of the KML file. its not
displying very well. but that same file works very well with google
earth. anyway thats for the help

On May 18, 2:08 pm, "geocode...@gmail.com" 
wrote:
> On May 18, 5:38 am, Raju M  wrote:
>
>
>
>
>
>
>
>
>
> > please check this code
>
> > var geoXmlLayer;
> > var doc = [];
> > function toggleGeoXML(id,checked) {
> >     if (checked) {
> >         geoXmlLayer = new geoXML3.parser({
> >             map: map,
> >             singleInfoWindow: true,
> >             afterParse: useTheData
> >         });
> >         geoXmlLayer.parse("http://localhost:49169/mapv2/readKMLs.ashx?
> > query=" + id, {map:map});
> >     } else {
> >         geoXmlLayer.hideDocument(geoXml.docs[0]);
> >     }
>
> > }
>
> > I checkd
> > geoXmlLayer.setMap(null);
> > geoXmlLayer.hideDocument(geoXml.docs);
> > geoXmlLayer.geoXml.setMap(null);
>
> > if any one have please send some replay..
>
> This doesn't work for 
> you?http://www.geocodezip.com/geoxml3_test/geoxml3_test.html
>
>   -- 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-v3@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 incorrect geocoding

2011-05-18 Thread geocode...@gmail.com
On May 18, 6:07 am, Telaviva Telaviva  wrote:
> Hello
>
> i am trying to work with the geocoding service
> i send 3 requests
>
> http://maps.googleapis.com/maps/api/geocode/json?address=10+Jabotinsk...http://maps.googleapis.com/maps/api/geocode/json?address=99+Jabotinsk...http://maps.googleapis.com/maps/api/geocode/json?address=99+dizengoff...
>
> but get the same answer
>
>     "geometry": {
>       "location": {
>         "lat": 32.0661570,
>         "lng": 34.7778210
>       },
>
> the point is not on any of these streets
> so probably a default answer

   "formatted_address": "Tel Aviv, Israel",
"address_components": [ {
  "long_name": "Tel Aviv",
  "short_name": "Tel Aviv",
  "types": [ "locality", "political" ]
}, {
  "long_name": "Israel",
  "short_name": "IL",
  "types": [ "country", "political" ]
} ],
"geometry": {
  "location": {
"lat": 32.0661570,
"lng": 34.7778210
  },
  "location_type": "APPROXIMATE",

That is probably why it is giving the "location_type": "APPROXIMATE".
and it looks like it is giving you Tel Aviv, Israel for all the
responses.

Note that the google maps APIs do not contain as much data as google
maps for contractual reasons.

http://groups.google.com/group/google-maps-js-api-v3/search?group=google-maps-js-api-v3&q=Israel&qt_g=Search+this+group

  -- Larry

>
> when i look for those addresses in google map site
> they come up fine (close enough)
>
> what am i doing wrong
> please help
>
> thank you
> Tal

-- 
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-v3@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 can I remove GeoXml Layer In map

2011-05-18 Thread geocode...@gmail.com
On May 18, 5:38 am, Raju M  wrote:
> please check this code
>
> var geoXmlLayer;
> var doc = [];
> function toggleGeoXML(id,checked) {
>     if (checked) {
>         geoXmlLayer = new geoXML3.parser({
>             map: map,
>             singleInfoWindow: true,
>             afterParse: useTheData
>         });
>         geoXmlLayer.parse("http://localhost:49169/mapv2/readKMLs.ashx?
> query=" + id, {map:map});
>     } else {
>         geoXmlLayer.hideDocument(geoXml.docs[0]);
>     }
>
> }
>
> I checkd
> geoXmlLayer.setMap(null);
> geoXmlLayer.hideDocument(geoXml.docs);
> geoXmlLayer.geoXml.setMap(null);
>
> if any one have please send some replay..

This doesn't work for you?
http://www.geocodezip.com/geoxml3_test/geoxml3_test.html

  -- 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-v3@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] help with incorrect geocoding

2011-05-18 Thread Telaviva Telaviva
Hello

i am trying to work with the geocoding service
i send 3 requests 

http://maps.googleapis.com/maps/api/geocode/json?address=10+Jabotinsky,+tel+aviv,+israel&sensor=false
http://maps.googleapis.com/maps/api/geocode/json?address=99+Jabotinsky,+tel+aviv,+israel&sensor=false
http://maps.googleapis.com/maps/api/geocode/json?address=99+dizengoff,+tel+aviv,+israel&sensor=false

but get the same answer

"geometry": {
  "location": {
"lat": 32.0661570,
"lng": 34.7778210
  },

the point is not on any of these streets
so probably a default answer

when i look for those addresses in google map site
they come up fine (close enough)

what am i doing wrong
please help

thank you
Tal

-- 
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-v3@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 can I remove GeoXml Layer In map

2011-05-18 Thread Raju M
please check this code

var geoXmlLayer;
var doc = [];
function toggleGeoXML(id,checked) {
if (checked) {
geoXmlLayer = new geoXML3.parser({
map: map,
singleInfoWindow: true,
afterParse: useTheData
});
geoXmlLayer.parse("http://localhost:49169/mapv2/readKMLs.ashx?
query=" + id, {map:map});
} else {
geoXmlLayer.hideDocument(geoXml.docs[0]);
}
}

I checkd
geoXmlLayer.setMap(null);
geoXmlLayer.hideDocument(geoXml.docs);
geoXmlLayer.geoXml.setMap(null);


if any one have please send some replay..

-- 
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-v3@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: Re : Re: Re : Re: Re : Re: Differences between fitBounds and getBounds

2011-05-18 Thread geocode...@gmail.com
On May 18, 2:59 am, Web-ID  wrote:
> Parsing URL in order to obtain values is not difficult ...
>
> I'd just want to export coordinates from a map (by getBounds() of
> Map Class) and import these coordinates in another map of another
> page.
>
> In my script I create my URL from my first map, but in my second
> map the viewport is no exactly the same because of differences
> between getBounds and fitBounds as explain by Larry ...
>
> So I'm searching a method which can display coordinates exported by
> the getBounds() method.

I use map.getCenter() and map.getZoom():
http://www.geocodezip.com/v3_MW_example_linktothis.html?lat=42.359212&lng=-71.093363&zoom=19&type=h

  -- Larry
>
> Thanks for your comments !
>
> ps : I hope my English is not so bad ...

-- 
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-v3@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: infowindow

2011-05-18 Thread geocode...@gmail.com
On May 18, 1:37 am, MZMS  wrote:
> how to get the coordination points by clicking on the dropped
> placemarker?

You mean something like this:
http://www.geocodezip.com/v3_example_click2add_infowindow.html

  -- 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-v3@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] Places autocomplete: Is it possible to make the autocomplete results go up instead of down?

2011-05-18 Thread Nicolas Hinze
Hi,
 
started playing around with the new places autocomplete feature. Is it 
possible to have the autocomplete results go up instead of down? I would 
like to be able to do this, so I can place the search box at the bottom of 
the map. I'm essentially trying to get back the google search bar feature we 
lost from V2.
 
Thanks,
 
Nick,

-- 
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-v3@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: InfoWindow size

2011-05-18 Thread THE_AI
I'm starting to be a little bit confused about all that.
I'm looking at this:
http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=coffee&aq=&sll=37.0625,-95.677068&sspn=33.29802,121.552734&ie=UTF8&hq=coffee&hnear=&ll=40.313043,-95.712891&spn=31.906373,121.552734&z=4&iwloc=A

At the bottom of this infoWindow we have few buttons. If we click on
search nearby - a form appears, but no scroll bars are to be seen in
the infowindow :)))

What should my approach be to achieve the same?

Right now I'm injecting my navigation at the bottom of the infowindow,
because it is dynamically created and is a dom node. If I try to use
setContent to add it then in the infowindow I see [HtmlElmen ...].
(most probably because the already existing content for the infowindow
is just a string???)

Something more - in my case when you click on get Directions -> the
form shows, but it also creates a bigger scrollbar - with the google
example - the form just magically appears and the infoWindow just
becomes bigger.




On May 17, 11:41 pm, Rossko  wrote:
> > My content is dynamic - the information is read from the database and
> > that is why I never know how high it should be.
>
> If you don't know, neither can the API
>
> > In my case the problem is that after the infowindow is build I try to
> > change it's content.
>
> Yes, I think your infoWindowToolbarActions is at the root of the
> issue, injecting HTML into an existing infoWindow.  The API doesn't
> know about that.
> Use the infowindow's setContent() method so it can recalculate

-- 
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-v3@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 : Re: Re : Re: Re : Re: Differences between fitBounds and getBounds

2011-05-18 Thread Andrew Leach
On 18 May 2011 10:59, Web-ID  wrote:
> Parsing URL in order to obtain values is not difficult ...
>
> I'd just want to export coordinates from a map (by getBounds() of Map Class)
> and import these coordinates in another map of another page.

That's the wrong thing to do, because getBounds() and fitBounds()
behave differently. In particular, it's been pointed out in the group
that fitBounds() adds a small buffer and can result in a different
zoom to what is expected. Thus you may find that if you "fit" bounds
you have "got" the zoom may be different.

The best way of ensuring the map looks similar is to use the centre
and the zoom -- which also reduces the length of the url because you
only need one location and not two.

[I don't know why your email client keeps adding Re: with and without
a space, but it's really upsetting the threading. It should be
consistently "Re:" not "Re :"]

-- 
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-v3@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 : Re: Re : Re: Re : Re: Differences between fitBounds and getBounds

2011-05-18 Thread Web-ID
Parsing URL in order to obtain values is not difficult ...

I'd just want to export coordinates from a map (by getBounds() of Map Class) 
and import these coordinates in another map of another page.

In my script I create my URL from my first map, but in my second map the 
viewport is no exactly the same because of differences between getBounds and 
fitBounds as explain by Larry ...

So I'm searching a method which can display coordinates exported by the 
getBounds() method.

Thanks for your comments !

ps : I hope my English is not so bad ...

-- 
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-v3@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] infowindow

2011-05-18 Thread MZMS
how to get the coordination points by clicking on the dropped
placemarker?

-- 
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-v3@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: Custom Map Types - Base Map Type seems not working

2011-05-18 Thread Rossko
Chris, further down the page at
http://code.google.com/apis/maps/documentation/javascript/maptypes.html#CustomMapTypes
I don't this example does work as intended (in the English docs)
maptype-traffic
http://code.google.com/apis/maps/documentation/javascript/examples/maptype-traffic.html
redirects to a picture of the Moon

-- 
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-v3@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: Re : Re: Re : Re: Differences between fitBounds and getBounds

2011-05-18 Thread Rossko
> I saw that LatLngBounds class contains a "toUrlValue" method, but how can I
> get the values and move the map with the coordinates in parameters ?

Write some code that examines the querystring (not a maps function)
http://www.google.com/search?q=javascript+querystring

Then use the numbers you have found to fitBounds your map.

You'll probably want a default action in case there are no parameters

-- 
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-v3@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: Marker cursor does not change

2011-05-18 Thread Rossko
> That seems to work. What does this undocumented option mean?

aha ... it is documented in the English docs.
Says
"Optimization renders many markers as a single static element.
Optimized rendering is enabled by default. Disable optimized rendering
for animated GIFs or PNGs, or when each marker must be rendered as a
separate DOM element (advanced usage only)."

See
http://groups.google.com/group/google-maps-js-api-v3/browse_thread/thread/712af9174695ec91/0ee5f885b8db2ccb?lnk=gst&q=optimized#0ee5f885b8db2ccb
for more background.

I suspect you must either use optimized:false  -or- use your own
mouseover/mouseout listeners to get the effect you want.

-- 
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-v3@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: 2011/5/17 - New Release

2011-05-18 Thread gardnose
Hi,

Can you please update the Versioning documentation at
http://code.google.com/apis/maps/documentation/javascript/basics.html#Versioning

I assume that v3.5 is now the nightly version, and v3.4 is feature
stable?

Thanks,
Gavin

On May 17, 9:15 pm, "Luke (Google Employee)"  wrote:
> Hi all,
>
> We recently pushed a new version of the Maps API. The changelog for this
> release is copied below. See the full changelog 
> here:http://code.google.com/p/gmaps-api-issues/wiki/JavascriptMapsAPIv3Cha...
>
> Resolved issues:
>   * Fixed: Streetview rendering issue in IE7 (Issue 3272)
>
> Noticeable changes:
>   * Enabled fade transitions for map tiles when loading and changing map
> type.
>
> Thanks,
> Luke

-- 
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-v3@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] spatial markers in streetview panorama possible?

2011-05-18 Thread archinform
Hello,

have tried to set custom markers in a streetview panorama. Works fine.
Now I'm curious if it is possible to create markers (and polylines/
polygons) with different altitudes. This would be very cool.

Sascha

-- 
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-v3@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] Newbie driving directions

2011-05-18 Thread RickZim
I'm looking for simple sample code where there is a fixed destination (To:) 
and a variable From: so customers can simply enter the From: address.
The simple Google embed code from Google maps is not suitable as there is 
too much ancillary information displayed.
I cannot see any basic direction code examples and as a newbie have no idea 
where to start.
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-v3@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: Marker cursor does not change

2011-05-18 Thread Yves
On 17 Mai, 23:55, Rossko  wrote:
> I can see that behaviour in FF, but in IE it works as expected with
> cursor change and tooltip over the marker.  That suggests a link to
> the different rendering technologies.

I cannot see it working in both Firefox 4.0.1 and Internet Explorer
9.0 on Windows XP.

> Have a try with marker option optimized:false

That seems to work. What does this undocumented option mean?

-- 
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-v3@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.