(Fix) Use REM default Map Type
-
Hello there!
I’ve been playing around with this plugin add-on for Real Estate Manager, and somehow the maps are now defaulting to showing Satellite view as the default map terrain in the current version of Map Filters (version 2.1 ).
I’ve made a fix for myself, and for you guys if you feel like adding it to the codebase yourself.
\map-filters-real-estate-manager-extension\js\map.js just below line 8, add:
mapTypeId: rem_maps_data.map_type, // Use the REM map type in the options
\map-filters-real-estate-manager-extension\plugin.class.php below line 95 (in render_map function at end of $attrs extraction), add:
'map_type' => rem_get_option( 'maps_type', 'roadmap'),
Then right below in the array
$script_settings
, at the end add:
'map_type' => $map_type,
and lastly, in…
\map-filters-real-estate-manager-extension\js\clusters.js on line 489, change it to:
options.mapOptions.mapTypeId = rem_maps_data.map_type; // Use the REM map type in the options
To be fair, it seems editing the ‘map.js’ seems futile, but it was set up like that in the full Real Estate Manager plugin in the ‘single-property.js’, so I figured I’d keep it formatted the same…
- The topic ‘(Fix) Use REM default Map Type’ is closed to new replies.