Events Made Easy › Forums › Bug fixed or feature request implemented › Documentation "true" and "false" Mistakes?
- This topic has 15 replies, 2 voices, and was last updated 13 years, 11 months ago by Anonymous.
-
AuthorPosts
-
Fri 24 Dec 2010 at 14:44 #42314AnonymousInactive
At http://www.e-dynamics.be/wordpress/:
“eventful: if set to true, only locations with events planned will be shown. Default: false.”
Setting eventful=true doesn’t work, but setting eventful=1 does, so it seems that the documentation should be changed to:
“eventful: if set to 1 only locations with events planned will be shown. Default: 0.”
Or alternatively the code could be changed to support “true” and “false”.
Fri 24 Dec 2010 at 15:54 #45693FrankyKeymasterFixed in trunk so it should now support true/false (next to 1/0), please do verify.
But in fact I’m a bit unsure what the best solution is: true/false or 1/0 …
Fri 24 Dec 2010 at 18:05 #45694AnonymousInactiveAs a coder I prefer 1/0, but their meanings may not be clear to some users.
Sun 26 Dec 2010 at 15:02 #45695AnonymousInactiveI have entered 33 locations at an EME test website. I am displaying a locations map on a WordPress page by means of this shortcode:
[locations_map eventful=1 width=900 height=675]
All 33 locations are listed below the map, but markers for only the first 12 locations display on the map. A popup info-box displays with a pointer to the location if I click any of the 33 locations in the list, but map markers for 21 of the locations never display.
Sun 26 Dec 2010 at 15:18 #45696AnonymousInactiveWhile attempting to troubleshoot this limitation on my own I discovered that three map markers are obscured behind other markers and that 15 markers are actually being painted on the map. I also found this line of JavaScript code which seems to allow space for only 15 markers:
var letters = new Array(‘A’,’B’,’C’,’D’,’E’,’F’,’G’,’H’,’I’,’J’,’K’,’L’,’M’,’N’,’O’);
Is there are reason for that particular limit?
Sun 26 Dec 2010 at 15:36 #45697AnonymousInactiveI experimentally expanded the Array() declaration in eme_location_map.js as shown below, which causes markers for all 33 locations to display.
var letters = new Array(‘A’,’B’,’C’,’D’,’E’,’F’,’G’,’H’,’I’,’J’,’K’,’L’,’M’,’N’,’O’,’P’,’Q’,’R’,’S’,’T’,’U’,’V’,’W’,’X’,’Y’,’Z’,’AA’,’AB’,’AC’,’AD’,’AE’,’AF’,’AG’);
However, there will be significantly more than 33 locations in my application. Unless there is a consideration that I am not aware of it seems better to have the array automatically grow in size as needed to accommodate the actual number of locations.
Sun 26 Dec 2010 at 22:38 #45698AnonymousInactiveI have read Google Maps Javascript API V3.2 Reference documentation since posting the message above and learned that simply expanding the array size as I did above is not the correct way to display a large number of markers. Even if it was, it would not be as good to have a large number of markers identified with an alphabetic series such as X, Y, Z, AA, AB, AC, etc. as with a numeric integer count.
Sun 26 Dec 2010 at 22:45 #45699FrankyKeymasterThis discussion should be in a seperate post, but anyway: I build the images for the location markers with these letters:
var letter = letters;
customIcon = “http://www.google.com/mapfiles/marker” + letter + “.png”;
and replacing this by a number doesn’t work. These are the ones given by google:
http://sites.google.com/site/gmapicons/home/
So if I want to display more than 26 icons, this requires custom icons then.
Also: the limit is in fact from the old version, I bumped it to 26 (A-Z) for now in trunk.
Sun 26 Dec 2010 at 22:56 #45700FrankyKeymasterI just read up on some stuff, and found that using the Marker Manager might be the way to go:
http://code.google.com/apis/maps/documentation/javascript/v2/overlays.html
or to keep things simple: the same marker for every event, and then add/code the ability to add a custom marker for an event
Sun 26 Dec 2010 at 23:08 #45701AnonymousInactiveI agree this discussion should be in a separate thread. My investigation of the problem I was having with some locations not showing on the map grew out of my discovery of the previously resolved “true” and “false” issue which is why I continued with it here.
I have started a new thread: http://www.e-dynamics.be/bbpress/topic.php?id=332
Tue 28 Dec 2010 at 16:32 #45702FrankyKeymasterBtw, did you check/text if 1/0 and true/false now both work?
Tue 28 Dec 2010 at 18:06 #45703AnonymousInactiveI just checked and found that 1 and true display different sets of locations. However, I am not sure that I am using your latest code. I will download from the trunk and re-test.
Tue 28 Dec 2010 at 18:26 #45704AnonymousInactiveI just updated from the trunk and now neither:
[locations_map eventful=1 width=900 height=675]
nor:
[locations_map eventful=true width=900 height=675]
displays a map. There is nothing but white space in the rectangle where the map should be.
P.S. I will be gone the next hour or so, but will check back after that to see if you would like me to help troubleshoot.
Tue 28 Dec 2010 at 18:31 #45705FrankyKeymasterThat might be related to something else. I’ll try here (sometimes I’m just too lazy 🙂 )
Tue 28 Dec 2010 at 18:43 #45706FrankyKeymasterOk, new code in trunk: since I moved the javascript to the footer and only include it when needed, I needed to indicate for the locations_map shortcode that we need the javascript as well.
For the code: http://plugins.trac.wordpress.org/changeset/326764/events-manager-extended/trunk/eme_locations.php
Edit: tested also and it works 🙂
Tue 28 Dec 2010 at 19:50 #45707AnonymousInactiveYes, that works.
-
AuthorPosts
- The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.