Support » Plugin: Geo Mashup » Zoom level/center of map in the post editor

  • is it possible (if so how?) to change the zoom level and default center point of a map for defining long/lat via the map interface in the post editor?

    at the moment when i create a new post, or edit an existing one the default zoom level is right out and shows the WHOLE of planet earth. we then have to click to zoom in many many times (or use the search box). ideally we’d like to specify our city and a zoom level for the default “editor” map to speed up ‘placing pins’. any suggestions?
    thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • any suggestions on this please?

    westantenna

    (@westantenna)

    You can set the zoom level and default center point in the post editor to rewriting the following files on line 419 for ver.1.10.4.
    plugins/geo-mashup/js/location-editor.js

    If you want to display tokyo at zoom level 12, rewrite it like this.

    map.setCenterAndZoom( new mxn.LatLonPoint( 0, 0 ), 2 );

    map.setCenterAndZoom( new mxn.LatLonPoint( 35.6980, 139.4130 ), 12 );

    In this way, it may be rewritten when upgrading the plugin.
    Please let me know if you know better ways.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Zoom level/center of map in the post editor’ is closed to new replies.