Skip to content

Martin table update #748

Answered by IncidGeo
IncidGeo asked this question in Q&A
Jul 6, 2023 · 1 comments · 12 replies
Discussion options

You must be logged in to vote

Sorry, I got confused. I looked at my code and realized it had nothing to do with Nginx or Martin, the issue was on the client side. That said, I still had to update Martin due to a really slow startup problem.

I added the following functions to my code:

map.on('zoomend', function () { RefreshZone(); });
map.on('dragend', function () { RefreshZone(); });

I also added RefreshZone() at the end of the async functions that adds, saves, and deletes rows in the database.

Then, I defined the RefreshZone function:

function RefreshZone() {
    const baseUrl = "{{ base_martin_url }}";
    map.getSource('zones').setUrl(baseUrl + `/carto_projet_zxy`);
    map.getSource('zones_label').setUrl(baseUrl …

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@gagecarto
Comment options

@IncidGeo
Comment options

@gagecarto
Comment options

@IncidGeo
Comment options

Answer selected by IncidGeo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants