fx - ADD A QUICK ZOOM MENU

Home navigation:   NPGeoMap Properties Dialog > Basic Settings > Zoom Settings >

fx - ADD A QUICK ZOOM MENU

Zum deutschen Handbuch wechseln NPGeoMap

Version 2.5.84, 07.12.2017

click to expand

click to expand

The values for nearly all features may be entered as calculated formulas or variables.

For detailed information about the notation in expression editors go to chapter The fx‑editor.

ADD A QUICK ZOOM MENU 

SETTING / VALUES

EXPLANATION

 

 

/* REMOVE THIS LINE...

As soon as you remove or delete this line, the Quick Zoom Menu is enabled. To disable it again, set slash and a star /* at this position (see info about remarks).

The Quick Zoom Menu allows you to switch to predefined zoom positions on the map with one click.
Example:
In the properties below the map section "New York" is configured and now will appear in the context menu of the Zoom button. If clicked, the view in the object will shift to the defined position. (see screenshot on the right)

Quick Zoom Menu

click to expand

There are five default areas defined in the array below - Vienna, Berlin, Bern, Paris and New York. Each of them contains a caption, two coordinates and the ShowCaption feature. You can adjust or change the content of the elements, delete whole lines with areas you don't need or copy and paste lines in the array for adding further areas. Pay attention to a proper notation - see details in the chapter The fx‑editor.

Make sure to press  F5  for a refresh after setting this feature, in order to let the changes take effect.

 

 

Each of the Quick Zoom Menu areas in the array contains the following features:

Caption

content/text/name

caption or label for the area

Replace Vienna, Paris, New York... with name or a description for the respective area.
This text will appear in the context menu. By using the feature ShowCaption (last point in the table) the text can also be shown as a title in the map.

Coordinates1

coordinates

 coordinates of the upper left corner of the area

Enter here the coordinates latitude and longitude of the upper left corner from the mapping area you want to define.
You can get them for instance by right clicking in GoogleMaps and choosing "What's here?" in the context menu - the coordinates will then be displayed in the upper left corner of the web page.

Notation:
In JSON coordinates are handled as text (string), that's why they have to be enclosed in double quotes "" . Coordinates in NPGeoMap are always separated by comma , and have a dot . as decimal separators.
Example:
"latitude,longitude"
"51.109790,10.647978"

Coordinates2

coordinates

 coordinates of the bottom right corner of the area

Enter here the coordinates latitude and longitude of the bottom right corner from the mapping area you want to define.
You can get them for instance by right clicking in GoogleMaps and choosing "What's here?" in the context menu - the coordinates will then be displayed in the upper left corner of the web page.

Notation:
In JSON coordinates are handled as text (string), that's why they have to be enclosed in double quotes "" . Coordinates in NPGeoMap are always separated by comma , and have a dot . as decimal separators.
Example:
"latitude,longitude"
"51.109790,10.647978"

ShowCaption

true

 caption will be shown as title (default)

false

 no title

This feature can display the Caption in the upper left corner of the NPGeoMap object as a title for the mapping area.
The label will be shown, when you click the area in the Quick Zoom Menu, as long as you don't pan the map.