MichDe / wordpress-geo-mashup

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

custom category marker #685

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Greetings,

I just noticed since the switch to googlemaps v3 my custom category marker are 
not showing.

I am using your custom js plugin v1 and the newest geomashup.

custom.js is:

GeoMashup.addAction( 'categoryIcon', function( properties, icon, category_id ) {

        if ( 12 == category_id ) {
                icon.image = 'http://mysite.com/images/mm_20_silver.png';
                icon.iconSize = new google.maps.Size( 50, 50 );
                icon.shadow = properties.custom_url_path + '/icons/shadow.png';
                icon.shadowSize = new google.maps.Size( 51, 29 );
    icon.iconAnchor = new google.maps.Point(8, 31);
    icon.infoWindowAnchor = new google.maps.Point(8, 1);
        } 

} );

Has something changed?

Cheerz

Original issue reported on code.google.com by stevethe...@gmail.com on 19 Feb 2014 at 5:32

GoogleCodeExporter commented 9 years ago
You've got direct calls to the V2 API in that code, which of course will not 
work. Have a look at these examples of how to move to the Mapstraction API:

http://snipplr.com/view/64680/wordpress-geo-mashup-mapstraction-custom-markers/

Original comment by dylankk...@gmail.com on 19 Feb 2014 at 5:45