[Google Maps API v3] Re: Shortest path

2010-11-30 Thread koritfw
thank you 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: about the google marks

2010-11-30 Thread Rossko
 from ditu.google.com   maps.google.com
 when i use the lat  lng as search keyword 24.833413, 118.571103
 then i want to follow how google use the marks api.

This group is for the javascript Maps API.
For maps.google.com usage, try
http://www.google.com/support/forum/p/maps

-- 
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] Raphael Overlay

2010-11-30 Thread CTAPbIu_MABP
I'd like to share my script with community. May be you find it usefull
or help me to improve it :) This is adaptor for RaphaelJS and
gRaphaelJS (plugin for charts). With it helps, you can simply draw
different shapes over your map as well as complex polygons. But it
looks like PATH doesnt work in Opera.

Here is a project page
http://mabp.kiev.ua/2010/09/10/raphael-overlay/
http://mabp.kiev.ua/2010/10/29/graphael-overlay/

Sorry but comments only in russian. If the community would be
interested, I'll translate comments.
The download link in the bottom of the page.

-- 
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] InfoBox labels blocking click propagation for polygons?

2010-11-30 Thread ping
Hi everybody

I'm porting an existing app over from v2, but I'm hitting a stumper in
the most surprising of places: labels on clickable polygons.

Previously on v2, I was using the excellent Elabel extension but
there's no official port for v3. I did find an unofficial Elabel v3
port, but it looks like the Google-released InfoBox library (http://
code.google.com/p/google-maps-utility-library-v3/wiki/Libraries) is
the recommended way to go.

v2 Mockup (with elabel): http://li-ping.com/protos/polygons_v2.html
v3 Mockup (with infobox): http://li-ping.com/protos/polygons_v3.html

In the v2 page, the polygon area covered by the label still responds
to mouse clicks (click on the label to see) and label is not obscured.

In v3, I cannot seem to get the click on the label area to propagate
down to the polygon. The InfoBox lib allows the pane to be specified,
and I've tried using different panes (above and below the polygon
pane).

When using a higher pane, the label is not obscured by the polygon but
click doesn't register. When using a lower pane, the click registers,
but the label is obscured. I cannot seem to have it both ways like in
v2.

Am I missing something? Does anyone have any idea how to fix this?
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] how to disable the zoom control from middle mouse button and double click?

2010-11-30 Thread Khaled Jendi
hi,

in google maps v3, how to disable the zoom control from middle mouse
button and double click?


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] Split view in Street View

2010-11-30 Thread sanket
Hi,

I have a question for Google Maps JS API Version 3.0.

Does split view support available for developer on Street View?

Split view is available on google website at right bottom corner of
Street view. When I am on Street view, I can see the street view 
Google 2D views like Roads view at the right bottom corner.

Can I implement the same split view in my web application? If Yes,
What is the API, I need to use to support this?


--
Regards,
Sanket

-- 
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] Split view in Street View

2010-11-30 Thread Marc Ridey
Is this what you're after?
http://blog.mridey.com/2010/11/how-to-display-map-inside-streetview.html

http://blog.mridey.com/2010/11/how-to-display-map-inside-streetview.html
Marc

On Tue, Nov 30, 2010 at 8:38 PM, sanket ramoliya.san...@gmail.com wrote:

 Hi,

 I have a question for Google Maps JS API Version 3.0.

 Does split view support available for developer on Street View?

 Split view is available on google website at right bottom corner of
 Street view. When I am on Street view, I can see the street view 
 Google 2D views like Roads view at the right bottom corner.

 Can I implement the same split view in my web application? If Yes,
 What is the API, I need to use to support this?


 --
 Regards,
 Sanket

 --
 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] Raphael Overlay

2010-11-30 Thread Chris Broadfoot
Thanks for sharing!

It doesn't look like the Overlay resizes properly when changing between zoom
levels, though. Known issue?

Chris

On Tue, Nov 30, 2010 at 8:07 PM, CTAPbIu_MABP ctapbium...@gmail.com wrote:

 I'd like to share my script with community. May be you find it usefull
 or help me to improve it :) This is adaptor for RaphaelJS and
 gRaphaelJS (plugin for charts). With it helps, you can simply draw
 different shapes over your map as well as complex polygons. But it
 looks like PATH doesnt work in Opera.

 Here is a project page
 http://mabp.kiev.ua/2010/09/10/raphael-overlay/
 http://mabp.kiev.ua/2010/10/29/graphael-overlay/

 Sorry but comments only in russian. If the community would be
 interested, I'll translate comments.
 The download link in the bottom of the page.

 --
 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: Drawing Curved Line with slight complication

2010-11-30 Thread Andrew C Leach
On 30 November 2010 09:57, stevehello1234 stevebamf...@yahoo.co.uk wrote:
 Yeah thought it was tricky !

Not only is it tricky, it has nothing to do with the Maps API. It's a
spherical geometry problem.

Here's some assistance with distances in spherical geometry:
http://www.movable-type.co.uk/scripts/latlong.html

However, before going there it might be a good idea to visualise what
the line should look like -- I guess it's some sort of parabola. I've
no idea what that sort of line is for or how it will be useful, which
doesn't help me visualise it.

Given that a line contains an infinite number of points, working out
how to choose which points to use to approximate the line isn't easy
either.

Best of luck. A better forum to try, if you can find one, is a group
devoted to pure maths and geometry. Once you know how to calculate the
line, *this* group might be able to assist with visualising it on a
map.

-- 
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: Raphael Overlay

2010-11-30 Thread CTAPbIu_MABP
overlay resize formula is [width * (1  map.getZoom())]
but on 16+ zoom level, shapes disappears becouse 2^16 = 65536
and i think svg node cant be so wide

if you noticed another bug please tell me

-- 
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: Split view in Street View

2010-11-30 Thread sanket
Hi,

Yes. I am looking the 2D view in the right bottom corner of the street
view.  But if you notice on the Google website, there are two arrows
in the 2D view.

1. Right Bottom corner arrow - When we click first time it will hide
the 2D view  just shows one arrow to go back to 2D views. Now When I
click on this arrow, I will go back to 2D views.

2. Left Top corner arrow - When we click first time it will show 2D
view in the bottom half screen with top half screen contains street
view. Again when we click same arrow button it will restore the 2D
view with default small size in right bottom corner.

So my question is how to achieve these two arrows in 2D views inside
Street view?

Thanks,
Sanket

On Nov 30, 4:30 pm, Marc Ridey mri...@google.com wrote:
 Is this what you're 
 after?http://blog.mridey.com/2010/11/how-to-display-map-inside-streetview.html

 http://blog.mridey.com/2010/11/how-to-display-map-inside-streetview.html
 Marc



 On Tue, Nov 30, 2010 at 8:38 PM, sanket ramoliya.san...@gmail.com wrote:
  Hi,

  I have a question for Google Maps JS API Version 3.0.

  Does split view support available for developer on Street View?

  Split view is available on google website at right bottom corner of
  Street view. When I am on Street view, I can see the street view 
  Google 2D views like Roads view at the right bottom corner.

  Can I implement the same split view in my web application? If Yes,
  What is the API, I need to use to support this?

  --
  Regards,
  Sanket

  --
  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] cusomized Google directions

2010-11-30 Thread Rainer Pansen
Dear all,
i'm using Maps API V3 and i've got a map with a couple of markers,
they are customized with individual icons, infowindow, click/mouseover/
mouseout Listeners and so on. After calculating  a route, i only got
the default google Icons without any of the customized features.
is there any posibillity of still using and showing my own markers
after using directions?

Thank you very much for your help!
Regards
rainer

-- 
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: cusomized Google directions

2010-11-30 Thread geocode...@gmail.com
On Nov 30, 5:50 am, Rainer Pansen rainerpan...@googlemail.com wrote:
 Dear all,
 i'm using Maps API V3 and i've got a map with a couple of markers,
 they are customized with individual icons, infowindow, click/mouseover/
 mouseout Listeners and so on. After calculating  a route, i only got
 the default google Icons without any of the customized features.
 is there any posibillity of still using and showing my own markers
 after using directions?

Sure.  surpressMarkers on the DirectionsRenderer.

Or render the directions result yourself:
http://www.geocodezip.com/v3_directions_custom_iconsC.html

  -- Larry


 Thank you very much for your help!
 Regards
 rainer

-- 
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: cusomized Google directions

2010-11-30 Thread Rainer Pansen
oh yeah, thanks you very much.

what if the route is drawn on another map, which doesnt contain
markers till that point?
how can i use my own markers in that case?

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: how to disable the zoom control from middle mouse button and double click?

2010-11-30 Thread Chad Killingsworth
Did you check the documentation?
http://code.google.com/apis/maps/documentation/javascript/reference.html#MapOptions

Hint: disableDoubleClickZoom and scrollwheel seem to be what you are
after.

Chad Killingsworth

On Nov 30, 4:09 am, Khaled Jendi khaledne...@gmail.com wrote:
 hi,

 in google maps v3, how to disable the zoom control from middle mouse
 button and double click?

 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: cusomized Google directions

2010-11-30 Thread geocode...@gmail.com
On Nov 30, 6:33 am, Rainer Pansen rainerpan...@googlemail.com wrote:
 oh yeah, thanks you very much.

 what if the route is drawn on another map, which doesnt contain
 markers till that point?
 how can i use my own markers in that case?

Did you read the second part of my response?  That is what you would
have to do (render the markers yourself, not necessarily the polyline
or the directions panel).  The example I posted is a little more
complicated that what you would need to do, I would think you would be
able to use the rest of the DirectionRender's display, but try it and
find out.

  -- Larry


 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] Tip: Toggle a header with the map filling the rest of the screen

2010-11-30 Thread Joseph Elfelt
The map below shows one  way to toggle a header on/off and dynamically
resize the map to fill all the available screen space.  The center of
the map remains the same as the map is resized.

http://www.mappingsupport.com/forum_post/toggle_header.html

Now that I have this working I'm going to use this space above the map
to implement a search feature based on the map API geocoding feature.

-- 
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] is there a does address exist funtion?

2010-11-30 Thread neojapanese
is there a does address exist funtion?
meaning is there a way via code
i can say 1 wall street and get back ..this is not an address however
here are some possible matches?
vba or javascript is ok..

-- 
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] What happend to reverse geocoding sublocality

2010-11-30 Thread Cliff Smoke
Hi,

today I noticed, when reverse geocoding, the sublocality level has fell
out of the results.

For example: when I reverse geocoded following lat/lon:

http://maps.google.com/maps/api/geocode/xml?latlng=51.18676,5.52512sensor=false

Before I got in the xml output 'Locality: Bocholt, Sublocality:
Kaulille'. Since today, I only get back 'Locality: Bocholt'
Not only for this coordinate, but all hundreds of coordinates in my
database.

The sublocality feature was very helpful for me, as it creates a
connection between sublocality and (main)locality

(help!)

Greets 

-- 
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: Tip: Toggle a header with the map filling the rest of the screen

2010-11-30 Thread Chad Killingsworth
Rather than calculating the height through JavaScript, you might try
using conflicting absolute position styles:
http://www.alistapart.com/articles/conflictingabsolutepositions/

I've had great luck with that technique:
http://search.missouristate.edu/map/mobile/examples/template.htm

Chad Killingsworth

On Nov 30, 12:04 pm, Joseph Elfelt josephelf...@gmail.com wrote:
 The map below shows one  way to toggle a header on/off and dynamically
 resize the map to fill all the available screen space.  The center of
 the map remains the same as the map is resized.

 http://www.mappingsupport.com/forum_post/toggle_header.html

 Now that I have this working I'm going to use this space above the map
 to implement a search feature based on the map API geocoding feature.

-- 
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: 2010/11/29: New Release

2010-11-30 Thread Cliff Smoke
Hi Luke,

could you provide some information why, in case of using the google
reverse geocode service, the sublocality isn't showing up anymore,
where it was showing up before

EG.:
http://maps.google.com/maps/api/geocode/xml?latlng=51.18676,5.52512sensor=false

Before it showed Locality: Bocholt, Sublocality: Kaulille.
Now it's only showing Locality: Bocholt

Thx!

-- 
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] geolocation on android 2.2

2010-11-30 Thread serj
I use emulator from http://developer.android.com/sdk/index.html to
test one application based on google map api and geolocation. Test
code I want to check is from

http://code.google.com/apis/maps/documentation/javascript/examples/map-geolocation.html

but geolocation fail. Something is wrong, but I don't know how to make
it working.

At http://code.google.com/apis/maps/articles/mobile_overview_v3.html,
I see:
The most capable phones — currently only Android devices and iPhones
— can use Google Maps API directly in the browser. Version 3 of the
Google Maps API was designed for use in these mobile browser

thanks for any ideea

-- 
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] KML layers differ when polygon count changes

2010-11-30 Thread rc.griff
I have two KML files, one contains roughly 100 separate placemarks/
polygons (see link #1), the other contains a subset of that (see link
#2).

Link #1: 
http://maps.google.com/maps?q=http://www.millersville.edu/directions/marker-dump.kml?3
Link #2: 
http://maps.google.com/maps?q=http://www.millersville.edu/directions/academic-buildings.kml?10

I've noticed that with the smaller of the two (link #2), the polygons
are losing definition; however, the placemarks and polygon coordinates
are not changing.

Is this a known occurrence as you change the quantity of placemarks?
Is there something I should be doing with zoom levels or altitude?

I guess I should also note, though I don't think this has any effect,
that the coordinates are originating from Google Earth.

-- 
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] Load KML from text

2010-11-30 Thread Martin
I need to load a KML text inside my map. I load the text of KML files
then I want load this KML text inside the map.

Is it possible? How?

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] Geocoder not working properly

2010-11-30 Thread Adriano
Hi all, I'm Adriano from Rome

There's a weird behavior in the geocoder object: the formatted_address
sometimes give an address (among the others), that submitted again to
the geocoder still gives a results that is not univoque.

For example Via Manzoni, Roma among other results give as
formatted_address: Via Manzoni, RM, Roma.

Feeding the geocoder again with this last formatted_address, the
geocoder gives back not one single result forcing the developer to
turn around the obstacle with lines of otherwise avoidable code.

I would expect that each address output from the geocoder should be
univoque, but sometimes, tough rarely, it's not the case.

Anybody else hasincurred in this problem?

Thanks!
Cheers
Adriano

-- 
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] Nearest Polyline

2010-11-30 Thread jens_o_mat
Hey everybody!

I've got the following problem within my mobile application:

On my map, I've got lots of polylines for different sections of
streets and on these polylines i added click-listeners to change the
color of the clicked polyline and write some information into a div.

What i try to do now is locating my position with
navigator.geolocation.getCurrentPosition (with success) , locating the
nearest polyline to that point and fire the event of that polyline.
Does anybody know how to handle that?

I hope, someone can help me!
Thanks in advance!

-- 
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] Limitations of use in iOS app.

2010-11-30 Thread Nogre
Hi, I am developing an iOS app using the Google Maps API. I am aware
that this forum is about the JavaScript API, but I was not able to
find its iOS/MKMapKit counterpart. The guys at Apple won't answer my
question (they told me to ask Google), so I am posting my question
here. I will be glad about any answer or pointer to a resource that
fits my need better.

I want to use a Google Map (using MKMapKit) and Google Reverse
Geocoding in my app. But: I don't want to show the results from the
Reverse Geocoding service on the map, but rather use it to identify
the country the user is currently in. Is this use legal?

Apples documentation 1) says The Google terms of service require that
the reverse geocoding service be used in conjunction with a Google
map; take this into account when designing your application's user
interface.

-- What does IN CONJUNCTION mean?

Google documentation 2) says: geocoding results without displaying
them on a map is prohibited

-- But it doesn't say anything about REVERSE Geocoding. And: Does
this apply to the MKMapKit?


So, it seems like I am moving to prohibited territory, but it is not
quite clear to me. I would appreciate any clarification about this.


Footnotes:

1)
http://developer.apple.com/library/ios/#documentation/MapKit/Reference/MKReverseGeocoderDelegate_Protocol/Reference/Reference.html#//apple_ref/doc/uid/TP40008324

2) http://code.google.com/apis/maps/documentation/geocoding/

-- 
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: KML layers differ when polygon count changes

2010-11-30 Thread geocode...@gmail.com
On Nov 30, 6:04 am, rc.griff rc.gr...@gmail.com wrote:
 I have two KML files, one contains roughly 100 separate placemarks/
 polygons (see link #1), the other contains a subset of that (see link
 #2).

 Link 
 #1:http://maps.google.com/maps?q=http://www.millersville.edu/directions/...
 Link 
 #2:http://maps.google.com/maps?q=http://www.millersville.edu/directions/...

 I've noticed that with the smaller of the two (link #2), the polygons
 are losing definition; however, the placemarks and polygon coordinates
 are not changing.

 Is this a known occurrence as you change the quantity of placemarks?

Interesting.  Looks like a problem with the way Google Maps is
rendering your kml (looks like it simplifying the polygons
incorrectly).

BTW - this (unless you have an API v3 page that shows the same
behavior) is a Google Maps problem, not a Google Maps API v3 (the
topic of this group) problem, and should be reported in the Google
Maps group:
http://www.google.com/support/forum/p/maps?hl=en

 Is there something I should be doing with zoom levels or altitude?

I don't think there is anything you can do.  You could try using the
v3 API (and maybe even the v2 API) and see if it acts the same way.

The third party parses should work correctly.

  -- Larry



 I guess I should also note, though I don't think this has any effect,
 that the coordinates are originating from Google Earth.

-- 
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: Load KML from text

2010-11-30 Thread geocode...@gmail.com
On Nov 30, 5:46 am, Martin martin.ma...@gmail.com wrote:
 I need to load a KML text inside my map. I load the text of KML files
 then I want load this KML text inside the map.

I'm not sure what that means.  What is KML text?  Are you talking
about loading a KML file (which is xml)


 Is it possible? How?

Maybe you could explain better.  Do you have a link to a kml file that
would allow you to illustrate what kml text is and us to see what
you mean by kml text?

The generic answer to loading kml in the v3 API is kmlLayer.

  -- Larry


 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] Slimbox2 for infowindow images - works in IE and FF, not in Chrome and Safari

2010-11-30 Thread PhilR8
Just curious - anyone use any sort of lightbox clone for infowindow
images?  Slimbox worked well for my v2 map, but for some reason there
are problems with v3.  Slimbox and Slimbox 2 won't work in Chrome and
Safari.  Here's my map:

http://pages.towson.edu/preese/campusmapv3/test/nov29.html

Any thoughts?  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] geolocation on android 2.2

2010-11-30 Thread Chris Broadfoot
Best to ask this on the Android developer forum. Does the emulator
support geolocation? Have you tried an actual Froyo device?

On Wednesday, December 1, 2010, serj fs...@yahoo.com wrote:
 I use emulator from http://developer.android.com/sdk/index.html to
 test one application based on google map api and geolocation. Test
 code I want to check is from

 http://code.google.com/apis/maps/documentation/javascript/examples/map-geolocation.html

 but geolocation fail. Something is wrong, but I don't know how to make
 it working.

 At http://code.google.com/apis/maps/articles/mobile_overview_v3.html,
 I see:
 The most capable phones — currently only Android devices and iPhones
 — can use Google Maps API directly in the browser. Version 3 of the
 Google Maps API was designed for use in these mobile browser

 thanks for any ideea

 --
 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: InfoBox labels blocking click propagation for polygons?

2010-11-30 Thread Gary Little
In your V3 example, because you've set InfoBox's
enableEventPropagation property to true, the click event passes from
the overlayShadow pane to the map itself -- as you've observed. I
believe the various V3 map panes are independent of one another so an
event originating in one pane does not get passed to objects in
another pane, they go straight to the map. The polygon you've defined
must be in one of these other panes.

You might try adding the label to the same pane as the polygon and see
if it helps.

Gary

