Technology Tools for Ministry

Community

Web-Empowered Church User Community
All Categories > Ministry Tools > Map Extension > Custom marker icons in simple map !?
Total Posts: 6 - Pages (1): [1]
Author: Frank Struck
Posted: Apr 14 2008 - 01:59 PM
Subject: Custom marker icons in simple map !?
Hello Christoph,

I tried yesterday to configure a custom marker icon as described in ../wec_map/pi1/static/setup.txt

plugin.tx_wecmap_pi1 {

icons.1 {
iconID = greenarrow
imagepath = fileadmin/templates/ext/wec_map/arrow_green.png
shadowpath = fileadmin/templates/ext/wec_map/arrow_green_shadow.png
:
:
}

markers {
}
}

Is there anything more to do to succeed?

Frank


user picture Author: Christoph Koehler
Posted: Apr 14 2008 - 02:47 PM
Subject: re: Custom marker icons in simple map !?
Frank,

You need to define all markers via TS if you want custom icons. Each marker then has a iconID property that needs to be the same as the iconID you give the icon.

Christoph
Author: Frank Struck
Posted: Apr 15 2008 - 10:36 AM
Subject: re: Custom marker icons in simple map !?
Christoph,

yes, that's what I've assumed.

But If I delete the address of the fist marker from the flexform and define it (markers.1) and a corresponding icon (icons.1) with existing files (arrow_green.png, arrow_green_shadow.png) and the right path in the extension template I only get the following result:

1. map appears with right location,
2. but with the default marker icon (mm_20_red.png) and an empty(!) info bubble.

Could you please tell me where I've made a mistake?

Thanks
Frank

-------------------------------------------------------------------------------

Here's the complete TS code I've entered:

plugin.tx_wecmap_pi1 {
height = 450
width = 570
controls.mapControlSize = 1
controls.showOverviewMap = 1
controls.showMapType = 1
controls.showScale = 1

zoomLevel = 13

icons.1 {
iconID = greenarrow
imagepath = fileadmin/templates/ext/wec_map/arrow_green.png
shadowpath = fileadmin/templates/ext/wec_map/arrow_green_shadow.png
width = 23
height = 34
shadowWidth = 41
shadowHeight = 34
anchorX = 6
anchorY = 20
infoAnchorX = 5
infoAnchorY = 1

title = TEXT
title.field = title
title.wrap = <font style="font-size:15px;"><b>|</b></font>

description = TEXT
description.field = description
description.wrap = <p><font style="font-size:13px;">|</p>

address = COA
address {
10 = TEXT
10.field = street
10.wrap = <font style="font-size:13px;"> | </font><br/>

20 = TEXT
20.field = zip
20.wrap = <font style="font-size:13px;"> | </font>&nbsp;

30 = TEXT
30.field = city
30.wrap = <font style="font-size:13px;"> |</font><br/>

40 = TEXT
40.field = state
40.wrap = <font style="font-size:13px;"> |</font> &nbsp;

50 = TEXT
50.field = country
50.wrap = <font style="font-size:13px;"> |</font>
}
}

markers.1 {
title = "Tum Bur"
description = das ZTR-Stammtisch-Lokal
street = Tippelstraße 10
city = Hattingen
zip = 45529
state =
country =
}


defaulttitle < tx_wecmap_api.defaulttitle
defaultdescription < tx_wecmap_api.defaultdescription
homeicon < tx_wecmap_api.homeicon
sidebar < tx_wecmap_api.sidebar
directions < tx_wecmap_api.directions
sidebarItem < tx_wecmap_api.sidebarItem
addressForm < tx_wecmap_api.addressForm
output < tx_wecmap_api.output
_CSS_DEFAULT_STYLE < tx_wecmap_api._CSS_DEFAULT_STYLE
}
user picture Author: Christoph Koehler
Posted: Apr 15 2008 - 12:59 PM
Subject: re: Custom marker icons in simple map !?
Frank,

You don't need to have all that TS, only the stuff you customize or change. That's the purpose of the static template that you include.
You are missing markers.1.iconID = greenarrow in order to assign the icon to the marker. Not sure why the info bubble is empty.
I will take a look later today if adding the iconID doesn't change it.

Christoph
Author: Frank Struck
Posted: Apr 16 2008 - 05:58 AM
Subject: re: re: Custom marker icons in simple map !?
Christoph,

thanks, after addding the icon-id to the marker the custom icon now appears, but the bubble is still empty. Any further suggestions?

Frank
user picture Author: Christoph Koehler
Posted: Apr 16 2008 - 01:22 PM
Subject: re: Custom marker icons in simple map !?
Frank,

You are missing a closing } after the icons.1 block, before the title.
There is a bug in simple map that causes the empty title. For now you can do this instead:
CODE:

markers.1 {
iconID = greenarrow
title = "Tum Bur"
description = das ZTR-Stammtisch-Lokal
address = Tippelstraße 10, Hattingen, 45529
}


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