Creating a Public Map for Your Website

Many conservation organizations have or would like an interactive map of their properties on their website. Usually creating and maintaining such a map requires a lot of time and technical expertise. Since all of the data that you'd likely want on such a map is already in LANDSCAPE, wouldn't it be great if LANDSCAPE could generate that map and keep it updated for you? It can!

Making the Map Public

If you are an Administrator user in your LANDSCAPE account, go to Settings, then choose Public Map from the menu bar on the left side.

To enable your public map widget, select "Yes" at the top.

enablepublicmap.PNG

A box will be displayed that contains an HTML tag that you can use on your website to "host" your public map. By default, it will size itself to the container in which you put it on your website.

Previewing the Map

If you would like to see what your map looks like to the public at any time, press the Preview Map link.

Choosing What is Shown on the Map

By default the map will show all of your Property Acquisitions with a Status of "Current Holding." If that isn't what you want, you can modify the data query to show any Property Acquisition or Stewardship that you want.

The query interface is the same as on the Views page.

Styling the Map

There are currently only a few settings you can use to change the way your map data is displayed. When you are zoomed out on the map, your polygons will be collapsed to markers. You can set the Marker color by clicking on the color picker next to Marker Color. Likewise you can set the outline and fill colors of the polygons in this way.

Formatting the Popup Window

When a user clicks on a marker or polygon, an informational popup window will appear. You can control what is displayed in the popup window using the editor. This editor behaves like the Report Template editor - simply click in the editor and start typing. You can format your text and add pre-defined data tags, or merge fields, from the list:

datatags.PNG

Here's an example popup using data tags to merge the data from your properties:

mappopupexample.PNG

 

Advanced Widget Usage

The "src" field in the HTML widget can be customized to pass parameters to the public map. For example, if you wanted to have the map zoom to a particular property, you could add the "place" parameter to the end of the "src" field as a querystring:

src="https://landconservationsoftware.com/landscape/public/map/550c9af7f72c371304c90f1d?place=My Special Property"

To use the "place" parameter, the name you supply must match the name of a Property Acquisition or Stewardship (depending on the source of your data) exactly.

Alernatively, you can also use latitude and longitude values and a zoom amount:

src="https://landconservationsoftware.com/landscape/public/map/550c9af7f72c371304c90f1d?lat=45.0&lng=-100.2&zoom=12"

With some fancy HTML programming, you could make these variables dynamic when your page loads, so you could provide people with hyperlinks that take them to a particular place on your map. This could be useful for project announcement emails, for example.

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk