Results 1 to 10 of 14

Thread: Mapping object changing position

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    Beech Hill - a village near Reading in the UK
    Posts
    1,508

    Default Mapping object changing position

    Hi

    I am creating a mapping component using Leaflet and it is working as I intend, but with one issue which I am having trouble pinning down.

    As initialised, before I try to load a map, Firefox (the behaviour is the same in Chrome and IE) shows the target <div> as being where I expect it:
    Click image for larger version. 

Name:	Screenshot 2020-01-24 at 08.27.13.jpg 
Views:	50 
Size:	131.0 KB 
ID:	13423

    But when I load a map into it, it moves to the right:
    Click image for larger version. 

Name:	Screenshot 2020-01-24 at 08.27.55.jpg 
Views:	49 
Size:	160.7 KB 
ID:	13424

    Obviously that has to do with what is happening when the map is loaded, but I can't work out what or how to fix it.

    Does anybody have any thoughts?

    Mike
    Last edited by Mike Peat; 24-Jan-2020 at 03:43 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •