Creating a new map


You can display your map anywhere on the page by using a shortcode [ctlocation]. If you don’t define any map parammeters it will come with the defaults:

  • ROADMAP style,
  • width 100%,
  • height 400px
  • 3rd level of zoom,
  • StreetView active
  • centered on the city

Feel free to change any of the map parameters via shortcode attributes:

  • MAPWIDTH
    Example:

    You can use value in pixels or percents.
  • MAPHEIGHT
    Example:

    You can use value in pixels or percents.
  • CENTER
    Example:

    Specify the point on which your map will centered after reloading the page.
  • ZOOM
    Example:

    You can select values from 1 to 12.
  • CAT
    Example:

    Define which markers should be displayed with assigned categories.
  • TAGS
    Example:

    Define which markers should be displayed with assigned tag.
  • STREETVIEW
    Example:

  • STREETVIEWNOW
    Example:

    Enable or disbale StreetView option on your map with True and False attribute values.
  • TRAFFICLAYER
    Example:

    Select True or False value. You can add next layer to your map to mark the most important roads.
  • MAPTYPE
    Example:

    Avalible map types: Hybrid, Roadmap, Satellite, Terrain. If you set different type than Roadmap, second button will be created at the top-right corner. If you set Terrain, there will be checkbox inside of default button.
  • GROUNDOVERLAY
    Example:

    You can create new layer on your map to display an image. It is useful if you want to show how the displayed area had looked before or… how it looks now (for ex. if you set Satellite map type). Image_URL is a path to image, it could be web address. “NE” means top-right corner of image, “SW” is bottom-left corner.
    All of these values are required.
  • POLYLINE
    Example:

    You can draw a line on your map, which is based on declarated points. You can choose its color, visibility, and largeness. IMPORTANT! Remember about inserting Lat and Lng values for 2 points minimum.
  • POLYGON
    Example:

    You can draw a polygon on your map, which is based on declarated points. You can choose color, visibility, and largeness of its elements. IMPORTANT! Remember about inserting Lat and Lng values for minimum 3 points.
  • ROUTE
    Example:

    Thanks to this attribute you can display a route from point A to point B.
    IMPORTANT! Note that locations are separated with semicolon (” ; “), not with comma!

Notice:
Locations are separated with semicolon (” ; “), not with comma!