[Google Maps API v3] How to find the lat lng from a geocoded address?

2012-08-13 Thread Daniel Montenegro
Hi there!

I've posted this question in stackoverflow:

http://stackoverflow.com/questions/11944681/how-to-find-the-lat-lng-from-a-geocoded-address

Basically, I'm trying to figure out how to put the lat lng values in those 
two forms (Lat Lng) right under the map. I've already seen some examples 
showing how to get latlng from an address but I can't make it yet...

Thanks in advance,

Daniel

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/uS5I2g3K0kMJ.
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] Links being rendered in arbitrary directions in StreetView app

2012-08-13 Thread Marc Ridey
You probably need to adjust the originHeading on your custom panoramas.
check http://blog.mridey.com/2010/05/how-to-create-and-display-custom.html

On Tue, Aug 14, 2012 at 6:36 AM, Jason  wrote:

> How does StreetView determine which direction is north?
>
> I have a series of panoramas with links between them.  These panoramas
> have GPS coordinates associated with them and I use them to calculate the
> compass bearings between two links.
>
> However, it seems that the links themselves are being rendered in
> arbitrary directions regardless of the heading value.
>
> In my panorama options, I've set the default heading to 0.  If this is
> combined with a panorama heading of 0, the view is rendered from the center
> of the panorama.  Unfortunately, as my link bearings are based off GPS
> coordinates, if there is no constant north value, the links get rendered
> all over the place.
>
> How would I solve this?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-js-api-v3/-/fypV1kZhw_wJ.
> 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] Modify Marker Label CSS Property

2012-08-13 Thread Buster
Hi,
If possible, I would like to dynamically modify the CSS width property
to reflect the width of the labelText string.
For example, the CSS set width property is 40px.  The text string
property is 100px.  Change width = 100px


   .labels {
 color: red;
 background-color: white;
 font-family: "Lucida Grande", "Arial", sans-serif;
 font-size: 10px;
 font-weight: bold;
 text-align: center;
 width: 40px;
 border: 2px solid black;
 white-space: nowrap;
   }
 

function createLabeledMarker(lat, lon, labelText, infoText,
iconURI) {
var html = "" + infoText +
"";
var thisMarker = new MarkerWithLabel({
map: map,
position: new google.maps.LatLng(lat, lon),
title: '',//mouseover popup label
icon: iconURI,
draggable: false,
raiseOnDrag: false,
labelContent: labelText,
labelVisible: true,
labelAnchor: new google.maps.Point(22, 0),
labelClass: "labels", // the CSS class for the label
labelStyle: { opacity: 1.00 }
});

changeWidth(labelText.length);

bindInfoWindow(thisMarker, map, infoWindow, html);
gmarkers_list.push(thisMarker);
}


function changeWidth(newWidth) {
var elem = document.getElementById("labels");
elem.width = newWidth;
}

I've tried this, but no joy.

appreciate any assistance.

Reference link:
http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerwithlabel/1.1.5/examples/basic.html

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] Links being rendered in arbitrary directions in StreetView app

2012-08-13 Thread Jason
How does StreetView determine which direction is north?

I have a series of panoramas with links between them.  These panoramas have 
GPS coordinates associated with them and I use them to calculate the 
compass bearings between two links.

However, it seems that the links themselves are being rendered in arbitrary 
directions regardless of the heading value.

In my panorama options, I've set the default heading to 0.  If this is 
combined with a panorama heading of 0, the view is rendered from the center 
of the panorama.  Unfortunately, as my link bearings are based off GPS 
coordinates, if there is no constant north value, the links get rendered 
all over the place.

How would I solve this?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/fypV1kZhw_wJ.
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: dragging the maps causes VERY HUGE LAG

2012-08-13 Thread Berry Ratliff
On Aug 12, 8:36 am, Nikolai Dimentiev  wrote:
> I started using version 3, but there is a BIG problem.
>
> When I create more than 20-30 custom overlays on the map AND try to drag
> the map with the mouse there is VERY HUGE lag.
>
> When I use the build in control to pan the map there is NO lag.
>
> Any idea what is happening? When I use version 2 the lag appears after
> adding more than 200 custom overlays. Version 3 start lagging with 20-30
> only.
>
> By custom overlay I mean subclassing OverlayView.
>
> Here are examples:
>
> google maps v2: 46.233.14.168:8080/GoogleMapsTest/testPage2.jsp
>
> google maps v3: 46.233.14.168:8080/GoogleMapsTest/testPage.jsp
>
> the problem appears mainly when using Firefox. Other browsers handle it a
> little better but still not smooth as the previous version of google maps
>
> 

The API calls your "draw" method automatically.  It might be happening
too frequently.  You could use an "idle" event to update your
overlays.  You could perform a test in your "draw" method to skip
updates if the collection of map tiles has not changed since the last
update.  Trying to maintain overlay consistency during dragging has no
real benefit.  Once the map has settled, the overlays ought to be
updated.  Also, if you can combine your overlays into a single CANVAS
element with a single "draw" method, it will be much more efficient
than multiple CANVAS elements with multiple "draw" methods.

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