Path

ez projects / ezgmaplocation / forum / general / upgrade from older gmaploca... / re: upgrade from older gmap...


Upgrade from older gmaplocation versions (v0.5 - v1.0)

You need to be logged in to post messages in the forums. New users may register here.

Vjeran Vlahovic

Member since:
09 January 2008

Posts: 6

Saturday 12 September 2009 11:14:55 pm

Hi Ɓukasz,
I just tested eZ Publish 4.2 beta and really like the idea of including important extensions (such as this) inside installation process.

Can you please provide some tips about upgrading this extension and migrating data to a new external table?

Up

Vjeran Vlahovic

Member since:
09 January 2008

Posts: 6

Tuesday 22 September 2009 5:49:36 pm

We made an upgrade scipt for ezgmapslocation from 0.5 to 1.0, I'll share it soon
Up

Yannick Komotir

Member since:
23 May 2008

Posts: 5

Tuesday 29 September 2009 6:58:17 pm

Hi, perhaps most interesting to use drag and drop on map
just replace javascript code in edit template



var map = new GMap2( document.getElementById( mapid ) );


map.addControl( new GSmallMapControl() );


map.addControl( new GMapTypeControl() );


map.setCenter( startPoint, zoom );


map.addOverlay( new GMarker( startPoint ) );


geocoder = new GClientGeocoder();


GEvent.addListener( map, "click", function( newmarker, point )


 {


 map.clearOverlays();


 map.addOverlay( new GMarker( point ) );


 map.panTo( point );


 // updateLatLngFields(point);


 document.getElementById( addressid ).value= '';


           });



by



    var map = new GMap2( document.getElementById( mapid ) );


    map.addControl( new GSmallMapControl() );


    map.addControl( new GMapTypeControl() );


    map.setCenter( startPoint, zoom );


    marker = new GMarker( startPoint,{draggable: true} )


    GEvent.addListener(marker, "dragend", function(point) {


                   updateLatLngFields(point);


                   document.getElementById( addressid ).value= '';


                   });


 

Up

Anita H

Member since:
10 December 2008

Posts: 7

Saturday 30 January 2010 7:26:39 pm

Hi Vjeran,
I just upgraded ezPublish from 4.0.1 to 4.2, yet my gmaplocation does not work anymore.
I created a CLASS using gmaplocation and don't have a clou how to update now the user CLASS using gmaplocation onto ezgmap bundled in ezPublish 4.2.

Can you help please?
Thx
Anita
Up

Vjeran Vlahovic

Member since:
09 January 2008

Posts: 6

Saturday 30 January 2010 9:48:10 pm

Hi Anita,
I just posted step-by-step instructions and simple php script we developed to migrate data between this two datatype versions, you can find it here:

http://ez.no/developer/contribs/h...aplocation_upgrade_from_v0_5_to_v1_0

I hope you will find this helpful,
Vjeran
Up

You need to be logged in to post messages in the forums. New users may register here.