top of page

Forum Posts

Nex Im
Jul 08, 2023
In Coding with Velo
I want to display distances between the user's location and the searched location in a repeater. In the repeater should be the corresponding text line with the number of kilometers for each location. I have already finished the functions for this. Now my idea was to insert the calculated data into my database using the insert() method and then connect a text line with these values. But it occurred to me that it would be a problem if several users would do the same and stand in different places. My question would be if there is a way to update the database user-specifically without affecting other users. Or is that not possible? If it is not possible, can anyone think of a solution how I can assign the distances to the respective location (element) in the repeater without linking to the dataset? Or does anyone have any other ideas? Thanks in advance
0
1
13
Nex Im
Jul 05, 2023
In Coding with Velo
Hi all, I was wondering if there is a way in Wix/Editor-X to implement a sheet, bottom sheet, bottom drawer, bottom modal sheet (depending on what you call it). You know this drawer for example from iPhone Apps. I would also like to have something similar for my mobile page. Users should be able to fold it up and down by dragging it. I couldn't find something similar natively in the editor, maybe someone knows a workaround for this? Thanks a lot in advance!
Bottom Drawer in Wix? content media
0
0
12
Nex Im
Jun 29, 2023
In Coding with Velo
hello together, I was wondering if/how it is possible to stretch an HTML element to the entire size of the user's browser window. I have a leaflet map in the HTML element and would like to display it as shown in the photo: I want to stretch the HTML component to max width and length, but I don't know how. I have only seen in the settings, you can stretch the element to the page width, but not the height. I would like to note that I have already read through some posts and API-Doc regarding this topic, but have not found anything about it. Is it perhaps only possible with Editor X? I would appreciate any help!
[SOLVED] set HTML-Component to page-max - How? content media
0
1
24
Nex Im
Jun 12, 2023
In Coding with Velo
Hello together, I have created map on my main page along with several filters (dropdowns, searchboxes ect). Now I want my filter elements to move to a popup. I have seen some forum posts from people who wanted to do it similarly. Unfortunately the solutions were always something like: create variables for each function, export, import ect. In short: a lot of workarounds. I have the problem that my filter function code is very complex and it will be too much trouble for me to do it this way and still keep the overview. So I was wondering if anyone knows a simpler way to have the same filter elements with the same functions just appear on the lightbox page instead of the main page. Maybe by projection? :D Joking aside, I would appreciate any answer and idea! Edit: My wish would be to keep the same filter elements on the main page with all the functions, just hidden and that in the lightbox would be some kind of projection/connections of these filter buttons ect.
0
4
47
Nex Im
Jun 04, 2023
In Coding with Velo
Hello all, I have created a filter condition for my repeater in which the locations from my database should be displayed: function search () { wixData.query("Ladestationen") .contains("ladekabel", String($w("#ladekabel").value)) .and(wixData.query("Ladestationen").contains("geraete_typ", String($w("#dropdown1").value))) .and(wixData.query("Ladestationen").contains("title", String($w("#searchBar").value))) .find() .then(results => { $w("#repeater4").data = results.items; }) } I now want the filter conditions to be applied to my Leaflet map as well. The card is in the HTML element and the data was passed to it via postMessage method: wixData.query("Ladestationen") .find() .then((results) => { results.items.forEach((item) => { // Post message to HTML element for each item $w("#html1").postMessage(JSON.stringify(item)); }); }) .catch((error) => { console.error(error); }); window.onmessage = function (event) { var message = event.data; var data = JSON.parse(message); but I have no idea how to do it (I've been trying for days)... I would like the maps to display ALL locations from the database and then create a function in the HTML element code that removes all markers that do not hit when selecting a filter option. Can you tell me what the procedure for this could be? If my method should be completely wrong, can you tell me how to synchronize the filter conditions from my repeater and the Leaflet card in the iFrame instead? I would be extremely happy about any help! Thanks!
0
5
39
Nex Im
Apr 17, 2023
In Coding with Velo
Hello, I am very inexperienced with coding. I know it's a bit amateurish, but I'm trying to use ChatGPT to write my codes and explain them to me. I need an open street map on my site that will create the pins I have in my wix database. I have already managed to create a map thanks to Leaflet. Now I don't know how to feed my map with the data from my database. ChatGPT suggested me a solution in which I should create a .js (see screenshot). Then on the page where I want the map to be displayed, I should create an HTML element that connects to my .js file. That sounded logical so far. But at the line <script src="path/to/map.js"></script> I have problems. I suspect the phad is wrong. but I don't know how to find out the correct phad from my created .js file. How do i find out the correct phad? If my whole procedure is wrong: how to proceed instead if i want to connect my map with data from my database? Thank you for any suggestions on how to solve this.
Open Street Map should connect to the data from my database, how? content media
0
1
58
Nex Im
Apr 13, 2023
In Coding with Velo
Hello, I would like to realize a simple but very specific project. I would like to create a page with Wix/Velo/Editor-X like this electric car finder Web App here: (Or something similar to this app here:) The page consists mainly of an interactive map where there are several pins and also an icon for the user's current location. The user should easily find a location near them that they are looking for. There should be a filter function that filters the map and a dynamic list according to the user's preferences. When you click on a pin on the map, a small box should appear with important information about that location. The user should also be able to add new locations to the database. I would like to be able to customize the designs of the pins and the filter buttons. Is this possible in Wix or Editor X? If so, how exactly would you advise me to proceed? Wix has a built-in map option, but there is also a Google Map API. Which method should I use? I don't know if the Google Map API can be connected to the Wix database. I already managed to implement the basic functions in Glide Apps myself, but I didn't like the fact that I can't change the design, so I wanted to switch to Wix. I would just like to know how to get started and apologize if I may have posted my question in the wrong forum. Maybe someone can help me. I would be very happy about any answer.
Help: Custom interactive map with filter functions content media
0
1
48

Nex Im

More actions
bottom of page