Title: (Fix) Use REM default Map Type
Last modified: April 17, 2019

---

# (Fix) Use REM default Map Type

 *  Resolved [crystalfyre](https://wordpress.org/support/users/crystalfyre/)
 * (@crystalfyre)
 * [7 years ago](https://wordpress.org/support/topic/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…

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [rameez_iqbal](https://wordpress.org/support/users/rameez_iqbal/)
 * (@rameez_iqbal)
 * [7 years ago](https://wordpress.org/support/topic/fix-use-rem-default-map-type/#post-11436775)
 * Thanks for that. I will fix these and will update soon.
 * Regards
 *  Plugin Author [rameez_iqbal](https://wordpress.org/support/users/rameez_iqbal/)
 * (@rameez_iqbal)
 * [7 years ago](https://wordpress.org/support/topic/fix-use-rem-default-map-type/#post-11442148)
 * It’s added in v2.2

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘(Fix) Use REM default Map Type’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/map-filters-real-estate-manager-extension_9fb0a9.
   svg)
 * [Google Map Filters for Real Estate Manager](https://wordpress.org/plugins/map-filters-real-estate-manager-extension/)
 * [Support Threads](https://wordpress.org/support/plugin/map-filters-real-estate-manager-extension/)
 * [Active Topics](https://wordpress.org/support/plugin/map-filters-real-estate-manager-extension/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/map-filters-real-estate-manager-extension/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/map-filters-real-estate-manager-extension/reviews/)

## Tags

 * [map](https://wordpress.org/support/topic-tag/map/)

 * 2 replies
 * 2 participants
 * Last reply from: [rameez_iqbal](https://wordpress.org/support/users/rameez_iqbal/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/fix-use-rem-default-map-type/#post-11442148)
 * Status: resolved