Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion first render works, second render is not centered
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
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Charles Bedrosian  
View profile  
 More options May 8 2012, 4:44 pm
From: Charles Bedrosian <char...@bedrosian.com>
Date: Tue, 8 May 2012 16:44:01 -0400
Local: Tues, May 8 2012 4:44 pm
Subject: Re: [Leaflet] first render works, second render is not centered
Can you share the static files?

Sent from my iPhone

On May 8, 2012, at 3:38 PM, "logicalcat" <logical...@gmail.com> wrote:

> Hello all, I have a mysterious problem where a simple map (just a single marker) renders fine the first time, but a second try on the same page (via ajax without page refresh) does not center the marker and fails to load some of the tiles. The point seems to be rendering in the NW corner just out of view.

> I have tried making the map and layer global and removing the layer between renders (e.g. map.removeLayer(cloudmade) ) and just deleting/re-adding the whole containing div. Makes no difference.

> The exact setup is a bit complex but goes something like this:

> 1. page is rendered with a hidden modal dialog containing the map div (#leaflet_map)
> 2. user clicks a table row
> 3. ajax callback retrieves Lat/Lon pair
> 4. a function is called to create the map with the lat/lon (just like the simple London example)
> 5. modal dialog show() method make the modal dialog with map visible

> Thanks for any suggestions.


 
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.