markers for posts in multiple categories
-
what is the current workflow for posts in multiple categories? The markers do not show if a post is in multiple categories.
I read here: https://github.com/cyberhobo/wordpress-geo-mashup/issues/296
and here: https://github.com/cyberhobo/wordpress-geo-mashup/issues/662
but I’m not sure about the solution suggested. I’m using custom-googlev3.js (after a lot of trial error this is the only filename that makes the icons work) and my custom icons are listed under plugins/geo-mashup-custom/images folder.
EVerything works fine if there are no multiple categories but I’m not sure how I would list the categoryid<->icon matches as suggested in below code and if the geo-mashup.js file is the one under plugins/geo-mashup/js/:
In the geo-mashup.js
[code]
for ( i=0; i<loc.objects.length; i+=1 ) {....
[/codeAnd in the custom.js add the following
[code]
GeoMashup.addAction( 'updateMarkerIcon', function(marker, categories ,
category_id){
marker['marker']['proprietary_marker']['icon']['url'] = categories[category_id]['icon']['image'];
}
[/code]
- The topic ‘markers for posts in multiple categories’ is closed to new replies.