cyberhobo / wordpress-geo-mashup

Official repository for Geo Mashup, the plugin that makes WordPress into a GeoCMS. Documentation:
https://github.com/cyberhobo/wordpress-geo-mashup/wiki/Getting-Started
65 stars 15 forks source link

Multiple locations per post (page, etc) #224

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What versions of WordPress and Geo Mashup are you using?
WP 2.7.1 - GM 1.2.5

For problems, describe the problem and provide a URL where the problem is
happening.
Can't set more than one point per post/page

For a feature request, describe the feature.
Would be nice to be able to set more than one point per single post / page.

Overall, nice plugin. Thanks

Original issue reported on code.google.com by vancoell...@laposte.net on 5 Jun 2009 at 3:30

GoogleCodeExporter commented 9 years ago
I was just thinking about doing this for a client. 

Original comment by dylankk...@gmail.com on 5 Jun 2009 at 4:39

GoogleCodeExporter commented 9 years ago
Use case I had in mind: Use Geo Mashup as usual to include a single point for 
each
post, then create WordPress pages with a manually created kmz file to summarize 
posts
for different areas, etc.

Original comment by organ...@gmail.com on 23 Jul 2009 at 7:02

GoogleCodeExporter commented 9 years ago
In the end my client didn't go this direction, but I know it would still be 
useful.
In simple cases a post about an organization, for example, could have all the 
office
locations for the organization associated with it. The post could contain 
multiple
maps, and all the markers on the global map for that organization would link 
back to
the post. That kind of thing would expand the GeoCMS-type capabilities of Geo 
Mashup,
but it would be a big effort to implement, so I will need to find a sponsor.

Original comment by dylankk...@gmail.com on 8 Aug 2009 at 12:57

GoogleCodeExporter commented 9 years ago
This would be amazing if it were implemented!  Only drawback I see in terms of 
the
Geo-mashup app.  

Original comment by navin...@gmail.com on 18 Aug 2009 at 3:26

GoogleCodeExporter commented 9 years ago
this would be a very welcomed addition as I get this a lot and have to setup a 
page
for each locations

Original comment by jamester...@gmail.com on 22 Aug 2009 at 10:52

GoogleCodeExporter commented 9 years ago
I would love this too.  Maybe we can pool our resources together and have the
enhancement done.  Or maybe someone has a client that can pay for this.

Original comment by publicis...@gmail.com on 10 Sep 2009 at 11:19

GoogleCodeExporter commented 9 years ago
I think I could take a pretty good stab at this in about 10 hours of development
time, with your help testing. I'm not in a position to donate that time just 
yet, but
keep the ideas coming, and I'll keep pitching it to my clients.

Original comment by dylankk...@gmail.com on 15 Sep 2009 at 7:13

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I'd be more than happy to help with testing.  Thanks for all your help and for 
this
plug-in! 

Original comment by navin...@gmail.com on 21 Sep 2009 at 9:09

GoogleCodeExporter commented 9 years ago
First of all: thanks a lot for the marvellous plugin! I would appreciate 
multiple
locations per post, too. My idea was that a way to do this could be adding a geo
mashup function to the WordPress tags. That might solve two issues: First, this 
would
mean automatic geographic tagging once you enter a tag like "Berlin" or 
anything else
that is predefined and geo-referenced in the WordPress tags. Second, one would 
be
able to add several geographic tags by adding a number of ordingary tags to a 
single
post. However, I don't know how much development time this might take.

Original comment by hmaeke...@web.de on 20 Oct 2009 at 8:11

GoogleCodeExporter commented 9 years ago
Dylan;
How much time and $'s will Multiple Locations per Post take to implement. I may 
be
able to find a sponsor.

Original comment by maryd...@gmail.com on 7 Apr 2010 at 4:17

GoogleCodeExporter commented 9 years ago
I would also love this functionality!

It would be very useful if you could add individual tags or info to every 
location
you can add in a post. (Im thinking a little different from hmaeke in comment  
n10.
Id rather have you adding wordpress tags to the locations than having a certain
wordpress tag always containing the same geo information)

Say I write an article every week with 10 restaurants in my city. I would want 
to
have a map inside the article showing all the restaurants mentioned. But if I 
can add
tags like italian, budget, lunch, etc to each individual location I can then 
have
other maps on other pages to display all italian restaurants or budget 
restaurants or
korean lunch restaruants etc independent of which category or in which posts 
they
were originally published.

Original comment by kpts...@gmail.com on 11 Apr 2010 at 10:17

GoogleCodeExporter commented 9 years ago
Let me just say that this is on my mind, but I'm wary because it will break a 
few 
low-level features of the current Geo Mashup, and doing it wrong could just 
sink the 
whole ship. I'm going to want to spend some real time on it, and that might be 
hard 
to come by.

