Announcement

  •  » Extensions
  •  » [OpenStreetMap] Map is misaligned on init

#1 2022-03-10 08:02:07

Serge D
Member
US
2014-07-15
372

[OpenStreetMap] Map is misaligned on init

Hi

while trying integrate OSM into my theme, I run across the issue of the map being misaligned on initial load

Ex: https://photo.dragonsoft.us/picture?/18 … 17#tab-map

Any idea on why it may be happening?

here is a code

Code:

  {if isset($OSMJS)}
  <div id="tab-map" class="image-metadata-tab">
    <dt {$OSMNAMECSS}>{$OSMNAME}</dt>
    <dd>
      <div id="map"></div>
      <script type="text/javascript">
  {$OSMJS}
      </script>

      {if $SHOWOSM}
      <a href="{$OSMLINK}" target="_blank">{"VIEW_OSM"|@translate}</a>
      {/if}
    </dd>
  </div>
  {/if}

Offline

 
  •  » Extensions
  •  » [OpenStreetMap] Map is misaligned on init

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact