Skip to content

Instantly share code, notes, and snippets.

@antonioortegajr
Last active January 12, 2018 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonioortegajr/910e0b3d7b01ff05273f943b745bb1cb to your computer and use it in GitHub Desktop.
Save antonioortegajr/910e0b3d7b01ff05273f943b745bb1cb to your computer and use it in GitHub Desktop.
map twig elements

Map page twig variable definitions.

Some variables and macros will riqure the an import. These are generally indentified when a period is included Example: labels.subdivision Additionally some variable are combined with logic such as an {% if %} statement. Others may pass arguments.

{% include 'navbar-1.000.twig' %}

{% include 'mobileFirstMapSearchForm-1.002.twig' %}

{{ minPrice.displayName }}

{{ queryArray.lp }

{{ minPrice.displayName }}

{{ maxPrice.displayName }}

{{ queryArray.hp }}

{% include 'multipleMlsDisclaimers-1.000.twig' %}

{{ mapCookie }} - access the map cookie

{{ mapData.mapSourceJS }} - import of source JS for map

{{ script }} - require import for JavaScript for the map then add map script

{# Include our new pins/clusters. #} - JS for pin clustering in leaflet

{% include 'leaflet-1.001.twig' %} - incluse the leaflet JS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment