Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I create an SVG map with popup information following mouse movement?

create map mouse movement popup SVG
0
Posted

How do I create an SVG map with popup information following mouse movement?

0

In general, generating an SVG map from MapViewer is no different from generating maps in other formats such as PNG. Whereas for a PNG map you specify the format to be either PNG_URL or PNG_STREAM, for SVG maps you specify the format to be SVG_URL or SVG_STREAM. One unique and very useful feature of SVG maps is to be able to associate attributes with spatial features being displayed, and as you move the cursor over the features, the attributes are automatically displayed in a pop-up window that follows the cursor movement. The following figure illustrates such a SVG map (click on the Info button then move cursor around): To create such a map, specify elements in your theme’s styling rule. In the above svg example, the theme for the counties has three elements corresponding to three attribute columns from its base table.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123