New "Window" Function

249 views
Skip to first unread message

Jared

unread,
Nov 14, 2005, 11:15:07 AM11/14/05
to CommunityWalk
The "Window" function allows you to create a "window" to another
website on any location in your map. The window is accessed through a
link in the description of your location so you can create as many of
them as you like, allowing you to display any content you like in the
context of the map.

The window has two potential views, one that will display inside the
infowindow and one that will display much larger, covering most of the
map. To compensate for the loss of a map view when the larger display
is showing, I've made a smaller map that will display off to the side.

The window function has several optional parameters. The complete
structure looks like this:

window('text', 'small url', 'scrollable?', 'large url?', 'max width?',
'max height?')

text: This is the text that will display in the description

small url: This is the url for the window that will display in the
infowindow

scrollable (optional): This allows you to tell the window to display
scroll bars for large content

large url: (optional): If a large url is provided than the user will
have the ability to enlarge the content and display it in a larger
viewer. If this is omitted than the user will not have the option to
display the larger viewer.

max width and max height (optional): These must be provided together.
They dictact a restriction of how large the large viewing area can get.
This is useful if you have content that will not resize and you do not
want white space to display around it.


It is important to note that must have these parameters in order and
you can not omit a parameter. The optional parameters can be left out
in order, so if you are going to include the "large url" parameter you
also need the "scrollable" parameter.


This is fairly advanced functionality, so please contact me if you have
any questions at all about it. Here are a few examples:

window('ESPN', 'http://www.espn.com') - Produces a window that shows
the ESPN website.

window('ESPN', 'http://www.espn.com', 'true') - Produces a window that
shows the ESPN website and is scrollable.

window('ESPN', 'http://www.espn.com', 'false', 'http://www.espn.com') -
Produces a window that shows the ESPN website. This time the content is
not scrollable, but the user can display the content in a larger
window.

window('ESPN', 'http://www.espn.com', 'false',
'http://www.craigslist.com') - Produces a window that shows the ESPN
website but is not scrollable and the large viewer will display
Craigslist instead of ESPN.

window('ESPN', 'http://www.espn.com', 'true', 'http://www.espn.com',
'500', '500') - Produces a window that shows the ESPN website, is
scrollable and has a larger view that will never get larger than 500px
by 500px.

Jared

unread,
Nov 14, 2005, 11:37:09 AM11/14/05
to CommunityWalk
One Important Note:

Not all websites are designed to be viewed through an iframe and will
cause errors if you attempt to display it through the window function.
Unless you are the owner of the website or have control over the
content it is best not to use the window function.

Reply all
Reply to author
Forward
0 new messages