By Tony Boutemeur on Thursday, 27 June 2019
Posted in General Issues
Replies 7
Likes 0
Views 581
Votes 0
Hi Mark,

I opened the discussion about openstreetmap and its behaviour on easysocial stream.

In reply to your post it was this:

Mark to Tony Boutemeur ----> about 3 days ago

I have already discussed this with our team and the limitation seems to be on Open Street's Map end as it wasn't able to render markers on static images.

The other alternative is to rely on 3rd party paid services such as https://www.mapbox.com/pricing/ , which defeats the purpose of using Open Street Map in the first place.

We'll see if there are better alternatives in placing the map or probably just render the dynamic version which supports markers.


Please find attached a screenshot with DJ Classifieds using openstreetmap. DJ Classifieds team have manage to render openstreetmap on all ads in back-end and in front-end.

To the down of the map, to the right corner there is a link named "leaflet" when I clicked on it, I have got the Leaflet website: https://leafletjs.com/index.html

It seems a javascript library to render openstreetmap as you want.

In my opinion, it could be a good alternative.
Based on your screen shot, DJ Classifieds are rendering the JS version and it is not the static image. If there is only one map on the page, it makes sense but if there are more than one, things would get really heavy on the browser.

Either way, this is already logged into our internal ticketing system and we do plan to alter the behavior for maps rendered with openstreet map.
·
Thursday, 27 June 2019 18:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Mark for your reply.

If I have got it, static image is the best way instead of Javascript rendering.

What do you think about this idea?

Is it possible to create a kind of mapping component near from/close to easysocial, and when we click on share location (in the stream for example) you have to fill in the adress that is generated in the mapping component and the static image is shared (or maybe embed like youtube for example) from this mapping component?

From another example, when we would like to post a product in hikashop from easysocial share, it could be possible with a plugin. And this product is also shared in easysocial stream.

Do you think it could be possible?

If you don't see where I am coming from, don't hesitate to ask me.
·
Thursday, 27 June 2019 20:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Hm, the problem is open street map does not support pinning on static images and that itself is a problem because there is no way for us to drop a pin on static images. If open street map supports it without (external plugins and scripts), we are more than happy to implement it
·
Thursday, 27 June 2019 21:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Ok I have got it. This is the reason why you said Mapbox.

When you said
If there is only one map on the page
, yes it's not really sure because if 2 people share their own location at the same time, website could be slow down.

Which could be the better tools against slow down and getting the possibility to load a lot of ressources (map, gif, video, ...) from many users at the same time?

I think it could be better to buy some better tools instead of paying a lot of ressources providers or cloud providers.
·
Thursday, 27 June 2019 22:11
·
0 Likes
·
0 Votes
·
0 Comments
·
The slowdown is not really on the tool or resources but web browsers themselves as they would consume CPU to render the dynamic maps.

Anyway, this is already logged into our internal ticketing system and we will try to find a work around for this
·
Thursday, 27 June 2019 22:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Mark.
·
Thursday, 27 June 2019 22:50
·
0 Likes
·
0 Votes
·
0 Comments
·
You're welcome.
·
Friday, 28 June 2019 09:51
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post