[mapguide-users] Web Map with modern JavaScript

2016-02-11 Thread swimming123
I have a very simple web map created using GeoExt3(using Sencha ExtJS and
OpenLayers3): https://github.com/swimhiking/GeoExtApp.  You can download
unzip and put testing folder(inside build folder) into your wwwroot folder
of windows system, then view web at http://localhost/testing/  ; try and
feel modern js in web map.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Web-Map-with-modern-JavaScript-tp5250113.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] GDAL provider for raster imagery in MapGuide2.6.1

2016-02-11 Thread swimming123
Anyone has similar issue with me when using GDAL provider to display raster
imagery on the web map, it doesn't display, neither give any error
information; I can view the imagery layer, but not in map or layout. Thanks
for any help.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/GDAL-provider-for-raster-imagery-in-MapGuide2-6-1-tp5250116.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] MapGuide Rest Permission Deny

2016-02-05 Thread swimming123
Hi All,

I just started to play with MapGuide Rest and I got permission denied error,
how to fix this:

PHP Warning:  fopen(C:\Program
Files\OSGeo\MapGuide\Web\www\rest\app/../cache/debug.log): failed to open
stream: Permission denied in C:\Program
Files\OSGeo\MapGuide\Web\www\rest\app\log_config.php on line 23
PHP Warning:  Wrong parameter count for
invalidargumentexception::invalidargumentexception() in C:\Program
Files\OSGeo\MapGuide\Web\www\rest\vendor\slim\slim\Slim\LogWriter.php on
line 60
PHP Fatal error:  Uncaught exception 'invalidargumentexception' in
C:\Program
Files\OSGeo\MapGuide\Web\www\rest\vendor\slim\slim\Slim\LogWriter.php:60
Stack trace:
#0 C:\Program Files\OSGeo\MapGuide\Web\www\rest\app\log_config.php(23):
Slim\LogWriter->__construct(false)
#1 C:\Program Files\OSGeo\MapGuide\Web\www\rest\app\log_config.php(30):
LogWriter->__construct('C:\\Program File...')
#2 C:\Program Files\OSGeo\MapGuide\Web\www\rest\index.php(64):
require_once('C:\\Program File...')
#3 {main}
  thrown in C:\Program
Files\OSGeo\MapGuide\Web\www\rest\vendor\slim\slim\Slim\LogWriter.php on
line 60

Thank you very much.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MapGuide-Rest-Permission-Deny-tp5249179.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] MapGuide Rest Permission Deny

2016-02-05 Thread swimming123
Fixed, it's user permission setting.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MapGuide-Rest-Permission-Deny-tp5249179p5249186.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Mapguide & Openlayers 3.12.1 Displaydpi for mobile/tablet devices

2016-02-02 Thread swimming123
Thanks Jackie, very helpful information



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapguide-Openlayers-3-12-1-Displaydpi-for-mobile-tablet-devices-tp5247003p5248512.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Mapguide & Openlayers 3.12.1 Displaydpi for mobile/tablet devices

2016-02-02 Thread swimming123
I will post my code once I can create a MapGuide Map with ol3, sencha to
Github in the near future. I found ol3 has ol.control.* class to interaction
with map, ol2 rely on DOM. Still feel lots to learn and practice.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapguide-Openlayers-3-12-1-Displaydpi-for-mobile-tablet-devices-tp5247003p5248526.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Mapguide & Openlayers 3.12.1 Displaydpi for mobile/tablet devices

2016-02-01 Thread swimming123
I feel it's big challenging for MapGuide switch from OpenLayer2 to
OpenLayers3. Let's look at the API documnets: 
In OpenLayers2, OpenLayers.Layer.MapGuide constructor can accept params
including mapDefinition, locale, mapName, session, basemaplayergroupname,
format, showLayers, hideLayers, showGroups, hideGroups and selectionXml. So
you can pass these parameters and manipulate your MapGuide instance; seeAPI
doc:
http://dev.openlayers.org/apidocs/files/OpenLayers/Layer/MapGuide-js.html.

However OpenLayers 3 design and re-write from scratch, MapGuide instance is
ol.source.ImageMapGuide,  it extend from ol.source.Image(version2 from
OpenLayers.Layer), it accept a params object including ol.Extent, ol.Size, 
metersPerUnit, dpi ; see api doc:
http://openlayers.org/en/v3.0.0/apidoc/ol.source.ImageMapGuide.html.  I read
the source code, I think probably to use this
ol.source.ImageMapGuide.prototype.updateParams or try  using ol._params_ to
pass parameters. Myself haven't try yet, will try once I feel more familiar
with OpenLayers 3.

So OpenLayers3 is not even similar with OpenLayer2,  as MapGuide
users/developers, there are a huge step need to take forward because
OpenLayers 2.X will not going to develop further after Year2013 due to it
aging of JavaScript. Move to OpenLayers3.X basically also need re-design and
re-write from scratch.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapguide-Openlayers-3-12-1-Displaydpi-for-mobile-tablet-devices-tp5247003p5248388.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Fusion with OpenLayers 3

2016-01-19 Thread swimming123
Good things to use GeoExt3(Sencha) so far as I know: JS MVC and SPA(single
page application) structure, so it's good for mobile, also one step away to
convert as native App; Second, if you view source from Sencha project, it's
very clean(see below is my above map); All js is similar like built and
compiled; Last thing I believe Sencha is a much bigger community than
dojo(AMD), I like lots of stuff about Sencha for example one class one file,
class name convention. 

About one month ago, we also created one map with ArcMap Server10.3(we only
have develop license), created several functions such as cluster, dynamic
legend exactly same with ArcMap Desktop, display corrdinate values in 10TM,
UTM11,10,12,14 at same time,  zoom to location by dominion land system etc,
we all follow AMD(load library, create customized function). But
comparatively I do like Sencha very much.

Here is my above GeoExt3 simple Map web page view source result:








MyGeoExtApp
http://openlayers.org/en/master/css/ol.css;>
















--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Fusion-with-OpenLayers-3-tp5245017p5246185.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Fusion with OpenLayers 3

2016-01-19 Thread swimming123
Pretty good start to use ol3, GeoExt3 and MapGuide server engine to create a
map with 244 layers in 10TM.
 



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Fusion-with-OpenLayers-3-tp5245017p5246133.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Fusion with OpenLayers 3

2016-01-14 Thread swimming123
Thanks Gorden to spend  several days with us. We are going to re-develop Web
Map using only MapGuide server with Sencha, ol3. For serious app development
and performance reasons, I won't choose jQuery; Kendo UI need to pay.
Sencha, GeoExt3 will be our choice.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Fusion-with-OpenLayers-3-tp5245017p5245435.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Fusion layers/legend: activate folder includes subfolder

2015-10-09 Thread swimming123
good question. we implement a customized tool which is toogle on/off a
folder(right click, turn all layers in sub folder on/off), the thing is
MapGuide javascript need to re-organized its structure and remove all global
name spaces. Here is a simple js code added to your single js file can make
it work, in this render function of this class
Fusion.Widget.Legend.TreeFolder add following:

var self = this;
if (self.options.image == null) {
var toggle_on = new Jx.Menu.Item({
label: 'Toggle all on',
onClick: function () {
var current_scale = self.options.data.oMap.getScale();

for (var i = 0; i < self.options.data.layers.length;
++i) {
var layer = self.options.data.layers[i];

if (layer.maxScale > current_scale && layer.minScale
< current_scale) {
layer.show();
}
}

for (var i = 0; i < self.options.data.groups.length;
++i) {
var sub_group = self.options.data.groups[i];

for (var j = 0; j < sub_group.layers.length; ++j) {
var layer = sub_group.layers[j];
if (layer.maxScale > current_scale &&
layer.minScale < current_scale) {
layer.show();
}
}

sub_group.show();
}

self.options.data.show();
//map.zoomIn();
}
});
var toggle_off = new Jx.Menu.Item({
label: 'Toggle all off',
onClick: function () {
var current_scale = self.options.data.oMap.getScale();

for (var i = 0; i < self.options.data.layers.length;
++i) {
var layer = self.options.data.layers[i];

if (layer.maxScale > current_scale && layer.minScale
< current_scale) {
layer.hide();
}
}

for (var i = 0; i < self.options.data.groups.length;
++i) {
var sub_group = self.options.data.groups[i];

for (var j = 0; j < sub_group.layers.length; ++j) {
var layer = sub_group.layers[j];
if (layer.maxScale > current_scale &&
layer.minScale < current_scale) {
layer.hide();
}
}

sub_group.hide();
}

self.options.data.hide();
}
});

menu.add(toggle_on);
menu.add(toggle_off);





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Fusion-layers-legend-activate-folder-includes-subfolder-tp5228979p5229044.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] [2.5.2]Error message DbEnv::txn_begin: DB_RUNRECOVERY: Fatal error

