Skip to content

Instantly share code, notes, and snippets.

@cspanring
Created May 25, 2011 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cspanring/992028 to your computer and use it in GitHub Desktop.
Save cspanring/992028 to your computer and use it in GitHub Desktop.
OpenLayers build config for mobile
[first]
[last]
[include]
OpenLayers/Map.js
OpenLayers/Kinetic.js
OpenLayers/Projection.js
OpenLayers/Layer/SphericalMercator.js
OpenLayers/Layer/XYZ.js
OpenLayers/Control/TouchNavigation.js
OpenLayers/Control/ZoomPanel.js
OpenLayers/Control/Attribution.js
[exclude]
[first]
[last]
[include]
OpenLayers/Map.js
OpenLayers/Kinetic.js
OpenLayers/Projection.js
OpenLayers/Layer/SphericalMercator.js
OpenLayers/Layer/XYZ.js
OpenLayers/Layer/Google.js
OpenLayers/Layer/Google/v3.js
OpenLayers/Layer/WMS.js
OpenLayers/Layer/TMS.js
OpenLayers/Layer/Markers.js
OpenLayers/Control/TouchNavigation.js
OpenLayers/Control/Geolocate.js
OpenLayers/Control/ZoomPanel.js
OpenLayers/Control/Attribution.js
OpenLayers/Control/SelectFeature.js
OpenLayers/Control/DrawFeature.js
OpenLayers/Control/ModifyFeature.js
OpenLayers/Control/Panel.js
OpenLayers/Control/LayerSwitcher.js
OpenLayers/Control/PanZoom.js
OpenLayers/Control/Navigation.js
OpenLayers/Control/ScaleLine.js
OpenLayers/Control/Attribution.js
OpenLayers/Control/Permalink.js
OpenLayers/Control/MousePosition.js
OpenLayers/Control/PinchZoom.js
OpenLayers/Handler/Point.js
OpenLayers/Handler/Path.js
OpenLayers/Handler/Polygon.js
OpenLayers/Layer/Vector.js
OpenLayers/Renderer/SVG.js
OpenLayers/Renderer/Canvas.js
OpenLayers/Protocol/HTTP.js
OpenLayers/Popup.js
OpenLayers/Popup/FramedCloud.js
OpenLayers/Marker.js
OpenLayers/Util.js
[exclude]
@cspanring
Copy link
Author

ups, not 37KB, 97KB gzipped ol build.

@bajsek
Copy link

bajsek commented Sep 25, 2011

Is it possible to add google overlay on openlayers mobile? I have try to build upper example of cfg file, but it's not working!

@cspanring
Copy link
Author

yes, you can add a google layer to your map with the above build config, in includes support for google layers:

OpenLayers/Layer/Google.js
OpenLayers/Layer/Google/v3.js

did you load the google maps javascript library?

@bajsek
Copy link

bajsek commented Sep 26, 2011

Yes i have add

//script src='http://maps.google.com/maps?file=api&v=2&sensor=false&key=' type="text/javascript"// with right tags

and after this and referencing new Openlayers.js and excluding openlayers.mobile.js nothing working. Any solutions? Version problems? v3?

will try this http://openlayers.org/dev/examples/google-v3.html :-))

@bajsek
Copy link

bajsek commented Sep 27, 2011

I have run google v3 in this demo http://dl.dropbox.com/u/12048485/SRKVZMobile%20-%20Copy.htm but when i use openlayers.mobile.js then zero points :-(((((

I have build .js from cfg file, and when I replace new openlayers.js and exclud openlayers.mobile.js nothing working (without adding google layers!!). http://dl.dropbox.com/u/12048485/SRKVZMobile.htm Can you send your custom .js file with one I replace openlayer.mobile.js? Tnx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment