You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
743B

  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2013-2015 2amigOS! Consulting Group LLC
  4. * @link http://2amigos.us
  5. * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
  6. */
  7. namespace dosamigos\leaflet\layers;
  8. use dosamigos\leaflet\types\LatLng;
  9. trait LatLngTrait
  10. {
  11. /**
  12. * @var \dosamigos\leaflet\types\LatLng holds the latitude and longitude values.
  13. */
  14. private $_latLon;
  15. /**
  16. * @param \dosamigos\leaflet\types\LatLng $latLon the position to render the marker
  17. */
  18. public function setLatLng(LatLng $latLon)
  19. {
  20. $this->_latLon = $latLon;
  21. }
  22. /**
  23. * @return \dosamigos\leaflet\types\LatLng
  24. */
  25. public function getLatLng()
  26. {
  27. return $this->_latLon;
  28. }
  29. }