I believe this issue has been reported previously, but it still persists in Beta 17. I am loading a simple latitude and longitude record from a Server Connect at the top of the page. The longitude value works correctly in the marker, but the latitude value does not. Instead, I receive the following error:
Could you please check if this is a known issue or if there's a workaround?
Thanks!
<div is="dmx-leaflet-map" id="ZihuatanejoMap" latitude="" longitude="" address="London" zoom="15" style="width: 100%; height: 600px;" dmx-bind:latitude="mapMarker.data.latitude" dmx-bind:longitude="mapMarker.data.longitude">
<dmx-leaflet-marker id="leafletmarker1" dmx-bind:longitude="mapMarker.data.longitude" dmx-bind:latitude="mapMarker.data.latitude"></dmx-leaflet-marker>
</div>
Here is another topic from the same without solution.
Hi all,
Just trying to get my first leaflet map work based on Teodors docs, but whatever I try, it is just not working for me.
The goal is to show one single marker with dynamic lat and long values.
Added the map without any issue. Then added a marker and set its dynamic attributes to the right values.
<div class="col">
<div is="dmx-leaflet-map" id="map_breeder" latitude="47.1817585" longitude="19.5060937" address="Hungary" zoom="10" style="width: 100%; height…
patrick
February 11, 2025, 9:00am
3
Please test following update:
dmxLeafletMaps.zip (14.1 KB)
Now the pointer is located in the right spot but the map is not centered to the pointer.
live Example
https://www.mardesabores.travel/leaflet.php
Error
patrick
February 12, 2025, 9:42am
5
The example page still uses the old script
Maybe you send me the old ones because I update twice and still the same error.
patrick
February 12, 2025, 4:24pm
8
Was able to see the new error and have a new update.
dmxLeafletMaps.zip (14.2 KB)
1 Like
This works. Thanks a lot.
Do you know when is planed to launch the server side includes for PHP? Any idea?
brad
February 12, 2025, 4:42pm
11
Includes in PHP has been there since day one? What are you trying to do? Maybe open a new topic.
@brad there is as a php include. But I mean having something like this:
There are template functions coming to PHP that will allow you to access data from a serverconnect action that can be included on the page. Can't say how long the implementation will take but I already did some preparations in the PHP code for it.
Here a sample of the current experimental implementation, this can change in the future.
<!-- tell serverconnect we are in a template -->
<?php define('TEMPLATE', true); ?>
<!-- simply require the serverconnect action, it will run directly -->
<?php …
Teodor
February 12, 2025, 5:02pm
13
PHP includes are available in Wappler. What you're talking about is server side rendering. This is not available, no specific date for its integration in Wappler, it's not our top priority at the moment.
Also please post different issues in separate topics, you already have a topic about server side rendering for PHP, so post there if you have any comments.
1 Like
Teodor
February 27, 2025, 5:33pm
15
Fixed in Wappler 7 Beta 18