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
63 stars 15 forks source link

No custom javascript reference #292

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Documentation is lacking for the custom javascript interface in 1.3beta1,
and there is no longer a sample included with the plugin. For now, see the
attached sample.

Original issue reported on code.google.com by dylankk...@gmail.com on 10 Jan 2010 at 7:39

Attachments:

GoogleCodeExporter commented 9 years ago
Hmm... I just can't seem to get this to work. I installed the custom plugin, 
placed this file in the custom plugin 
directory, changed the name to custom.js, and enabled a number of the items 
just to see if it works... nothing.

Site here: http://www.uncommoncaribbean.com

Geo Mashup Version 1.2.10 + WP 2.9.2

Original comment by pbm...@gmail.com on 19 Feb 2010 at 2:05

GoogleCodeExporter commented 9 years ago
The custom sample here is for GeoMashup 1.3, which I'm in the process of 
releasing
now. Copy geo-mashup/custom-sample.js to geo-mashup-custom/custom.js for your 
version.

Original comment by dylankk...@gmail.com on 19 Feb 2010 at 2:29

GoogleCodeExporter commented 9 years ago
I also want to add my own custom icon(a soccer ball) for a specific category in 
Geo 
Mashup 1.3, but I am not sure which changes to make. This custom.js file, 
should it be 
placed in the root directory of the geo mashup plugin folder and Geo Mashup 
will pick 
up that it's supposed to make custom changes for my icon or am I supposed to 
add some 
of the custom.js's file content to an existing .js file and if so which one?

Original comment by fvanstrat@gmail.com on 1 Mar 2010 at 10:51

GoogleCodeExporter commented 9 years ago
Follow this documentation for creating your custom.js:
http://code.google.com/p/wordpress-geo-mashup/wiki/Documentation#Custom_JavaScri
pt

Original comment by dylankk...@gmail.com on 1 Mar 2010 at 1:50

GoogleCodeExporter commented 9 years ago
After activating the custom plugin the "geo-mashup-custom.php" file shows as 
active, 
but the custom.js file still remains as inactive. Now I'm really bombed out 
because I 
tested it on a local installation of Wordpress and all was fine so I FTP'd the 
exact 
same folder from local to remote, but the remote version is however giving me 
this 
problem.

Any ideas? Did I overlook something?

Original comment by fvanstrat@gmail.com on 1 Mar 2010 at 9:31

GoogleCodeExporter commented 9 years ago
@fvansrat: If you're talking about the WP plugin editor, it only gives the 
"active"
status to the main plugin file. You should be able to verify this on your 
working
setup. All I can say is, make sure the two installations are identical.

Original comment by dylankk...@gmail.com on 3 Mar 2010 at 1:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
There was an error in the sample for customizing the icon used for markers at
locations with multiple items. That should be fixed in this one.

Original comment by dylankk...@gmail.com on 4 Mar 2010 at 8:47

Attachments:

GoogleCodeExporter commented 9 years ago
There is a sample to how to change the marker color on-the-fly? 
I mean, the marker is loaded and after some time I'd like to change color.  It's
possible? 

I am confused about how can I identify a specific marker on a global map (each 
marker
 is a user profile). What are theirs properties?

Original comment by guiteca...@gmail.com on 17 Mar 2010 at 12:42

GoogleCodeExporter commented 9 years ago
@guitecarla: I don't know of a sample, but I imagine it would involve setting 
the
marker initially as in the sample, then using a timeout or an event listener to 
call
the marker's setImage method when you want to change it.

Original comment by dylankk...@gmail.com on 17 Mar 2010 at 4:26

GoogleCodeExporter commented 9 years ago
Consider an example related to issue 426 in future updates.

Original comment by dylankk...@gmail.com on 9 Feb 2011 at 3:02

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r974.

Documentation is posted here:

http://code.cyberhobo.net/jsdoc/geo-mashup-1.4/symbols/GeoMashup.html

Some updates to the google code documentation is still needed, but at 
last we have a fairly comprehensive reference for the javascript API.

Original comment by dylankk...@gmail.com on 18 Aug 2011 at 1:18

GoogleCodeExporter commented 9 years ago

Original comment by dylankk...@gmail.com on 18 Dec 2011 at 11:15