tw2.polymaps / tw2 / polymaps / templates / polymap.mak

<%namespace name="tw" module="tw2.core.mako_util"/>
<div>
<div ${tw.attrs(attrs=w.attrs)}>
<div id="${w.attrs['id']}:target"></div>
</div>
<script type="text/javascript">
	var map = setupPolymap(${w.j('attrs')}, ${w.j('cloudmade_api_key')},
	                       ${w.j('_tileset_id')},
						   ${w.j('center_latlon')}, ${w.j('center_range')},
						   ${w.j('zoom')}, ${w.j('zoom_range')});
	map = setupPolymapControls(map,
	            ${w.j('arrow')}, ${w.j('compass')}, ${w.j('dblclick')},
				${w.j('drag')}, ${w.j('grid')}, ${w.j('hash')},
				${w.j('interact')}, ${w.j('wheel')}
	);
	% if hasattr(w, 'interval'):
	map = setupPolymapPollingData(map,
				${w.j('data_url')},
				${w.j('interval')},
				${w.j('layer_lifetime')},
				${w.properties_callback}
	);
	% else:
	map = setupPolymapData(map,
				${w.j('data_url')},
				${w.j('layer_lifetime')},
				${w.properties_callback}
	);
	% endif
</script>
</div>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.