8.22. Foundation Magellan (Magellan) Navigation

发布时间 : 2025-10-25 13:33:52 UTC      

Page Views: 27 views

8.22.1. How to create Magellan Navigation

Magellan navigation is a navigation index, which is created as follows:

Example


Page1

...

Page2

...

8.22.2. Case analysis

Add on the < div > element data-magellan-expedition="fixed" Property to create Magellan navigation.

And then in

Or
  • Add on data-magellan-arrival="value" Property, followed by a link (page1) that is the same as the property value.

    Use data-magellan-destination="value" Property to control the target of Magellan navigation, followed by the Element addition name="value" Property. The values of both properties must be the same as the data-magellan-arrival The values of the page1 ).

    Finally, initialize the Foundation JS, and the navigation automatically switches according to what is currently displayed when the user scrolls the page.

    8.22.3. Magellan Navigation head Toolbar

    Magellan navigation uses an example of the head toolbar:

    Example

    <div data-magellan-expedition="fixed">
      <nav class="top-bar" data-topbar>
        ...
        <section class="top-bar-section">
          <ul class="left">
            <li data-magellan-arrival="page1"><a href="#page1">Page
    1a>li>
            <li data-magellan-arrival="page2"><a href="#page2">Page
    2a>li>
          ul>
        section>
      nav>
    div>
    <h3 data-magellan-destination="page1">Page1h3>
    <a name="page1">a>
    ...
    <h3 data-magellan-destination="page2">Page2h3>
    <a name="page2">a>
    ...
          

    8.22.4. Magellan navigation inner margin

    By default, Magellan navigates

    The element has the inner margin of 10px. You can remove it using CSS:

    Example

    [data-magellan-expedition], [data-magellan-expedition-clone]{
        padding:0;
    }
    

    8.22.5. Magellan navigation options

    Use the data-options property to modify Magellan navigation settings, such as

    data-magellan-expedition="fixed" data-options="destination_threshold:60"> :

    Name

    Types

    Default

    Description

    Example

    active_class

    string

    active

    Specify the class that activates the link

    https://www.runoob.com/try/try2.php?filename=tryfoundation_ref_js_magellan_active _

    threshold

    number

    0

    Specify when the navigation needs to be fixed. Scrolls are calculated based on the scroll bar, which defaults to 0 (auto).

    https://www.runoob.com/try/try2.php?filename=tryfoundation_ref_js_magellan_threshold _

    destination_threshold

    number

    20

    Set this value to set the value at the top of the navigation list when the navigation link is displayed as active (blue background).

    https://www.runoob.com/try/try2.php?filename=tryfoundation_ref_js_magellan_destination _

    fixed_top

    number

    0

    Specifies the pixel value of the navigation bar from the head

    https://www.runoob.com/try/try2.php?filename=tryfoundation_ref_js_magellan_fixedtop _

    Principles, Technologies, and Methods of Geographic Information Systems

     102

    In recent years, Geographic Information Systems (GIS) have undergone rapid development in both theoretical and practical dimensions. GIS has been widely applied for modeling and decision-making support across various fields such as urban management, regional planning, and environmental remediation, establishing geographic information as a vital component of the information era. The introduction of the “Digital Earth” concept has further accelerated the advancement of GIS, which serves as its technical foundation. Concurrently, scholars have been dedicated to theoretical research in areas like spatial cognition, spatial data uncertainty, and the formalization of spatial relationships. This reflects the dual nature of GIS as both an applied technology and an academic discipline, with the two aspects forming a mutually reinforcing cycle of progress.