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.