2015-10-08 Thread swimming123
It happens to me too. I didn't use mgcooker, but my new launched AIMS Server
is down very often, check the log file, it has this error information, but
since I ahve many maps, each map has many layers including lots of base
layers need to be tiled.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/2-5-2-Error-message-DbEnv-txn-begin-DB-RUNRECOVERY-Fatal-error-tp5164662p5228816.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] MapGuideMaestro-Release-6.0m4-Setup has issue when using IronPython

2015-09-28 Thread swimming123
Recently I installed MapGuideMaestro-Release-6.0m4-Setup.exe, everthing is
good until one day I try to use IronPython, here is the screenshot:

 

If you use other version of Maestro, there's no issues.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MapGuideMaestro-Release-6-0m4-Setup-has-issue-when-using-IronPython-tp5226631.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] MapGuide suggestion

2015-08-25 Thread swimming123
Web GIS creation using MapGuide has some advantage over ArcGIS Server: 1)
choose customized coordinate systems while embedded a satellite imagery base
map, 2) load over 200 layers while still keep website efficient; But
MapGuide also need to improve its JavaScript code, I believe it doesn't cost
lots of effort: using modular to load all the js libraries, the benefits:
prevent serious memory leaking, remove all global namespaces.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MapGuide-suggestion-tp5221057.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] Proj4js

2015-01-09 Thread swimming123
I just need a conversion between EPSG:4269 and Google Web Mercator in client
side, then I copy a proj4js-combined.js from this folder:
C:\Program Files\Autodesk\Autodesk Infrastructure Web Server Extension
2013\www\fusion\lib\Proj4js  
Open the proj4 javascript file and find it defines EPSG:3875 as Google
Mercator; I think it must be wrong, Google Web Mercator suppose EPSG: 3857;

Of course, I use EPSG:900913 to do the calculation to avoid this issue. For
curiosity, I did  test using EPSG:3857 or EPSG:3875, both not working.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Proj4js-tp5180883.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


Re: [mapguide-users] How to publish WMS services through MapGuide

2015-01-06 Thread swimming123
Yes, I use exactly the same URL, I tested both localhost and gistest2013
server name. Thanks for the information of Gaia.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/How-to-publish-WMS-services-through-MapGuide-tp5180103p5180251.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[mapguide-users] How to publish WMS services through MapGuide

2015-01-05 Thread swimming123
I try to publish my own WMS services using AIMS2013 or MapGuide Open Source
follow this instruction:
http://beingcivil.typepad.com/my_weblog/2012/07/creating-a-wms-service-in-aims-2013.html.
Then I try to test it locally using just a URL like this:

http://localhost/mapguide/mapagent/mapagent.fcgi?REQUEST=GetMapVERSION=1.1.1SRS=EPSG:3401BBOX=-17947.118222967,5973796.69083132,-12306.204602391,5977818.35532628FORMAT=image/jpegWIDTH=600HEIGHT=600

I expect to get a map image. But it always ask me to enter credentials. I
try use various usernames and passwords: windows authentication credentials,
MapGuide users, MapGuide Built-in account for WMS users, all failed, see
image : 
http://osgeo-org.1560.x6.nabble.com/file/n5180103/wms_creation.png . 

Anyone can help me with this?




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/How-to-publish-WMS-services-through-MapGuide-tp5180103.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users