MichDe / wordpress-geo-mashup

Automatically exported from code.google.com/p/wordpress-geo-mashup
1 stars 0 forks source link

Redesigned default color marker icons #654

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What versions of WordPress and Geo Mashup are you using?
WP: 3.5.2
GM: 1.6.1

Feature request: bigger and better designed marker icons. On the satellite 
view, the white marker is nearly impossible to see. 

Original issue reported on code.google.com by jamesbondsv on 27 Jun 2013 at 4:38

GoogleCodeExporter commented 9 years ago
I'd be very open to contributions - if you or someone else can submit a better 
set of icons with the same color set, please do!

Original comment by dylankk...@gmail.com on 27 Jun 2013 at 4:54

GoogleCodeExporter commented 9 years ago
Took a stab at it myself as of revision 52f8fce923a5

Original comment by dylankk...@gmail.com on 29 Dec 2013 at 2:06

GoogleCodeExporter commented 9 years ago
Hi there,

really appreciate the always ongoing further development and enhancements :-)

As for this one, it would be great to have an option to switch back to the 
previous icons/ markers (without editing the source code), especially if like 
with this is will break some designs due to the different sizes of the icons.

In case you consider doing so, I am happy to contribute the required code for 
an option/ switch...just let me know!

Thanks for consideration

Original comment by thorsten...@gmail.com on 15 Sep 2014 at 6:03

GoogleCodeExporter commented 9 years ago
It shouldn't be too hard to write custom.js to do it - I would gladly share 
that if you can get it going.

Original comment by dylankk...@gmail.com on 15 Sep 2014 at 7:36

GoogleCodeExporter commented 9 years ago
Hi, maybe I am missing a point, but doing this via custom.js requires replacing 
quite some (fundamental) functions, like:

GeoMashup.createMap
GeoMashup.addGlowMarker
GeoMashup.colorIcon
GeoMashup.makeMarkerMultiple

Wouldn't it be an option to have a (WordPress-like) filter that 
defines/modifies the marker base name...that would even enable using 
alternative icon sets?

Original comment by thorsten...@gmail.com on 24 Sep 2014 at 7:53

GoogleCodeExporter commented 9 years ago
Is the API method (like 
http://snipplr.com/view/64680/wordpress-geo-mashup-mapstraction-custom-markers/)
 not effective?

Original comment by dylankk...@gmail.com on 25 Sep 2014 at 12:40

GoogleCodeExporter commented 9 years ago
Thanks for pointing me that way! I am not sure how I missed that using the API 
for some other modifications ;-)

Original comment by thorsten...@gmail.com on 25 Sep 2014 at 8:03

GoogleCodeExporter commented 9 years ago
Actually one icon missing in your example is the "glow marker" - in case you 
want to add, see code I use below:

GeoMashup.addAction( 'glowMarkerIcon', function( properties, glow_options ) {
    glow_options.icon = properties.custom_url_path + '/images/mm_20_glow.png';
    glow_options.iconSize = [ 22, 30 ];
    glow_options.iconAnchor = [ 11, 27 ];
} );

Original comment by thorsten...@gmail.com on 26 Sep 2014 at 9:52

GoogleCodeExporter commented 9 years ago
Thanks, I added that to the example snippet!

Original comment by dylankk...@gmail.com on 29 Sep 2014 at 11:52