Clustering POI

62 views
Skip to first unread message

Александр Тищенко

unread,
May 17, 2021, 10:05:32 AM5/17/21
to Mapsforge & VTM
Hi. Please help. How I can clustering some POI that gettings from tile server? I want clustering bloks, gates and liftgates when they too close.

Emux

unread,
May 17, 2021, 10:11:06 AM5/17/21
to mapsfo...@googlegroups.com
Clustering is only possible in overlays for markers.
(not for map elements being in map tiles or files)

There is a sample in vtm-android-example contributed by users,
but it is more proof of concept, so it is under Experiments.

--
Emux

Emux

unread,
May 17, 2021, 10:15:56 AM5/17/21
to mapsfo...@googlegroups.com
You can change the priority of how labels and icons (from map tiles / files) are drawn with the render theme "priority" parameter.

See the render theme documentation for more details.

--
Emux

Александр Тищенко

unread,
May 17, 2021, 10:17:40 AM5/17/21
to Mapsforge & VTM
and there is no priority as for captions?

понедельник, 17 мая 2021 г. в 17:11:06 UTC+3, Emux:

Александр Тищенко

unread,
May 17, 2021, 10:18:53 AM5/17/21
to Mapsforge & VTM
I couldn't set priority for symbols without captions
понедельник, 17 мая 2021 г. в 17:17:40 UTC+3, Александр Тищенко:

Emux

unread,
May 17, 2021, 10:32:49 AM5/17/21
to mapsfo...@googlegroups.com
Looking at render theme schema the "priority" is available for "caption" and "text" tags.

--

Александр Тищенко

unread,
May 17, 2021, 10:46:15 AM5/17/21
to Mapsforge & VTM
yes, but I have only "symbol" tag

<m k="kind">
            <m zoom-min="17">
                <m v="bollard">
                    <symbol src="assets:icons/barrier/gate.svg" />
                </m>
                <m v="block">
                    <symbol src="assets:icons/barrier/gate.svg" />
                </m>
                <m v="gate">
                    <symbol src="assets:icons/barrier/gate.svg" />
                </m>
                <m v="lift_gate">
                    <symbol src="assets:icons/barrier/gate.svg" />
                </m>
            </m>
 </m>

понедельник, 17 мая 2021 г. в 17:32:49 UTC+3, Emux:

Emux

unread,
May 17, 2021, 10:53:58 AM5/17/21
to mapsfo...@googlegroups.com
It is a 3D map, priorities are needed in labels, symbols work differently.

--
Emux

Emux

unread,
May 17, 2021, 10:59:34 AM5/17/21
to mapsfo...@googlegroups.com
Please study the render theme documentation and see the default themes.

Hint: you can use the select="first" parameter in the symbols group.

--
Emux
Reply all
Reply to author
Forward
0 new messages