Closed (fixed)
Project:
GMap + Geo
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Jun 2009 at 17:37 UTC
Updated:
17 Jun 2009 at 19:20 UTC
This is technically an issue for GMAP (and perhaps should be moved). However, the context for the issue lives here so that's where I'm filing the issue.
Anyway, the array structure returned by geo_wkb_get_data($wkb, 'array') is expected to be an array with numeric keys. For clarity, the array is now using the keys 'lat' and lon'. This completely breaks the simplification routine!
I am attaching a patch that may fix this issue, though I'm still seeing an abberation on polygons and linestrings.
| Comment | File | Size | Author |
|---|---|---|---|
| gmap_polyutil_latlon.patch | 558 bytes | allie micka |
Comments
Comment #1
becw commentedI also found I have to patch gmap_geo.module -- patch in progress:
But there's a lingering issue, the encoded polylines might be malformed or something? Anyway, even with these two fixes applied they're not showing up on the map. I'll poke at it some more tonight.
Comment #2
becw commentedFixed in http://drupal.org/cvs?commit=220396 except for the lingering issue I mention here: http://drupal.org/node/429654#comment-1660822
Also, I think it makes sense to patch gmap_geo to deal with the lat/lon vs. 0/1 array keys, since GMap and the Google Maps API (v2 at least) always use 0/1 for lines and polygons.