• Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Hooks

Namespaces

  • None
  • SIW
    • Admin
    • API
    • Async
    • Batch
    • Compatibility
    • Data
    • Elements
    • Email
    • External
    • Forms
    • Modules
    • Newsletter
    • Page_Builder
    • Plato
    • Widgets
    • WooCommerce
      • Admin
      • Checkout
      • Email
      • Export
      • Frontend
      • Import

Classes

  • Accordion
  • Carousel
  • Chart
  • Google_Maps
  • Interactive_Map
  • Interactive_Map_Destinations
  • Interactive_Map_ESC
  • Interactive_Map_Netherlands
  • Modal
  • Pie_Chart
  • Tablist
  • Taxonomy_Filter
  • World_Map

Class World_Map

Wereldkaart

Namespace: SIW\Elements
Copyright: 2019 SIW Internationale Vrijwilligersprojecten
Since: 3.0.0
Located at elements/world-map.php

Methods summary

public
# __construct( )

Constructor

Constructor

protected
# enqueue_script( )

Voegt SVG-script toe

Voegt SVG-script toe

protected
# enqueue_style( )

Voegt (inline) style toe

Voegt (inline) style toe

public string
# generate( string|SIW\Data\Country $country, integer $zoom = 1 )

Genereert kaart

Genereert kaart

Parameters

$country
$zoom

Returns

string
protected true
# set_country( string|SIW\Data\Country $country )

Zet land om in te kleuren

Zet land om in te kleuren

Parameters

$country

Returns

true
protected
# get_viewbox( )

Bepaalt viewbox o.b.v. zoom en locatie land

Bepaalt viewbox o.b.v. zoom en locatie land

Todo

refactor
protected float
# calculate_offset( float $coordinate )

Berekent offset van coordinaat

Berekent offset van coordinaat

Parameters

$coordinate

Returns

float

Properties summary

protected string $map_file

Bestandsnaam van wereldkaart

Bestandsnaam van wereldkaart

# SIW_ASSETS_URL . 'images/maps/world.svg'
protected SIW\Data\Country $country

Land

Land

#
protected SIW\Data\Continent $continent

Continent

Continent

#
protected integer $zoom

Zoom-niveau

Zoom-niveau

# 1
protected float $width

Breedte van SVG

Breedte van SVG

# 1200
protected float $height

Hoogte van SVG

Hoogte van SVG

# 760
SIW API documentation generated by ApiGen