Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There appears to be a string length limit being imposed on the URL Field when adding a new GeoJSON source.
For me, a typical GeoServer WFS URL via a proxy might look something like:
http://52.64.107.144/?request=http://%20my.site.com.au:8888/geoserver/Ge...
This doesn't seem to fit in the provided text box.
Comments
Comment #2
strainyy CreditAttribution: strainyy commentedTurns out the default textfield maxlength value is 128 characters.
I've resolved this by modifying the sites/all/modules/openlayers/src/Plugins/Source/GeoJSON/GeoJSON.php
Starting from line 34 adding a "#maxlength" value...
Comment #3
m.stentaI can confirm that this is still an issue in 7.x-3.x.
256 sounds like a sane default to me.
This data is stored in a serialized array in the database, so it doesn't really have an upper limit. According to this the limit is actually closer to 2000: http://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-...
Comment #4
PolThanks!
It will be included in 3.2.