Google Groups Home
Help | Sign in
GPolyline errors en firefox
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
qawan  
View profile
(1 user)  More options May 9, 3:58 pm
From: qawan <qaseria...@gmail.com>
Date: Fri, 9 May 2008 12:58:51 -0700 (PDT)
Local: Fri, May 9 2008 3:58 pm
Subject: GPolyline errors en firefox
Tengo un problema con los GPolyline agregados por codigo estos se
agregan debajo de algun panel del mapa, tons cuando aumento el zoom,
las lines se empiezan a desaparecer.  De forma rara,

var i=0;
var lineas=new Array();
Agregado:
var pts=[new
GLatLng(figuras_puntolat1,figuras_puntolng1),GLatLng(figuras_puntolat2,figu ras_puntolng2))];

lineas[i]=new
GPolyline(pts,figuras_txtColor,figuras_txtGrosor,figuras_txtTranp);
map.addOverlay(lineas)[i];
La linea se ve en el mapa.

Luego lo quito:

map.removeOverlay(lineas[i]);
delete lineas[i];
lineas[i]=null;

Luego lo agrego de nuevo:
var pts=[new
GLatLng(figuras_puntolat1,figuras_puntolng1),GLatLng(figuras_puntolat2,figu ras_puntolng2))];

lineas[i]=new
GPolyline(pts,figuras_txtColor,figuras_txtGrosor,figuras_txtTranp);
map.addOverlay(lineas[i]);

Y por alguna extrana razon, la linea se vuelve inestable, osea que si
hago zoom in, hasta el 17, y me muevo en el mapa, la linea aveces no
aparece.

Este ejemplo no es completo, el original son multiples lineas, donde
cada linea tiene unicamente 2 puntos, la idea es crear un grafo.

Ironicamente, en explorer 6, o 7 funciona perfectamente, y si agrego
la linea con algun evento si funciona adecuadamente. osea si programo
el evento click en el mapa y ese evento es el que crea la linea.

Sera la prescicion que se pierde?
Sera que es un bug del api?
Sera que tengo algun error estructural?

Gracias, cualquier ayuda es bienvenida


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
qawan  
View profile
 More options May 22, 6:44 pm
From: qawan <qaseria...@gmail.com>
Date: Thu, 22 May 2008 15:44:48 -0700 (PDT)
Local: Thurs, May 22 2008 6:44 pm
Subject: Re: GPolyline errors en firefox
Solution:
http://groups.google.ca/group/Google-Maps-API/browse_thread/thread/0e...

On 9 mayo, 13:58, qawan <qaseria...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google