Services Plugins FAQs

Mapbox show Multiple lines

Hello @ariklevy, :wave:

I am pleased to inform you that our plugin was updated, and the latest update is version 1.115.0. - updated functions code. Please update to the latest version to benefit from this improvement.

Please let me know if everything works well inside your app. :pray:

Looking forward to your reply!

Best Regards,
Daniel.

I’m sorry, but I can’t figure out how to make this work. Can you put a sample string of what is supposed to be in the List of Lines parameter like you did for MultiPolygon?

1 Like

Hello @ariklevy, :wave:

Please accept my apologies for the delay over the weekend. :pray:

For reference you could use this test page: zeroqode-demo-08 | Bubble Editor where list of lines is stored in the database:


Here is an example of the line coordinates from the database 176.2890625, 55.7765730186677,-102.3046875, 97.013667927566642 :

I hope this helps.

Best regards,
Daniel.

That worked great! In order to make it work, you need to store the coordinates as text and not a list.

This works for showing a group of lines, but the Settings are not working.
Source ID does not let you set a Unique ID for each line. It sets the same value to every line.
Color does not allow a different color for each line. You can only have one color for all lines
Would be great if you could specify a line width.

Here is a loom. Loom | Free Screen & Video Recording Software | Loom

Hi @ariklevy,
I hope you are doing well.

Looks like my colleague @Vasile already replied to you on a different forum thread.

I hope the information he shared with you was useful.
If you have additional questions, please don’t hesitate to reach out and we recommend sticking to one forum thread to avoid any delays and misunderstandings.

Thank you for your cooperation and wish you a great weekend ahead.
Regards, :raised_hands:

Hi @Igor.

Thank you for your reply. This is a different problem, not discussed in the other forum thread.

Hi @ariklevy,
Thank you for your reply.

Let me know if you solved the above issue, in case you have additional product-related questions, please let me know.

Best regards, :pray:

Hi Igor, this part is still not working.

Hi @ariklevy,

Unfortunately, the functionality of the “create line” action with the MultiLine type doesn’t support creating multiple lines, each with a unique ID or color. If I’ve correctly understood your needs, you’re looking to generate several lines on the map, each distinguished by its own ID and color. Please let me know if I’ve misunderstood your usecase.

I’ll discuss this our development team to explore if it would be possible to achieve such things with our plugin.

Looking forward to your response!

Best regards :sunflower:

1 Like

Hi @dorel,

Yes, that is exactly the issue. Thank you for your help.

Hey @ariklevy,

Thank you so much for your confirmation! I’ll make sure to keep you posted as soon as we have more information on this matter.

Best regards, :hibiscus:

Hello @ariklevy,

Hope you’re doing great!

I’m excited to share with you the newest update for the Mapbox plugin - version 1.122.0. This update brings enhancements to the “Create Line” action, including additional fields for adding Multilines on the map. Now, you can specify Width and Color for each line you add. Also, as per your request for unique IDs for each line, the updated “source id” field will automatically assign distinct IDs. You can leave this field blank (and the plugin will assign the ID itself) or enter a prefix like “line”, and the lines will be identified in the format “line0”, “line1”, “line2”, etc.

Please update the plugin by navigating to the “Plugins” tab in your Bubble editor, selecting the Mapbox plugin, and choosing the latest version. I’m eager to hear your feedback and to assist with any questions you might have :slight_smile:

Best regards :sunflower:

Wow! This is super exciting. I can’t wait to test it out.

1 Like

Hello @ariklevy,

Hope you had a relaxing weekend :blush:

It’s great to hear that you’re excited about the new features. As mentioned earlier, I’m awaiting your feedback once you’ve had the chance to implement them in your application!

Best regards :hibiscus:

Hello @ariklevy,

Consider this message a gentle reminder of our previous conversation. Have you had a chance to explore the recent improvements? I’m looking forward to hearing whether they meet your expectations :blush:

Best regards :sunflower:

I tested this out and it works as you described, but not super helpful. The problem is that I can’t pass sourceID as a parameter. If I leave it empty, it auto creates an id for each line, but I have no way to associate that to my lines. So if a user clicks on a line, I don’t know which one it is in my database. If I pass SourceID, it give every line the same ID which is all the lineID’s separated by commas. Is there no way to pass a Source ID as an array and have it associate one ID to each line, like how all the other variables work?

Hello @ariklevy,

Thank you for your feedback :pray:

I’ve discussed with the developer when talking about your request about the possibility of assigning unique IDs “like an array”, but they indicated that incorporating it into the plugin would require a significant amount of resources that at the moment we do not have.

Could you provide more details about your use case for this feature? Understanding this will help me offer better suggestions and determine the next steps.

Best regards :hibiscus:

My use case is that lines are drawn when someone is walking using their GPS location. Then they can click on those lines and edit them. Adding pictures, notes, changing color, etc. I have this all working great with a workaround I built that just shows all the lines one by one using a loop. That way they each have a Source ID an you can therefore update the record storing the line info. oading them all at once would be nice, but I’ve found a workaround.

Hello @ariklevy,

I’m glad to hear you found a workaround :pray:

We apologize for not being able to fully support your specific use case. If you have any other requests or questions, please don’t hesitate to reach out to us here or via email at support@zeroqode.com.

Best of luck with your project :blush:

Best regards :sunflower: