Ongoing development.

This commit is contained in:
David Molineus
2014-12-29 16:23:08 +01:00
parent e5d11e8ed6
commit ee9d293d2e
8 changed files with 60 additions and 20 deletions

View File

@@ -12,7 +12,7 @@
}).addTo(map);
var geocoder = L.Control.geocoder({
collapsed: false,
placeholder: 'Suchen'
placeholder: '<?php echo $GLOBALS['TL_LANG']['tl_leaflet_map']['searchPosition']; ?>'
}).addTo(map);
geocoder.markGeocode = function(result) {
@@ -21,7 +21,7 @@
var element = $('<?php echo $this->field; ?>');
link.set('style', 'margin-left: 10px;');
link.appendText('übernehmen');
link.appendText('<?php echo $GLOBALS['TL_LANG']['tl_leaflet_map']['applyPosition']; ?>');
link.addEvent('click', function(e) {
e.stop();

View File

@@ -1,6 +1,17 @@
<!-- indexer::stop -->
<div class="<?php echo $this->class; ?> block"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>>
<?php if ($this->headline): ?>
<<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>>
<?php endif; ?>
<div id="<?php echo $this->mapId; ?>" style="width: 100%; height: 400px;"></div>
<?php if ($this->map): ?>
<script>
<?php echo $this->map; ?>
</script>
<?php endif; ?>
</div>
<!-- indexer::continue -->