Map types - Elektromann/yii2-openlayers-maps GitHub Wiki

About

Map type is a style. It means, the map can shows only roads or shows trees and buildings. By default you use simple map but you can choose an other.

Map types

Set map type

If you want set map type, add 'type' to the array:

<?= \elektromann\openlayers\Map::widget([
    'center' => "London",
    'type' => elektromann\openlayers\Map::TYPE_SIMPLE,
]); ?>

Map types

  • TYPE_SIMPLE
  • TYPE_STAMEN_WATERCOLOR
  • TYPE_STAMEN_TERRAIN
  • TYPE_XYZ_ESRI
  • TYPE_BINGMAPS

About Bing Maps type visit Bing maps page.