You will never win. :rofl
If popup is the idea, I prefer the way the map pops up on the topic lists vs in the topics themselves.
The map is now finding my house properly but is getting the zip code and some parts of my address wrong.
You will never win. :rofl
If popup is the idea, I prefer the way the map pops up on the topic lists vs in the topics themselves.
The map is now finding my house properly but is getting the zip code and some parts of my address wrong.
Yup this is one of the new features.
Well maybe one day the Topic system will get a makeover âŠ
⊠now back to making a living
Thanks for updating the plugin. Iâve only had a quick test after updating to the new version but didnât see any problems.
Displaying all topics on the map with Discourse Location Plugin
Hi everyone,
Iâm using the Discourse Location Plugin for my real estate website. Iâve categorized listings by district/street, and each topic is a listing for sale or rent.
I want to display all these topics on the /map
page. Iâm using the pluginâs default map. However, when I go to a topic to edit and assign a location, the âFind Addressâ field is frozen.
Iâm not sure what Iâm missing. Any help would be greatly appreciated!
Thank you! Happy Valentineâs Day!
Hey, I can provide support to businesses who sign up to one of my GOLD or PLATINUM monthly Sponsorship tiers.
There is also a one-off bug hunt option.
Robert, quick issue when running qunit tests unrelated to this plugin. It makes the tests fail.
I think writing custom_fields?.location_enabled
should be enough.
Sure, np,
Sorry Robert, actually I missed an occurrence. Should be the last:
I used this code to add the location below the topics titles on the topic list:
javascripts/discourse/connectors/topic-list-after-title/topic-list-after-title.hbr
{{#if context.topic.location}}
<br>
<span class="title-location">
{{d-icon 'map-marker-alt'}} {{location-format context.topic.location opts}}
</span>
{{/if}}
It wonât work soon, if someone has an idea how to make it compatible with the recent version
Not sure you need that anymore. Itâs added below the title now.
Iâm a bit puzzled. It works on Achats - Monocycle.info
But not on Trading Post - Unicyclist.com
Here are the modified settings on the first link
And the 2nd:
The location-related category settings are the same for both sites.
Canât figure out why the locations donât appear on unicyclist.com, tho Iâm sure I just missed something obvious.
https://unicyclist.com/c/trading-post/18?safe_mode=no_themes
It looks like a TC interferes with the plugin here.
Yeah, I had removed the standard location icon a long time ago so I could override it with my own location component (Iâm sure I had a very good reason for this ), and I forgot to revert this back after deleting my custom component.
Thanks for the help
And what is more, those locations are now clickable and will pull up the map
btw, on the topic of âmapsâ I highly recommend you (and other users of the plugin) explore the different maps available via the link in the settings:
the default one has high utility but a bit ⊠colourless.
@Canapin I just happened to browse your forum.
NB if you donât fully Geolocate your locations, you will end up with this.
Washington is showing as one big map with no pointer.
It should be more like this:
Yeah, I know but I donât feel like educating my users about it (I think most will only post once in the trading post category ) nor edit each location myself each time a new topic is created
I noticed this, the new posts dot is not properly aligned with the topicâs title on the topic list
Looking forward to your PR
If not, Iâll look at it soon.
PS for most use cases, Iâm not convinced this plugin connector is useful ⊠it really should be after the badge. Iâll look at switching it.
Fixed:
Cheers.
Trying this plugin for the first time in my local dev and noticed some issues. When I get some time Iâll see if I can work on a PR.
When editing a topic to add location, the TopicLocation
is not created, so it doesnât appear on the map. Seems due to the location
custom_field string not being parsed correctly.
When viewing a category, the locations donât appear in the topic list, because of using the âbefore categoryâ outlet (there is no category outlet when viewing a category topic list). Also location_topic_status
doesnât appear to be used anywhere.