On Nov 30, 12:53 am, ping liping@gmail.com wrote:
 Hi everybody

 I'm porting an existing app over from v2, but I'm hitting a stumper in
 the most surprising of places: labels on clickable polygons.

 Previously on v2, I was using the excellent Elabel extension but
 there's no official port for v3. I did find an unofficial Elabel v3
 port, but it looks like the Google-released InfoBox library (http://
 code.google.com/p/google-maps-utility-library-v3/wiki/Libraries) is
 the recommended way to go.

 v2 Mockup (with elabel):http://li-ping.com/protos/polygons_v2.html
 v3 Mockup (with infobox):http://li-ping.com/protos/polygons_v3.html

 In the v2 page, the polygon area covered by the label still responds
 to mouse clicks (click on the label to see) and label is not obscured.

 In v3, I cannot seem to get the click on the label area to propagate
 down to the polygon. The InfoBox lib allows the pane to be specified,
 and I've tried using different panes (above and below the polygon
 pane).

 When using a higher pane, the label is not obscured by the polygon but
 click doesn't register. When using a lower pane, the click registers,
 but the label is obscured. I cannot seem to have it both ways like in
 v2.

 Am I missing something? Does anyone have any idea how to fix this?
 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: How do you prevent custom control from printing?

2010-11-30 Thread Gary Little
Chris,

Now I've got the opposite problem.

I typically use sprites for the visual elements of custom controls and
a control is displayed by setting it to the appropriate portion of the
sprite using the CSS background property.

How do you get these elements to print properly? At present, they just
show up as white rectangles over the map.

Until this week, Google had the same problem because markers were
drawn in a similar manner, but the problem has now been resolved
somehow.

Any idea what was done to make these markers printable? Presumably the
same technique could be used for my custom controls.

Gary



On Nov 28, 11:21 pm, Gary Little g...@luxcentral.com wrote:
 Agreed. I've just added a visualClass property to the keydragzoom
 control so that you can prevent the visual portion of the control from
 printing by setting visualClass to noprint, the CSS class in your
 example above.

 Gary

 On Nov 28, 8:34 pm, Chris Broadfoot c...@google.com wrote:



  It's gmnoprint but I wouldn't rely on this because it is not documented.
  Best to define your own as I showed before.

  On Mon, Nov 29, 2010 at 12:31 PM, Gary Little g...@luxcentral.com wrote:
   Thanks, Chris, that's how I'll have to deal with it.

   If I knew the name of the class Google is using to prevent printing I
   could assign it to the custom control to get the default behavior
   (i.e., don't print the control) without developers having to assign a
   class as you've suggested.

   Gary

   On Nov 28, 1:50 pm, Chris Broadfoot c...@google.com wrote:
If your custom control has class noprint:

@media print {
  .noprint {
    display: none;
  }

}

Chris

On Sunday, November 28, 2010, Gary Little g...@luxcentral.com wrote:
 I want to prevent the visual element of a custom control from
 appearing when a map is printed. Does anyone know if this can be done?
 In other words, is there a standard (Google Maps) CSS class I can
 assign to the DIV for a custom control so that CSS display is set to
 none when printing.

 --
 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 athttp://
   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.



Re: [Google Maps API v3] Re: Split view in Street View

2010-11-30 Thread Marc Ridey
The same way the map is placed inside StreetVIew. Create two floating DIVs
with arrows in them. Handle the click events from each arrow and resize/hive
the StreetView div and Map div depending on the click event.

On Wed, Dec 1, 2010 at 12:30 AM, sanket ramoliya.san...@gmail.com wrote:

 Hi,

 Yes. I am looking the 2D view in the right bottom corner of the street
 view.  But if you notice on the Google website, there are two arrows
 in the 2D view.

 1. Right Bottom corner arrow - When we click first time it will hide
 the 2D view  just shows one arrow to go back to 2D views. Now When I
 click on this arrow, I will go back to 2D views.

 2. Left Top corner arrow - When we click first time it will show 2D
 view in the bottom half screen with top half screen contains street
 view. Again when we click same arrow button it will restore the 2D
 view with default small size in right bottom corner.

 So my question is how to achieve these two arrows in 2D views inside
 Street view?

 Thanks,
 Sanket

 On Nov 30, 4:30 pm, Marc Ridey mri...@google.com wrote:
  Is this what you're after?
 http://blog.mridey.com/2010/11/how-to-display-map-inside-streetview.html
 
  
 http://blog.mridey.com/2010/11/how-to-display-map-inside-streetview.html
  Marc
 
 
 
  On Tue, Nov 30, 2010 at 8:38 PM, sanket ramoliya.san...@gmail.com
 wrote:
   Hi,
 
   I have a question for Google Maps JS API Version 3.0.
 
   Does split view support available for developer on Street View?
 
   Split view is available on google website at right bottom corner of
   Street view. When I am on Street view, I can see the street view 
   Google 2D views like Roads view at the right bottom corner.
 
   Can I implement the same split view in my web application? If Yes,
   What is the API, I need to use to support this?
 
   --
   Regards,
   Sanket
 
   --
   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.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%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: Sampling an overlay with mouse position?

2010-11-30 Thread bratliff
Except for Internet Explorer, you can do it with CANVAS:

http://www.polylib.us/polycluster/coast

The image must originate from your server to avoid security errors.

-- 
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: What happend to reverse geocoding sublocality

2010-11-30 Thread Rossko
Got to wonder why you are geocoding hundreds of database entries again
and again ...

-- 
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: How do you prevent custom control from printing?

2010-11-30 Thread Chris Broadfoot
Well, background images don't print from browsers*

If you want to sprite, I suggest wrapping your img in a div and position
the img appropriately within its container, and set overflow:hidden to the
div.

This is pretty much what we've done with markers now to get them to print.

Example:
  div style=overflow:hidden;width:21px;height:21px;position:relative
img style=position:absolute;left:-79px;top:-103px
 src=http://www.google.com/images/nav_logo28.png;
  /div

Chris


* some browsers have an option to print background images - I wouldn't rely
on users to have this enabled.

On Wed, Dec 1, 2010 at 10:07 AM, Gary Little g...@luxcentral.com wrote:

 Chris,

 Now I've got the opposite problem.

 I typically use sprites for the visual elements of custom controls and
 a control is displayed by setting it to the appropriate portion of the
 sprite using the CSS background property.

 How do you get these elements to print properly? At present, they just
 show up as white rectangles over the map.

 Until this week, Google had the same problem because markers were
 drawn in a similar manner, but the problem has now been resolved
 somehow.

 Any idea what was done to make these markers printable? Presumably the
 same technique could be used for my custom controls.

 Gary



 On Nov 28, 11:21 pm, Gary Little g...@luxcentral.com wrote:
  Agreed. I've just added a visualClass property to the keydragzoom
  control so that you can prevent the visual portion of the control from
  printing by setting visualClass to noprint, the CSS class in your
  example above.
 
  Gary
 
  On Nov 28, 8:34 pm, Chris Broadfoot c...@google.com wrote:
 
 
 
   It's gmnoprint but I wouldn't rely on this because it is not
 documented.
   Best to define your own as I showed before.
 
   On Mon, Nov 29, 2010 at 12:31 PM, Gary Little g...@luxcentral.com
 wrote:
Thanks, Chris, that's how I'll have to deal with it.
 
If I knew the name of the class Google is using to prevent printing I
could assign it to the custom control to get the default behavior
(i.e., don't print the control) without developers having to assign a
class as you've suggested.
 
Gary
 
On Nov 28, 1:50 pm, Chris Broadfoot c...@google.com wrote:
 If your custom control has class noprint:
 
 @media print {
   .noprint {
 display: none;
   }
 
 }
 
 Chris
 
 On Sunday, November 28, 2010, Gary Little g...@luxcentral.com
 wrote:
  I want to prevent the visual element of a custom control from
  appearing when a map is printed. Does anyone know if this can be
 done?
  In other words, is there a standard (Google Maps) CSS class I can
  assign to the DIV for a custom control so that CSS display is set
 to
  none when printing.
 
  --
  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.comgoogle-maps-js-api-v3%2B
 unsubscr...@googlegroups.com
.
  For more options, visit this group athttp://
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.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%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] How to handle fail of kml file's loading?

2010-11-30 Thread Vadim P.
There is no problem to set listener for 'metadata_changed' event to
handle successfull load of kml file, but what about fail, how to
handle it, what event should I listen to?

-- 
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] Is there a simple way to get an icons url?