I know there are many potential benefits, but I want to be aware also that 
something 
will be lost also. The simplicity of treating a post, page, user, or comment as 
if it 
has "a location" will disappear. More logic will be necessary both when 
querying 
objects by location, and retrieving locations for an object, to handle all the 
cases 
when objects have 0, 1, or multiple locations.

Original comment by dylankk...@gmail.com on 20 Apr 2010 at 1:56

GoogleCodeExporter commented 9 years ago
My requirements for multiple locations per post are simple and I have met them 
by
using MapPress in conjunction with GeoMashup. MapPress provides an easy 
interface to
add multiple locations to a post or page. GeoMashup also allows this through its
ability to attach a KML file. However, creating the KML file and 
formatting/editing
the info-windows, etc. through Google MyMaps (as recommended by GeoMashup) is 
not as
easy as MapPress.

Original comment by maryd...@gmail.com on 2 May 2010 at 5:57

GoogleCodeExporter commented 9 years ago
I have modified Geo Mashup for my own purposes to support multiple locations 
per object (post, page, etc.).  I suspect there are a few cases that I don't 
support (as mentioned by Dylan), so more work will be needed to make it general 
purpose.  Someone mentioned that there might be a sponsor?  Feel free to 
contact me if there's interest.

Original comment by montgome...@gmail.com on 9 Jun 2010 at 7:44

GoogleCodeExporter commented 9 years ago
@scott - I'm interested in your code and any advice you may have, feel free to 
post here or send to me at cyberhobo@cyberhobo.net.

Original comment by dylankk...@gmail.com on 12 Jun 2010 at 7:33

