Hi,

V3 does not yet support SSL so I suspect you would be getting a SSL warning
because that is not being included over https.

When V3 does support SSL it will follow the same lines as V2 and only be
available for Maps API Premier customers. You can read more about the
premier license here:
http://code.google.com/apis/maps/documentation/premier/

Hope this helps.

- Luke

On Mon, May 10, 2010 at 4:31 AM, Asique <[email protected]> wrote:

> Hi
>
> I recently added custom overlay to add custom labels on markers using
> following link
>
>
> http://code.google.com/apis/maps/documentation/v3/overlays.html#CustomOverlays
>
> I am using google maps V3 on SSL. The problem is when i use method
> mentioned in above link, it causes SSL warning message on IE. All
> other things are fine labels formatting and opacity is also fine. I am
> pretty sure about this because when i remove the code for labels the
> message is gone.
> Here is the code for label
>
> function Label(opt_options) {
>  // Initialization
>  this.setValues(opt_options);
>
>  // Label specific
>  var span = this.span_ = document.createElement('span');
>  span.style.cssText = "position: absolute; z-index:1; white-space:
> nowrap;font-weight:bold";
>
>  var div = this.div_ = document.createElement('div');
>  div.appendChild(span);
>  div.style.cssText = 'position: absolute; display: none';;
> };
> Label.prototype = new google.maps.OverlayView();
>
> // Implement onAdd
> Label.prototype.onAdd = function() {
>  var pane = this.getPanes().overlayLayer;
>  pane.appendChild(this.div_);
>
>  // Ensures the label is redrawn if the text or position is changed.
>  var me = this;
>  this.listeners_ = [
>   google.maps.event.addListener(this, 'position_changed',
>       function() { me.draw(); }),
>   google.maps.event.addListener(this, 'text_changed',
>       function() { me.draw(); })
>  ];
> };
>
> // Implement onRemove
> Label.prototype.onRemove = function() {
>  this.div_.parentNode.removeChild(this.div_);
>
>
>  for (var i = 0, I = this.listeners_.length; i < I; ++i) {
>   google.maps.event.removeListener(this.listeners_[i]);
>  }
> };
>
>
> Label.prototype.draw = function() {
>  var projection = this.getProjection();
>  var position = projection.fromLatLngToDivPixel(this.get('position'));
>  var div = this.div_;
>  div.style.left = position.x + 'px';
>  div.style.top = position.y + 'px';
>  div.style.display = 'block';
>
>  this.span_.innerHTML = this.get('text').toString();
> };
>
> Any help is appreciated.
> 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
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-maps-js-api-v3%[email protected]>
> .
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to