2010-11-30 Thread JoshN
I was trying to figure out how to find the url of a markers icon. I had
been using a private property before, but realized my error and now I'm
curious if there is an accessor I should be using. In the meantime, I
have been using this, which relies on prototypejs:



google.maps.Marker.prototype.getIconUrl = function(){
var strs = $H(this.getIcon()).find(String);
re = /\.png|\.gif|\.jpg/;
for(var i=0;istrs.length;i++){
if(re.match(strs[i])){
return strs[i];
}
}
}


I'm sure there is a much better implementation, but I'm hoping this is
a temp solution.


Any help is 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...@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: InfoBox labels blocking click propagation for polygons?

2010-11-30 Thread ping
Hi Gary
I've given your suggestion a try.

I've updated the v3 example to add labels to the overlayLayer pane
(which according to documentation
http://code.google.com/apis/maps/documentation/javascript/reference.html#MapPanes
is the pane where the polygons are). I've also bumped up the zIndex to
force it above the polygon.

All these end up with pretty much the same results as before (the
first 2 labels).

- ping

On Dec 1, 6:58 am, Gary Little g...@luxcentral.com wrote:
 In your V3 example, because you've set InfoBox's
 enableEventPropagation property to true, the click event passes from
 the overlayShadow pane to the map itself -- as you've observed. I
 believe the various V3 map panes are independent of one another so an
 event originating in one pane does not get passed to objects in
 another pane, they go straight to the map. The polygon you've defined
 must be in one of these other panes.

 You might try adding the label to the same pane as the polygon and see
 if it helps.

 Gary

 On Nov 30, 12:53 am, ping liping@gmail.com wrote:







  Hi everybody

  I'm porting an existing app over from v2, but I'm hitting a stumper in
  the most surprising of places: labels on clickable polygons.

  Previously on v2, I was using the excellent Elabel extension but
  there's no official port for v3. I did find an unofficial Elabel v3
  port, but it looks like the Google-released InfoBox library (http://
  code.google.com/p/google-maps-utility-library-v3/wiki/Libraries) is
  the recommended way to go.

  v2 Mockup (with elabel):http://li-ping.com/protos/polygons_v2.html
  v3 Mockup (with infobox):http://li-ping.com/protos/polygons_v3.html

  In the v2 page, the polygon area covered by the label still responds
  to mouse clicks (click on the label to see) and label is not obscured.

  In v3, I cannot seem to get the click on the label area to propagate
  down to the polygon. The InfoBox lib allows the pane to be specified,
  and I've tried using different panes (above and below the polygon
  pane).

  When using a higher pane, the label is not obscured by the polygon but
  click doesn't register. When using a lower pane, the click registers,
  but the label is obscured. I cannot seem to have it both ways like in
  v2.

  Am I missing something? Does anyone have any idea how to fix this?
  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: Tip: Toggle a header with the map filling the rest of the screen