GoogleCodeExporter commented 9 years ago
I'd love to see the code montgomerie.scott has as well. I'm working on using 
Geo Mashup as a CMS for a location-based news project, and having multiple 
locations per post is sorely needed. I'm happy to donate a a bit to see it 
happen, as a few other people have said (the project is on a voluntary basis 
for a non-profit, otherwise I'd offer to udnerwrite the whoel thing ^_^). 

Original comment by Nick.Eve...@gmail.com on 10 Sep 2010 at 2:26

GoogleCodeExporter commented 9 years ago
@Nick - Yeah haven't worked on it in a while... I can post code or help you 
implement it.  I'm seriously busy with other work, but I'll see if I can put in 
some time to clean it up.

Original comment by montgome...@gmail.com on 10 Sep 2010 at 3:41

GoogleCodeExporter commented 9 years ago
Posting the code would be a great start, if you could. That way anyone else 
here with a bit of time can have a crack at working on it. Much appreciated!

Original comment by Nick.Eve...@gmail.com on 10 Sep 2010 at 4:54

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Sorry for taking so long to post this - here are the files (the complete tgz 
plugin, as well as a diff against version 1.2.8.1 of geo-mashup).

This code is definitely not complete, as I was working on this as part of a 
travel blog I wrote while overseas.  Consequently it's pretty much done to the 
standard I needed, with not a lot of thought for extendability put in, and it's 
definitely not my best work. Couple that with not being a PHP guy.

It's been a long time since I looked at this, but essentially I think I added a 
column to the wp_geo_mashup_location_relationships table named "sequence_id", 
which essentially got over the primary key restraint on the table.  The 
sequence_id provided the ID of the location for that object (i.e. post or 
page), so you can have multiple locations per page.

The UI, as I said, isn't finished, but there is UI support for adding and 
deleting locations. The map will draw lines of the locations in order. 

Hopefully this is useful for somebody - if you use it I'd love to know!

Original comment by montgome...@gmail.com on 2 Oct 2010 at 6:31

Attachments:

GoogleCodeExporter commented 9 years ago
this would be a great addition!

Original comment by islandso...@gmail.com on 13 Nov 2010 at 9:58

GoogleCodeExporter commented 9 years ago
This is a feature that would be very useful to me as well.  I'm willing to code 
it myself, but I may also consider being a sponsor for you writing the change 
(I'll email separately to discuss that).

Either way, here are some thoughts on implementation I came up with while 
debating if I should give a shot at coding this myself....in case it is useful 
to me or anyone else.

    * Ordered list of locations
          o Optionally connected by a line
          o Each location has a ID #
                + ID# is unique only to the page/post in which it is used
                + This could be a sequence number [0..n], but it might be useful to allow the user to choose the value?
    * Two types of locations:
          o Types:
                + Post/Page Location
                      # Only one per post or page
                      # Normally displayed on overview maps
                + Detail Location
                      # Multiple of these for each post or page
                      # Normally displayed only for that specific post/page
          o Type of location displayed on a map would be selectable when the map is inserted into a post/page
          o The "Post/Page Location" could possibly be set from the "Detail Location" through a configuration option which sets its value from one of:
                + First Location in post
                + Last Location in post
                + Selected Location in post (only available in post/page edit, user selects which of the list if the post location).
    * Entry Methods:
          o GUI: In the post/page form, use an "Add" button to add the location to the list
          o Shortcode:  Allow multiple instances of [geo_mashup_save_location]
                + Allow user to set the location ID#, so that the location can be referenced elsewhere?
                + If entry as shortcode, provide an HTML link so that this place within a post can be jumped to by clicking on the map marker
    * (enhancement) New Shortcode:
          o [geo_mashup_show_location id="location_id" format="see below"]
                + LAT_LON => Latitude/Longitude
                + NAME => Place Name
    * (enhancement) New "Table/Map" view of locations:
          o Table of locations including columns for LAT/LON, NAME, DATE
                + NAME should allow inclusion of HTML hyperlinks
                + DATE should be an optional column
                + LAT/LON could be a hyperlink which highlights a marker on the map

Original comment by da...@othalan.net on 13 Mar 2011 at 3:19

GoogleCodeExporter commented 9 years ago
GREATEST PLUGIN - would love for this to be added to the ui as the kml 
attachment option using MyMaps is not working in the newest WP with latest geom 
(kml tested ok using the kml test site)

Original comment by Maurice....@gmail.com on 6 Jun 2011 at 6:17

GoogleCodeExporter commented 9 years ago
With the release of 1.4 I've created a subversion branch for work on multiple 
locations:

http://wordpress-geo-mashup.googlecode.com/svn/branches/multilocation

Let me know if you'd like to work on that code!

Original comment by dylankk...@gmail.com on 15 Jul 2011 at 2:11

GoogleCodeExporter commented 9 years ago
If I can find time I will definitely work on the code.  Not certain if/when 
that will happen however as my current travel schedule has less time available 
for programming projects than I thought it would....

Thanks for setting up the branch!

Original comment by da...@othalan.net on 15 Jul 2011 at 10:26

GoogleCodeExporter commented 9 years ago
Guys did you find a solution for this issue?
If not, can we gather and donate an amount to anyone that
has the skills to do it?

Original comment by tdionis...@gmail.com on 11 Jan 2012 at 1:23

GoogleCodeExporter commented 9 years ago
The project I required this for ended, however I was able to produce a suitable 
solution in development using WP Plugin "MapPress Easy Google Maps"

Original comment by BrendanS...@gmail.com on 11 Jan 2012 at 7:43

GoogleCodeExporter commented 9 years ago
So you recommend another plugin as a solution?

Original comment by tdionis...@gmail.com on 12 Jan 2012 at 3:15

GoogleCodeExporter commented 9 years ago
Hi folks,

Just wanted to chime in that this is a feature request I'd support.

Any word on whether or not the maintainers (or anyone else) have made any 
progress on this?

Thanks!

Original comment by moor...@gmail.com on 26 Jun 2012 at 3:41

GoogleCodeExporter commented 9 years ago
It's still on the table, any updates will be posted here. I'll probably need 
some development assistance to pull it off.

Original comment by dylankk...@gmail.com on 27 Aug 2012 at 10:48

GoogleCodeExporter commented 9 years ago
Hi Dylan

Just checking if you guys have made any progress on this?

Original comment by hand...@gmail.com on 18 Mar 2013 at 2:48

GoogleCodeExporter commented 9 years ago
It's still on the table, any updates will be posted here. I'll probably need 
some development assistance to pull it off.

Original comment by dylankk...@gmail.com on 18 Mar 2013 at 3:11

GoogleCodeExporter commented 9 years ago
Any news since the last posting on multiple places?

Original comment by linder...@gmail.com on 2 Jul 2014 at 10:55

vlood commented 3 years ago

@cyberhobo , any chance that you are still accepting help for finishing this feature request? Is there a public branch where I could look for the current state or another discussion that might bring more light to the issues that need to be addressed in order for this to become reality?

I've started using your plugin for a project of mine and would gladly give you a hand in finishing this if it's in my capability and knowledge as a developer.

cyberhobo commented 3 years ago

Hi @vlood. As far as I know all the work that has been done on this was pre-github and so there isn't a branch and the old google code attachments are no longer accessible. So you'd need to start a new branch. The standard fork-and-PR model is probably simplest. I haven't implemented many new features in recent years and this plugin's first release was in 2005, so be warned that we're working with a bit of an artifact here - said with love!