Technology Tools for Ministry

Community

Web-Empowered Church User Community
All Categories > Ministry Tools > Map Extension > simple map with tt_address item and different markers
Total Posts: 3 - Pages (1): [1]
Author: alin radulescu
Posted: Aug 26 2008 - 06:00 PM
Subject: simple map with tt_address item and different markers
Hello,

this is my first english post ever, and i hope you can understand my "experimental" english ;)

I've installed wec_map and it works fine. It's a really nice and very fast geocoding TYPO3 extension.

I use tt_address to manage my address pool. For my addresses I have different categories like theater, concerts, sports,...

1.) Is it possible to display the POIs on the Table Map Plugin with different markers/icons? And is it possible to select by checkbox, link, however, one or more categories that should be displayed?

2.) For every address I use an additional page with information about the POI. In the single view of my POI I use the Simple Map Plugin.
Is it possible to select the address information for the simple map plugin from my tt_address - table? At the moment I have to enter the address information twice.

Thanks a lot and sorry for my horrible language skills.
Alin
Author: alin radulescu
Posted: Aug 28 2008 - 03:36 AM
Subject: re: simple map with tt_address item and different markers
Hi,

the first problem it's been solved. With a little bit TS it was no problem to display different markers for different tt_address categories.

1.) Is it possible to display the POIs on the Table Map Plugin with different markers/icons? And is it possible to select by checkbox, link, however, one or more categories that should be displayed?


There ist my solution:

plugin.tx_wecmap_pi3 {
tables {

10 {
table = tt_address
join = INNER JOIN tt_address_group_mm
where = tt_address.uid = tt_address_group_mm.uid_local AND tt_address_group_mm.uid_foreign = 17

icon {
iconID = concerts
imagepath = typo3conf/ext/wec_map/images/mm_20_red.png
shadowpath = typo3conf/ext/wec_map/images/mm_20_shadow.png
width = 12
height = 20
shadowWidth = 22
shadowHeight = 20
anchorX = 6
anchorY = 20
infoAnchorX = 5
infoAnchorY = 1
}
}

20 {
table = tt_address
join = INNER JOIN tt_address_group_mm
where = tt_address.uid = tt_address_group_mm.uid_local AND tt_address_group_mm.uid_foreign = 18

icon {
iconID = theater
imagepath = typo3conf/ext/wec_map/images/mm_20_green.png
shadowpath = typo3conf/ext/wec_map/images/mm_20_shadow.png
width = 12
height = 20
shadowWidth = 22
shadowHeight = 20
anchorX = 6
anchorY = 20
infoAnchorX = 5
infoAnchorY = 1
}
}
}

For every category I added a new site. With:

table = tt_address
join = INNER JOIN tt_address_group_mm
where = tt_address.uid = tt_address_group_mm.uid_local AND tt_address_group_mm.uid_foreign = 17

is it possible to display only the POIs of one or more categories.

Maybe is it usefull for someone else.

Till now I have no idea how to solve the second problem...

2.) For every address I use an additional page with information about the POI. In the single view of my POI I use the Simple Map Plugin.
Is it possible to select the address information for the simple map plugin from my tt_address - table? At the moment I have to enter the address information twice.

Author: Bert Hiddink
Posted: Aug 28 2008 - 04:51 AM
Subject: re: simple map with tt_address item and different markers
Hello,

I do something similar with tt_news in combination with wec_map. Please look at the snippet below.

You should use "GPvar" for the category to display ({GPvar:tx_your_ext|cat} and then have the category menu on the same page where you have your map. When a cat is selected, the GPvar is added to the URL of the page where your simple map is installed...

# Wec_map configuration for "Miembros de la red
plugin.tx_wecmap_pi3 {
pid = 186
addressForm >
tables {
10 {
table = tt_news
#Default SQL if no cat is selected
where = tt_news.pid = {$tt_news_pid_map_records}
# where.stdWrap.data = debug:data
where.insertData = 1
title {
title = TEXT
title.field = title
title.wrap = <b>|</b><br>
}
....
}

#Overwrite SQL if cat is selected
[globalVar = GP:tx_ttnews|cat > 0]
plugin.tx_wecmap_pi3.tables.10.join = INNER JOIN tt_news_cat_mm
plugin.tx_wecmap_pi3.tables.10.where = tt_news.pid = {$tt_news_pid_map_records} and tt_news.uid = tt_news_cat_mm.uid_local and tt_news_cat_mm.uid_foreign = {GPvar:tx_ttnews|cat}
[global]

Please look here for a demo:
http://www.icoder.go.cr/instalaciones-deportivas/

With the cat_menu on the left, you can filter the map-items...

Hope this helps...

Bert
Total Posts: 3 - Pages (1): [1]
You must login to post a message to this conference.