2010-11-30 Thread Joseph Elfelt
Chad,

Thanks much for your suggestion.  First time I heard of that
technique.  I saved the link to the article and your nifty sample map.
I will likely experiment with that technique sometime this winter.

Joseph

-- 
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: KML layers differ when polygon count changes

2010-11-30 Thread geocode...@gmail.com
On Nov 30, 4:26 pm, geocode...@gmail.com geocode...@gmail.com
wrote:
 On Nov 30, 6:04 am, rc.griff rc.gr...@gmail.com wrote:

  I have two KML files, one contains roughly 100 separate placemarks/
  polygons (see link #1), the other contains a subset of that (see link
  #2).

  Link 
  #1:http://maps.google.com/maps?q=http://www.millersville.edu/directions/...
  Link 
  #2:http://maps.google.com/maps?q=http://www.millersville.edu/directions/...

  I've noticed that with the smaller of the two (link #2), the polygons
  are losing definition; however, the placemarks and polygon coordinates
  are not changing.

  Is this a known occurrence as you change the quantity of placemarks?

 Interesting.  Looks like a problem with the way Google Maps is
 rendering your kml (looks like it simplifying the polygons
 incorrectly).

 BTW - this (unless you have an API v3 page that shows the same
 behavior) is a Google Maps problem, not a Google Maps API v3 (the
 topic of this group) problem, and should be reported in the Google
 Maps group:http://www.google.com/support/forum/p/maps?hl=en

  Is there something I should be doing with zoom levels or altitude?

 I don't think there is anything you can do.  You could try using the
 v3 API (and maybe even the v2 API) and see if it acts the same way.

kmlLayer seems to work correctly:
http://www.geocodezip.com/geoxml3_test/v3_geoxml3_millersville_edu_academic-buildings_test.html

Seems to be a Google M aps problem.  May also affect GGeoXml (the v2
equivalent of kmlLayer, I didn't test that), but it certainly doesn't
seem to be an issue with the v3 API (the topic of this group).

  -- Larry


 The third party parses should work correctly.

   -- Larry









  I guess I should also note, though I don't think this has any effect,
  that the coordinates are originating from Google Earth.

-- 
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: Nearest Polyline

2010-11-30 Thread geocode...@gmail.com
On Nov 30, 12:41 pm, jens_o_mat jbeu...@arcor.de wrote:
 Hey everybody!

 I've got the following problem within my mobile application:

 On my map, I've got lots of polylines for different sections of
 streets and on these polylines i added click-listeners to change the
 color of the clicked polyline and write some information into a div.

 What i try to do now is locating my position with
 navigator.geolocation.getCurrentPosition (with success) , locating the
 nearest polyline to that point and fire the event of that polyline.
 Does anybody know how to handle that?

 I hope, someone can help me!

This search returned some interesting results:
http://groups.google.com/group/google-maps-js-api-v3/search?group=google-maps-js-api-v3q=polyline+closest+to+pointqt_g=Search+this+group

like this one:
http://groups.google.com/group/google-maps-js-api-v3/browse_frm/thread/35e0ef923dbdc4f2/bc53d60327968cd3?lnk=gstq=polyline+closest+to+point#bc53d60327968cd3
(the example I posted in that thread is finding the nearest segment of
the polyline to the clicked point, if I remember correctly)

  -- Larry


 Thanks in advance!

-- 
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: is there a does address exist funtion?

2010-11-30 Thread geocode...@gmail.com
On Nov 30, 1:42 pm, neojapanese naoh...@gmail.com wrote:
 is there a does address exist funtion?

Not as part of the v3 google maps API.  There is a geocoder available,
but it has a different function (finding geographic coordinates for an
address so it can be displayed on a map, not address validation).

 meaning is there a way via code
 i can say 1 wall street and get back ..this is not an address however
 here are some possible matches?

The geocoder will return multiple results if it gets multiple matches.

 vba or javascript is ok..

Thats nice, this group is about the Google Maps JavaScript API v3,
so javascript is the only option (although google also provides a
webservice for geocoding).

  -- 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] GStreetviewOverlay

2010-11-30 Thread sanket
Hi,

I have a question for Google Maps JS API Version 3.0.

In Google Maps JavaScript API V2 (Deprecated), there is a
GStreetviewOverlay object which used to highlighting locations where
Street View data is available. The reference URL is
http://code.google.com/apis/maps/documentation/javascript/v2/examples/streetview-layer.html.

Now my question is Does there is same object available in Google Maps
JS API Version 3.0?

If no, what is the alternative?

Thanks,
Sanket

-- 
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: InfoBox labels blocking click propagation for polygons?

2010-11-30 Thread Gary Little
Ping,

Looks like there's no easy solution. You will probably have to keep
track of the polygon the label is associated with, then trigger an
event on the polygon when the label is clicked.

Gary

On Nov 30, 7:37 pm, ping liping@gmail.com wrote:
 Hi Gary
 I've given your suggestion a try.

 I've updated the v3 example to add labels to the overlayLayer pane
 (which according to 
 documentationhttp://code.google.com/apis/maps/documentation/javascript/reference.h...
 is the pane where the polygons are). I've also bumped up the zIndex to
 force it above the polygon.

 All these end up with pretty much the same results as before (the
 first 2 labels).

 - ping

 On Dec 1, 6:58 am, Gary Little g...@luxcentral.com wrote:



  In your V3 example, because you've set InfoBox's
  enableEventPropagation property to true, the click event passes from
  the overlayShadow pane to the map itself -- as you've observed. I
  believe the various V3 map panes are independent of one another so an
  event originating in one pane does not get passed to objects in
  another pane, they go straight to the map. The polygon you've defined
  must be in one of these other panes.

  You might try adding the label to the same pane as the polygon and see
  if it helps.

  Gary

  On Nov 30, 12:53 am, ping liping@gmail.com wrote:

   Hi everybody

   I'm porting an existing app over from v2, but I'm hitting a stumper in
   the most surprising of places: labels on clickable polygons.

   Previously on v2, I was using the excellent Elabel extension but
   there's no official port for v3. I did find an unofficial Elabel v3
   port, but it looks like the Google-released InfoBox library (http://
   code.google.com/p/google-maps-utility-library-v3/wiki/Libraries) is
   the recommended way to go.

   v2 Mockup (with elabel):http://li-ping.com/protos/polygons_v2.html
   v3 Mockup (with infobox):http://li-ping.com/protos/polygons_v3.html

   In the v2 page, the polygon area covered by the label still responds
   to mouse clicks (click on the label to see) and label is not obscured.

   In v3, I cannot seem to get the click on the label area to propagate
   down to the polygon. The InfoBox lib allows the pane to be specified,
   and I've tried using different panes (above and below the polygon
   pane).

   When using a higher pane, the label is not obscured by the polygon but
   click doesn't register. When using a lower pane, the click registers,
   but the label is obscured. I cannot seem to have it both ways like in
   v2.

   Am I missing something? Does anyone have any idea how to fix this?
   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] Is there a simple way to get an icons url?

