forked from Snck3rs/contao-leaflet-maps
Ongoing development.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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 -->
|
||||
|
||||
|
||||
Reference in New Issue
Block a user