# Class: ModernStoreLocator

## ModernStoreLocator

WPGMZA.ModernStoreLocator

#### new ModernStoreLocator(map_id)

  The new modern look store locator. It takes the elements from the default look and moves them into the map, wrapping in a new element so we can apply new styles. Please do not call this constructor directly. Always use createInstance rather than instantiating this class directly. Using createInstance allows this class to be externally extensible.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `map_id` | int | The ID of the map this store locator belongs to

### Methods

#### <static> createInstance(map_id)

  Creates an instance of a modern store locator, please always use this function rather than calling the constructor directly.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `map_id` | int | The ID of the map this store locator belongs to

  ##### Returns:

  An instance of WPGMZA.ModernStoreLocator
  Type
    WPGMZA.ModernStoreLocator

#### Search results