2010-11-30 Thread Chris Broadfoot
No, there isn't.

What was wrong with your approach of using a private property?

On Wed, Dec 1, 2010 at 1:38 PM, JoshN joshua.l.new...@gmail.com wrote:

 I was trying to figure out how to find the url of a markers icon. I had
 been using a private property before, but realized my error and now I'm
 curious if there is an accessor I should be using. In the meantime, I have
 been using this, which relies on prototypejs:

 google.maps.Marker.prototype.getIconUrl = function(){
 var strs = $H(this.getIcon()).find(String);
 re = /\.png|\.gif|\.jpg/;
 for(var i=0;istrs.length;i++){
 if(re.match(strs[i])){
 return strs[i];
 }
 }
 }

 I'm sure there is a much better implementation, but I'm hoping this is a
 temp solution.

 Any help is 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...@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] TrafficLayer on top of customized maptype

2010-11-30 Thread Chris Broadfoot
Hi Nianwei,

Sorry for the late reply.

The reason for this is because at present the traffic layer is not laid over
the tiles on the client. The layer does not have transparency.

If you'd like, please file a feature request on our issue tracker.

Cheers
Chris

On Tue, Nov 2, 2010 at 7:30 AM, Nianwei Liu nian...@gmail.com wrote:

 Noticed an interesting issue.
 The TrafficLayer class seems tied closely to one of the base Google
 Map types: map, hybrid and terrain. It does not work as a regular
 overlay in the sense that it can display on top of any map type,
 including customized map type.

 Take a look at this example from the API:


 http://code.google.com/apis/maps/documentation/javascript/examples/layer-traffic.html

 When in Satellite mode, it disappears. It make sense for this
 particular purpose of wanting to hide everything other than the image,
 but I think it probably better to let developer decide when to hide/
 show it based on map type, and it probably SHOULD available for
 customized map type.

 Is that by design or something else?

 --
 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] Changing the way the dynamic

2010-11-30 Thread cobalt
Hey
I draw a map of two routes, one drawn along the way (dynamic) and the
other from point to point (not dynamic). They have set the same points.
Now my question is whether there is a possibility that this route from
point to point was also dynamic?

The term dynamic, I mean draggable.

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