Active
Project:
Geo
Component:
Geo Field module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 May 2010 at 21:02 UTC
Updated:
8 Jan 2011 at 09:26 UTC
Jump to comment: Most recent file
Attached is an initial attempt at getting Openlayers support back into Geo. The first attachment (geo_openlayers.patch), adds some modifications to geo that I needed to make in order to get geo_field working without locking up. The second is a standalone module (geo_openlayers), which contains a standalone module that provides an openlayers v2 widget to geo.
This is very much a work in progress and only marginally works on my dev environment, but I wanted to get some code out today to start some discussion/collaboration on getting this done.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | geo-openlayers_v2-804878-11.patch | 748 bytes | agileware |
| #5 | geo_openlayers-0.0.1.tgz | 3.04 KB | strk |
| #1 | geo_openlayers.patch | 3.88 KB | Brandonian |
| #1 | geo_openlayers.zip | 6.43 KB | Brandonian |
Comments
Comment #1
Brandonian commentedThis time, with attachments... ;-)
Comment #2
strk commentedLooks like the patch addresses http://drupal.org/node/820000, is that correct ?
I'll test in the afternoon
Comment #3
strk commentedYeah, confirmed ! (earlier :P)
Comment #4
strk commentedThe widget module doesn't correctly update the text input.
Is there any new version for it ?
Comment #5
strk commentedgeo_openlayers_map_element_process in geo_openlayers.module is referencing the wrong #parents index.
Attached is a version of the geo_openlayers that fixes that problem (which consists in the WKT textarea not being updated while
editing).
Also, this version drops the __MACOSX dirs and CVS dirs.
Does _not_ include the patch, which I belive shoule be dealt with in http://drupal.org/node/820000.
Finally, it drops use of a global variable.
Comment #6
strk commentedJust a note: the widget module is not complete yet, fails to retain the GEOMETRYCOLLECTION() part in the WKT (looks like)
Comment #7
strk commentedok, I see the problem being with support for GEOMETRYCOLLECTION types.
The widget allows you to create collections, but the parser doesn't like them.
I think we want geo_field to allow any geometry type as long as user asks for it, from
generic (collection) to specific (including multi*).
Then the widget should check geo_field configuration and present an interface to only allow
what matches the preference.
Comment #8
kika commentedsubscribe
Comment #9
bpeter commentedsubscribing
Comment #10
nicolash commentedsubscribe
Comment #11
agileware commentedHere is an updated version of the patch in #1.
The difference is that parts related to the issue #820000: PHP Fatal error: Call to undefined method GeoSimple::sqlFieldDefinition() in geo/modules/geo_field/geo_field.module on line 59 have been removed so we are only doing things related to openlayers support.
See #820000-12: PHP Fatal error: Call to undefined method GeoSimple::sqlFieldDefinition() in geo/modules/geo_field/geo_field.module on line 59 for the patch that has the parts that were removed from the patch in #1.
The patch is against CVS HEAD.
Comment #12
imDhaval commentedlove to sub
Comment #13
mbria commentedsubscribing
Comment #14
Lemontonix commentedsubscribing