From: Edwin C. <com...@gm...> - 2011-01-05 15:18:30
|
Hi Fatzopilot, You might have figured this one out already, but for OSM you indeed need to include the following extra script: http://www.openstreetmap.org/openlayers/OpenStreetMap.js When you look at the source for http://www.openstreetmap.org/index.html you can deduce that. There are several ways to include OSM data. These are mentioned on: http://wiki.openstreetmap.org/wiki/Deploying_your_own_Slippy_Map An alternative that is not mentioned is serving the data as WMS, or find a hoster that does :) Greetings, Edwin On 2 January 2011 03:05, fatzopilot <fat...@gm...> wrote: > Hi list, > > there seems to be something wrong with my attempts to get gwt-openlayers > displaying mapnik generated tiles. > The showcase runs just fine, I slightly changed it to use a Mapnik backend > instead of the WMS backend. > I did pretty much the same as here: > http://code.google.com/p/dantwining/source/browse/trunk/gwitmap/src/com/dantwining/gwitmap/client/GwitMap.java > However, I get a "com.google.gwt.core.client.JavaScriptException: > (TypeError): $wnd.OpenLayers.Layer.OSM.Mapnik" is not a constructor" in > dev-mode. > Did I forget to include some JS somewhere or is there another problem? > > Thanks > fatzopilot > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Gwt-openlayers-users mailing list > Gwt...@li... > https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users > |