Changes between Initial Version and Version 1 of Ticket #416


Ignore:
Timestamp:
02/01/12 08:27:22 (13 years ago)
Author:
adube
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #416

    • Property Summary API - add 'getCenter' and 'setCenter' methodsAPI, ZoomTo - add 'getCenter' and 'setCenter' methods
  • Ticket #416 – Description

    initial v1  
    1 Add the following methods in the API widget :
     1'''The Need'''
    22
    3  * setCenter : set the map center
    4  * getCenter : return the map center informations as a hash object
     3We need to be able to get and set the center of the map from external libraries.  We also need to be able to add a marker on the center of the map and have the possibility to set and get its position from externals libraries as well.
     4
     5=== Technical details ===
     6
     7'''What we currently have'''
     8
     9 * an API widget used as a point of entry for external libraries to communicate with !GeoPrisma.
     10 * a GeoExtUX_ZoomTo widget that allows input of x y coordinates and projection to set the center of the map.  It also supports adding the marker
     11
     12'''To do'''
     13
     14 * API widgets :
     15  * new 'setcenter' event: fired by a new 'setCenter' API method, with an object as argument containing the center information (x, y, zoom, etc.)
     16  * new 'getCenter' method method that simply returns the same object the setCenter method would receive with infos about the current map extent
     17  * new 'centerchanged' event automatically fired on map 'moveend' event, which uses the 'getCenter' event to send the center infos
     18  * new 'centermarkermodified' event
     19  * new 'setmarkercenter' event
     20
     21 * !ZoomTo :
     22  * add a !ModifyFeature control to allow dragging the marker around.  The layer should listen to the 'featuremodified' event to fire the API 'centermarkermodified' event
     23  * update the x and y coordinates of the popup when changed that way