Re: [mapguide-users] mapguide+google earth in IE

2020-05-03 Thread RenoSun
Hi Evan,

It looks really good of your mobile viewer and using mapguide + google earth
in IE. Looks like you customized your Kaliopa Mapguide Mobile Viewer as
well, and it looks nice.

Autodesk Infrastructure Map Server (AIMS) is a dead product now. I won't
recommend you to use it. 
https://www.autodesk.com/products/infrastructure-map-server/overview

I will recommend you to use mapgudie 3.1.2 instead of using AIMS. However,
it can be difficult if you are loading data from ArcSDE (ESRI). Also, have
look on both  mapguide-rest   
and  mapguide-react-layout
  . They may help you
to make your application more powerful in many ways.

Cheers,
Reno





--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Google strikes again (v3.1.2)

2019-12-12 Thread RenoSun
The Town of Qualicum Beach's GIS is still using MG 3.1.2 and Google Maps API
Weekly Version. It seems having no shift issues displaying its map with
Google Maps API using WGS 84 / Pseudo-Mercator coordinate system. 

https://maps.qualicumbeach.com/QB/Property.aspx?m=Property=G_NORMAL_MAP=1=-13860635.263713,6329307.6368184,-13845777.816343,6336932.2303888==Aerial%20Photo%202019==



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Vector>OpenStreetMap>DownloadData

2019-11-14 Thread RenoSun
Hi Kathy,

First of all, please don't be sorry asking questions. Second, would you
please be more specific on what are you trying to accomplish?

Are you using Maestro, and if so, what version are you using?

What's your MapGuide version and environment (windows OS version or other
OS)?

Why are you trying to enter "coordinates" into the "program"? Are you using
Fusion (Flexible Layout)?

Thanks,
Reno



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Pan & Select as one instrument, just like Google Maps do

2019-10-30 Thread RenoSun
I agree with you. We used to be able to at least holding center wheel of the
mouse to pan around while using "Select" tool. I didn't notice this when I
upgrade to MapGuide 3.1.2 X64 on Windows Server 2016.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] 500 Runtime Error aspxerrorpath mapguide/mapviewernet/setselection.aspx

2019-09-24 Thread RenoSun
Thanks a lot Jackie!

I realized that I actually do not have to use setselection.[aspx|php|jsp] at
all. I am still using "GETSELECTIONXML.php" for now
(https://mapguide.wordpress.com/2013/06/11/autodesk-infrastructure-map-server-auto-zoom-on-load/)

However, I assume this "GETSELECTIONXML.php" solution will probably not work
with MapGuide 4.0? If so, I will modify my code to use "QUERYMAPFEATURES"
with proper JS function codes.

Will this improve performance of SetSelection at all?



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] 500 Runtime Error aspxerrorpath mapguide/mapviewernet/setselection.aspx

2019-09-23 Thread RenoSun
Hi All,

Does anyone facing the same issue when querying setselection.aspx?

I couldn't find the setselection.aspx file under the following folder
"C:\Program Files\OSGeo\MapGuide_Original\Web\www\mapviewernet".

We were using AIMS 2017, but now we are using Mapguide 3.1.2. I am wondering
if this is a update that happen to Mapguide maybe even few versions ago.

Should I change my request from "setselection.aspx" to another ASP .NET
page?

I am using modified version of Kaliopa Mobile Viewer, and there is a
function looks like following code:

ASP .NET
"
//set selection url
var SetSelectionUrl =
"<%=GetRootVirtualFolder(Request)%>/mapviewernet/setselection.aspx";
"

JavaScript
"
function SetSelection(selText, requery) {
var reqParams = "SESSION=" + sessionId + "=" +
encodeURIComponent(mapName) + "=" + Math.random() + "=" +
encodeURIComponent(selText) + "=" + (requery ? "1" : "0");
reqHandler = GetRequestHandler();
reqHandler.open("POST", SetSelectionUrl, false);
reqHandler.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");
console.log(reqParams);
reqHandler.send(reqParams);
if (requery) {
return reqHandler.responseXML;
}
}
"
 

 





--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Rdbms with mapguide maestro

2019-09-05 Thread RenoSun
Hi maabas,

Was it because credential error or firewall blocking?

Thanks,
Reno



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Rdbms with mapguide maestro

2019-08-30 Thread RenoSun
Hi maabas,

Please see more information on the following site:
https://trac.osgeo.org/mapguide/wiki/Release/3.1.2/Notes

Patches --> King Oracle FDO provider for Oracle 12c

How to connect Mapguide maestro and MySQL database?
http://osgeo-org.1560.x6.nabble.com/How-to-connect-Mapguide-maestro-and-MySQL-database-td4185287.html

Try to use ODBC to connect to your MySQL database, feel free to post any
issues regarding connections to both Oracle / MySQL rdbms.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] Where can the user check the latest version of GETDYNAMICMAPOVERLAYIMAGE?

2019-08-19 Thread RenoSun
Where can the user check the latest version of GETDYNAMICMAPOVERLAYIMAGE?

Thanks!



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Recommendation needed for an android application development technology

2019-08-16 Thread RenoSun
Hi yuvalkimel,

My first question is that if you actually need to build a Mapguide Android
application.

Does your customers need to edit/add/delete/search data offline?

If not, I will strongly recommend using MapGuide-React-Layout for mobile
friendly use of mapguide, and use mapguide-rest to allow your customers to
manage/maintain their data using mobile data/WiFi with their Android
tablets/phones.

Step 1: Upgrade your mapguide to 3.0 or above

Step 2:
Use Sidebar (mobile friendly) template (mapguide-react-layout):
https://github.com/jumpinjackie/mapguide-react-layout

Step 3:
Program your web app talking advantages of mapguide-rest to
edit/add/delete/search data features
https://github.com/jumpinjackie/mapguide-rest/wiki/Adapter-Documentation

I hope this helps a bit.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Missing required parameter: ApplicationDefinition

2019-08-12 Thread RenoSun
I noticed some wired error using Maestro creating fusion/flexible layout. You
need to manually making sure the preview URL is correct.

https://yoursite/mapguide/fusion/templates/mapguide/index.php?template=limegold?ApplicationDefinition=Library://QualicumBeach/FlexibleLayouts/Property.ApplicationDefinition=en

It has two "?" for URL parameters, but it should only be "?" for the first
URL parameter, and using & for the rest URL parameter such as
APplicationDefinition.

https://yoursite/mapguide/fusion/templates/mapguide/index.php?template=limegold=Library://QualicumBeach/FlexibleLayouts/Property.ApplicationDefinition=en

Hope this help you!




--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] XYZ tile source support - Cannot setActive of undefined

2019-07-30 Thread RenoSun
Problem solved by making sure all the XYZ tile source names are having no
space in them or replacing space with underscore.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] XYZ tile source support - Cannot setActive of undefined

2019-07-30 Thread RenoSun
Hi All,

I am trying to use the XYZ tile source support, and it works well using
Fusion. However, I record the base map option using URL parameter, and the
Fusion will setActive the base map based on the URL parameter using
following codes:

if (getParamFromTop("baseMap") !== '' && getParamFromTop("baseMap")
!== null && typeof this.menuItems[getParamFromTop("baseMap")] !==
"undefined") {
this.menuItems[getParamFromTop("baseMap")].setActive(true);
}
else {
this.setBasemap(this.defaultBasemap);
}

I will not be able to setActive of the undefined item from the menuItems. 

I think it maybe because we do not have XYZ options set up as default
options of the menuItems dynamically as following:
refreshSettings: function() {
this.baseMaps = {};
this.defaultBasemap = null;
this.menuItems = {};
this.options = {
'G_NORMAL_MAP': null,
'G_SATELLITE_MAP': null,
'G_HYBRID_MAP': null,
'G_PHYSICAL_MAP': null,
'Road': null,
'Aerial': null,
'AerialWithLabels': null,
'Mapnik': null,
'TransportMap': null,
'CycleMap': null,
'None': null
};
},

Also, the setBasemap: function (baseMap) will not work neither:
Error Details:
Exception occurred in AJAX callback.
Message: Cannot read property 'oLayerOL' of undefined
Location: undefined (undefined)

Hope to get this work.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] ToolbarSecondary - Mapguide 3.1.2

2019-07-24 Thread RenoSun
I must did something wrong...mine "ToolbarSecondary" wasn't shown on the
fusion template.

Will dig deeper...



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] mapAgentURL is not defined in FUSION mapguide

2019-07-23 Thread RenoSun
Hi Rodolfo,

Please try Liglio's solution first. The role should be "Administrator".

Thanks,
Reno



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] ToolbarSecondary - Mapguide 3.1.2

2019-07-22 Thread RenoSun
Is Mapguide 3.1.2 still supporting "ToolbarSecondary" for the fusion?

Thanks,
Reno



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] mapAgentURL is not defined in FUSION mapguide

2019-07-22 Thread RenoSun
Same issue here...going to see if I can fix it.



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Google Offset in MGOS 3.1.1

2019-06-05 Thread RenoSun
Yeah! Alec's solution worked on AIMS2017 as well! :)



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Google strikes again (v3.1.2)

2019-06-05 Thread RenoSun
I think Google doesn't really want the mapguide users to use Google base
maps...

*3.37*
15 May 2019
Version 3.37 of the Maps JavaScript API is now available. See the Versioning
guide.

The weekly channel was updated to version 3.37.
The quarterly channel was updated to version 3.36.
Version 3.35 is still available when requested by number.
*Version 3.34 was deleted, and can no longer be used.
Internet Explorer 9 can no longer be used (3.34 was the last version to
support it).*

https://developers.google.com/maps/documentation/javascript/releases



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] MapGuide Server on a mobile device

2019-05-14 Thread RenoSun
Hi Frieda,

Yes, you should either use OpenLayers (OL) API 5.3.0 API to load your
mapguide map.
(https://openlayers.org/en/latest/examples/mapguide-untiled.html?q=mapguide)

Or upgrade Kaliopa Mobile Viewer
(https://github.com/sreckolipovsek/KaliopaMobileViewer) to OL 5.3.0 and to
match the latest MapGuide API (some c# codes need to be changed) +
sidebar-v2 (https://github.com/Turbo87/sidebar-v2) 

Real life example:  TQB Public Mapping & GIS

  

I believe the easiest way is to use mapguide-react-layout
https://github.com/jumpinjackie/mapguide-react-layout Sidebar template :)

However, if you have FME Workbench made by Safe Software, you can easily
convert the SHP files into KML/KMZ format to ask your user to install Google
Earth on their Android phones/tablets to view those polygons.





--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Maestro displaying 4 band Raster in black & white

2019-05-06 Thread RenoSun
Hi Philip and Erling,

I had the same issue. I used a software called FME Workbench (SUPER POWERFUL
ETL SOFTWARE) to remove/integrate the forth band, so I can display the ECW
raster image using Autodesk Infrastructure Map Server 2017.

Cheers,
Reno



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] Fusion Error - Chrome - Unable to preventDefault inside passive event

2019-04-05 Thread RenoSun
Hi everyone,

Did anyone have this issue, and know how to fix it?

I got this error, when I am wheel zoom in/out using Chrome.

fusionSF.js?v=106:50726 [Intervention] Unable to preventDefault inside
passive event listener due to target being treated as passive. See
https://www.chromestatus.com/features/6662647093133312
preventDefault @ fusionSF.js?v=106:50726
stop @ fusionSF.js?v=106:50706
onWheelEvent @ fusionSF.js?v=106:72111
(anonymous) @ fusionSF.js?v=106:46647


Line: 50726
/**
 * Method: preventDefault
 * Cancels the event if it is cancelable, without stopping further
 * propagation of the event.
 *
 * Parameters:
 * event - {Event}
 */
preventDefault: function (event) {
if (event.preventDefault) {
*event.preventDefault();*
} else {
event.returnValue = false;
}
},

Line: 50706
/**
 * Method: stop
 * Stops an event from propagating. 
 *
 * Parameters: 
 * event - {Event} 
 * allowDefault - {Boolean} If true, we stop the event chain but 
 * still allow the default browser behaviour (text selection,
 * radio-button clicking, etc).  Default is false.
 */
stop: function (event, allowDefault) {

if (!allowDefault) {
*OpenLayers.Event.preventDefault(event);*
}

if (event.stopPropagation) {
event.stopPropagation();
} else {
event.cancelBubble = true;
}
},

Line: 72111
if (!overScrollableDiv && overMapDiv) {
if (allowScroll) {
var delta = 0;

if (e.wheelDelta) {
delta = e.wheelDelta;
if (delta % 160 === 0) {
// opera have steps of 160 instead of 120
delta = delta * 0.75;
}
delta = delta / 120;
} else if (e.detail) {
// detail in Firefox on OS X is 1/3 of Windows
// so force delta 1 / -1
delta = - (e.detail / Math.abs(e.detail));
}
this.delta += delta;

window.clearTimeout(this._timeoutId);
if (this.interval && Math.abs(this.delta) < this.maxDelta) {
// store e because window.event might change during
delay
var evt = OpenLayers.Util.extend({}, e);
this._timeoutId = window.setTimeout(
OpenLayers.Function.bind(function () {
this.wheelZoom(evt);
}, this),
this.interval
);
} else {
this.wheelZoom(e);
}
}
*OpenLayers.Event.stop(e);*
}
},




--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Google Offset in MGOS 3.1.1

2019-02-19 Thread RenoSun
Hi,

I don't think they fix it yet, if this is actually a issue should be fixed
by Google Map or Mapguide itself.

I will just use 3.34 for now, and you should send the Google Map API team
regarding to this issue as well. I didn't get any responses from them. 

Then, test the newer version they are going to release in the future.
https://developers.google.com/maps/documentation/javascript/releases

Cheers,
Reno



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] PostGIS view with a join not selectable

2019-01-16 Thread RenoSun
Did you set up the primary key of your database data source?

"
  http://www.w3.org/2001/XMLSchema;
targetNamespace="http://fdo.osgeo.org/schemas/feature/dbo;
xmlns:fdo="http://fdo.osgeo.org/schemas;
xmlns:gml="http://www.opengis.net/gml;
xmlns:dbo="http://fdo.osgeo.org/schemas/feature/dbo;
elementFormDefault="qualified" attributeFormDefault="unqualified">

  

UNIQUE ID*" />
  


  

"



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] PostGIS view with a join not selectable

2019-01-16 Thread RenoSun
Hi techdude1996,

How about doing the following steps:

1. Create temporal database, and create a "Table" with the same fields and
field types and set up a primary key properly.

2. Use the FDO Toolbox to generate a usable XML text/file for the table.

3. Replace the table name in XML to the name of your spatial view and load
from the target database.

I think it should work. I am a SQL Server user, but it's how I resolve the
issue of SQL Server Spatial view cannot be selected on MapGuide.

Cheers,
Reno



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Layer Performance - Composite Stylization VS Points/Lines/Areas

2018-12-17 Thread RenoSun
Thanks Martin!

Really helpful!



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] Layer Performance - Composite Stylization VS Points/Lines/Areas

2018-12-17 Thread RenoSun
Dear All,

I am wondering if anyone know if there may be layer performance differences
between the layers using Composite Stylization and Points/Lines/Areas. 

Cheers,
Reno



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Fusion Single File Compress

2018-11-21 Thread RenoSun
Are you using JSCompress?

I think you will have to remembered to uncheck the "ECMAScript 2018 (via
Babili)" checkbox :)



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Google Offset in MGOS 3.1.1

2018-11-13 Thread RenoSun
Google Map JS API V3.34 will still be working with MapGuide, but not V3.35.
Yeah, I should set the version to 3.34 for now.

I also sent Google Map API team a feedback, and hope they may fix it at some
point. It works for me once for sending them a request about Google Map API
full screen wasn't working with Bootstrap. The street view pegman was having
some offset issue as well.

Cheers,
Reno



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Google Offset in MGOS 3.1.1

2018-11-13 Thread RenoSun
I wonder why we couldn't use the latest version. What did Google Map API
change to cause this offset issue?



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Google Offset in MGOS 3.1.1

2018-11-13 Thread RenoSun
Same here with AIMS 2017, fixed by changing the XML of the fusion from

http://maps.google.com/maps/api/js?key=APIKEYv=weeklyuse_slippy=true
to

http://maps.google.com/maps/api/js?key=APIKEYv=quarterlyuse_slippy=true



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Google Map

2018-09-12 Thread RenoSun
Hi CBeuk,

Google Maps API has changed the way that they want the user to use their
service with different URL parameters. 

https://developers.google.com/maps/documentation/javascript/versions

I am using the Autodesk Infrastructure Map Server 2017, and mine is still
working...
http://maps.google.com/maps/api/js?key=YOURKEYv=weeklyuse_slippy=true

Please see "MapGuide 3.1.1 Release Notes" --> "Fusion with Google Maps fix"
see this will fix your problem :)
https://trac.osgeo.org/mapguide/wiki/Release/3.1.1/Notes



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Slow Openstreetmap

2018-07-27 Thread RenoSun
Yahoo! This will be an awesome feature!



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] Colorized DEM on Mapguide/AIMS

2018-06-27 Thread RenoSun
I am trying to colorized DEM (ECW Gray8) based on their elevation (band 0
value) on AIMS 2017... but have no luck. Anyone has tried this before? 

I found the following link, and tried the same setting, but the image won't
even be displayed if I did some advanced raster settings...
http://osgeo-org.1560.x6.nabble.com/Styling-Single-Band-Rasters-eg-DEM-in-MapGuide-with-Maestro-td5193148.html

Need helps :)



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Slow Openstreetmap

2018-06-25 Thread RenoSun
Check this out too...
A Parser-blocking, cross-origin script is invoked via document.write - how
to circumvent it?

  



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Slow Openstreetmap

2018-06-20 Thread RenoSun
Hi Kajar,

I think that I was facing some similar issue before too.

I modified the following codes, but I am using AIMS 2017...not exactly MG
3.1.1.

You may also want to check out the following:

1.Hotfix for Bing Map V8 

https://knowledge.autodesk.com/support/infrastructure-map-server/troubleshooting/caas/downloads/content/autodesk-infrastructure-map-server-2017-bing-maps-hotfix.html
 

http://osgeo-org.1560.x6.nabble.com/New-builds-of-Fusion-to-support-new-Bing-Maps-td5326055.html

2.

fusionSF.js
...
var addElement = function (element) {
if (!element) {
return;
}
var src = element.textContent;

// For IE Browser 
if (!src) {
src = element.text;
}

if (src !=
"http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2;) {
if (location.protocol == 'https:') {
if (src ==
"http://maps.stamen.com/js/tile.stamen.js?v1.3.0;) {
src =
"https://stamen-maps.a.ssl.fastly.net/js/tile.stamen.js;;

Re: [mapguide-users] Google Map

2018-06-19 Thread RenoSun
Step 1: Using Maestro
Step 2: Double click on your Fusion/Flexible layout (using Google Maps base
map)
Step 3: Click Edit as XML button
Step 4: Scroll to the button of the XML, and find XML tag called
""
Step 5: It should be looks like following XML...

...

http://maps.google.com/maps/api/js?key=YOUR_GOOGLE_MAP_API_KEYv=3.expuse_slippy=true
   
http://www.openstreetmap.org/openlayers/OpenStreetMap.js
http://maps.stamen.com/js/tile.stamen.js?v1.3.0
YOUR_BING_MAP_API_KEY

...



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Google Map

2018-06-18 Thread RenoSun
Hi Jackie,

Here are my practical reasons for keeping Google Maps in Fusion:

1. Google Maps usually provide more comprehensive, better
street/POI/imagery/Street View/3D Mesh in most area including rural,
non-popular cities compared to other map APIs.

2. Many local/global government will submit their latest aerial/satellite
imagery to Google Maps team since they has a platform for the users desire
to submit their high resolution/accuracy imagery. The reason for most
government/non-government organizations submitting their latest imagery is
to benefit their citizens/visitors/tourism etc. I tried to contact Bing Map,
but they don’t even have a built platform for me to submit the new aerial
imagery to them…yet
https://support.google.com/mapcontentpartners/answer/144284

3. For the mapguide users who are willing to pay/potentially will pay for
the Google Maps API

4. Google Maps Street View

5. It seems just a trend to me for the web map/non-map APIs to ask their
user to sign up an account with payment info for using their services. Then,
they may only charge the users who are using over certain amount requests,
or for certain purposes/types of organization etc. 
•   Cesium.js https://cesium.com/pricing/ 
•   Thunderforest https://www.thunderforest.com/pricing/ 
•   Mapbox https://www.mapbox.com/pricing/ 

I am hoping that we may keep Google Maps API in Fusion. Also, I am even
hoping mapguide Fusion may allow users to use their paid/free web XYZ tiled
imagery from other map APIs/web tiled services such as Mapbox
(https://www.mapbox.com/), Thunderforest (https://www.thunderforest.com/),
Digital Globe (http://www.digitalglobe.com/platforms/mapsapi), mapguide-rest
xyz tiles from different servers, ESRI ArcGIS tiled map service, and Here
Map Tiled API etc.
   




--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Google Map

2018-06-15 Thread RenoSun
Yeah, you will have to subscribe, and set up your/your company credit card
information with Google by using Google Console in order to use any Google
Map related APIs like what Hans Milling posted.







--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] MapGuide Maestro 6.0M9 available

2018-05-10 Thread RenoSun
Thanks Jackie!



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] MapGuide Service muste be restarted once in a while

2018-02-14 Thread RenoSun
This article Jackie wrote might help you:
http://themapguyde.blogspot.ca/2012/06/thoughts-on-mapguide-scalability.html



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] MapGuide Service muste be restarted once in a while

2018-02-07 Thread RenoSun
Will this be caused by the Serverconfig.ini setting?

https://trac.osgeo.org/mapguide/wiki/ServerconfigWebConfigIni

SessionTimeout  0 < Value <= 86400  Time duration in seconds for 
when an idle
session is expired
SessionTimerInterval0 < Value <= 2147483647 ime interval in seconds 
for
when the server checks 



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Accepting applications to join the MapGuide PSC

2018-02-01 Thread RenoSun
Hi all,

I am interested in joining the PSC, but do not know if I am qualified to be
in.

I have experiences in developing web GIS/mapping application by customizing
MapGuide fusions, and utilizing GeoRest + MapGuide-Rest technology.

I love using and searching various online free libraries/frameworks/APIs
(OL2/3/4, Kaliopa Mobile Viewer, sidebar-v2, and Google Map API etc.) to
accomplish various goals of web mapping for my organization for both public
and internal uses.

TQB Public Mapping & GIS 

Here are my skills and experiences: (from my resume)

*WORK EXPERIENCE*
GIS Technician
April 2013 to Current, Town of Qualicum Beach, Qualicum Beach, BC, Canada
   Designing customized municipal public & internal web GIS for general
public, and municipal internal requirements by using ASP.NET(C#), Bootstrap,
jQuery, Google Map, Openlayers 2/3/4, MapGuide APIs, Cesium.js, Autodesk
Infrastructure Map Server 2014/2017, Autodesk Infrastructure Studio, and
Autodesk Map 3D/Civil 3D
   Developing municipal web-based Asset Management System integrated
with
municipal internal GIS, AssetFinda (Asset Management Software) and Municipal
Accounting Information System (MAIS)
   Improving GIS system performance by using FME Workbench
   Managing and maintaining SQL Server spatial/non-spatial tables
   Gathering, updating and monitoring spatial and non-spatial data
including
municipal utility, services, and cadastral for municipal and general public
uses by using Autodesk Map/Civil 3D, and Infrastructure Map Server
   Collecting geographic utility field data by using Trimble GPS
devices
   Providing IT/GIS training, and documents for the IT/non-IT
background
users

GIS Practicum Student
January 2013 to April 2013, Gaia Studio, Richmond, BC, Canada
   Developing natural resource management system using Google Earth
API, PHP,
KMLs, JavaScript, jQuery and PostgreSQL database with PostGIS extension
   Setting up Linux Server (CentOS6.3), Apache Web Server, and
PostgreSQL
Database
   GaiaStudio Platform for Forest-Modeling & 3D Visualization

Navy Corporal (Maintenance of Human Resource System)
July 2010 to June 2011, Human Resource Department of Navy, Taiwan
   Maintaining database (Microsoft SQL server) of Navy HR Online System
   Modifying the Navy Human Resource System, developing and designing
new
functions of Navy Human Resource Online System (Programing Languages: ASP,
ASP .NET, VB script, Fox pro, html, java script, ASP. NET AJAX, AJAX)

*EDUCATION*
Geographic Information System (Advanced Diploma-with Distinction)
September 2012 to June 2013, British Columbia Institute of Technology (BCIT)

Bachelor of Business Administration (BBA-with Distinction) Degree
(Information Management)
September 2006 to February 2010, National Taiwan University of Science and
Technology (NTUST)

*TECHNICAL SKILLS *
   Experience of implementing and managing municipal web GIS and Asset
Management Systems by using ASP.NET(C#), MapGuide API, GeoRest,
MapGuide-Rest, Openlayers3 API, Google Map/Earth API, Autodesk
Infrastructure Map Server, Autodesk Infrastructure Studio, AssetFinda and
Autodesk Map/Civil 3D
   Familiarity and experience in using in the flowing programing or
scripting
languages:
o   ASP.NET, C#, PHP, JavaScript, jQuery
   Experience in ASP .NET with Visual Studio development environment
and
Microsoft SQL Server to design web applications
   Experience of developing GIS application by using PHP, Google Earth
API,
and PostgreSQL DB
   Experience of using MS SQL Server, MySQL, PostgreSQL, and Oracle
database
systems with geographic data types and operations
   Maintenance of Microsoft SQL Server spatial and non-spatial
databases
   Experience of performing spatial analyses by using ArcGIS Model
Builder
with Python scripts and other ArcGIS spatial analyst tools
   Experience of collecting municipal utility geographic data by using
Trimble GPS devices, and importing and verifying the collected data with
record drawing by using Autodesk Civil 3D
   Experience of reading municipal utility engineering record drawing,
and
updating service cards
   Experience of using spatial querying function and various spatial
analysis
tools by using ArcGIS, and ArcSDE
   Experience of utilizing FME Workbench to improve the performance of
spatial data, and convert geographic data into other coordinate systems with
different data formats such as SHP, SQLite, SDF, KML and SQL Server Spatial
   Knowledge of using Autodesk Software such as AutoCAD, Autodesk
Map/Civil
3D, Autodesk Infrastructure Map Server, Autodesk Infrastructure Studio

*SOFT SKILLS*
   Passion of developing useful and intuitive web/mobile GIS related
applications
   Ability of fast researching, and utilizing information technologies
for
business solutions
   Ability to self-manage when finishing several tasks for 

Re: [mapguide-users] Moving to MGOS from AIMS

2018-01-25 Thread RenoSun
OL3/4

var ghybrid = new ol.layer.Tile({
preload: Infinity,
source: new ol.source.TileImage({
attributions: [
new ol.Attribution({
html: ' Google Map
  '
}),
ol.source.OSM.ATTRIBUTION
],
tileGrid: new ol.tilegrid.TileGrid({
//Enter your own extent (tile max extent)
extent: [
-13867062.1744, 6313000.89531,
-13843390.389, 6355831.09224
],
//Resolutions for 21 zoom levels
resolutions: [156543.03390625, 78271.516953125,
39135.7584765625,
19567.87923828125, 9783.939619140625,
4891.9698095703125,
2445.9849047851562, 1222.9924523925781,
611.4962261962891,
305.74811309814453, 152.87405654907226,
76.43702827453613,
38.218514137268066, 19.109257068634033,
9.554628534317017,
4.777314267158508, 2.388657133579254,
1.194328566789627,
0.5971642833948135, 0.2986, 0.1493],
tileSize: [gridSize, gridSize]
}),
tileUrlFunction: function (tileCoord, pixelRatio,
projection) {
var zoom = tileCoord[0];
var tileGrid = this.getTileGrid();
var center =
ol.proj.transform(ol.extent.getCenter(tileGrid.getTileCoordExtent(tileCoord)),
"EPSG:3857", "EPSG:4326");
//console.log(center[0]);
//console.log(center[1]);
return
'https://maps.googleapis.com/maps/api/staticmap?' +
'key=YOURGOOGLEMAPAPIKEY&' +
'maptype=satellite&' +
'size=' + gridSize + 'x' + gridSize + '&' +
'zoom=' + zoom + '&' +
'center=' + center[1] + ',' + center[0]
;
},
maxZoom: 21
}),
visible: true,
name: 'Google Satellite'
});



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Fusion Error: [object Object] - Parse JSON - MapTip

2018-01-18 Thread RenoSun
Actually, still get the same error...

Error: Exception occurred in AJAX callback.
Message: JSON.parse: unexpected character at line 1 column 1 of the JSON
data
Location: http://localhost/mapguide/fusion/lib/fusionSF.min.js?v=81 (1)
Inner Stack:
parseJSON@http://localhost/mapguide/fusion/lib/fusionSF.min.js?v=81:1:7015
parseMapTip@http://localhost/mapguide/fusion/lib/fusionSF.min.js?v=81:1:1542311
bind/<@http://localhost/mapguide/fusion/lib/fusionSF.min.js?v=81:1:560562
respondToReadyState@http://localhost/mapguide/fusion/lib/fusionSF.min.js?v=81:1:985515
onStateChange@http://localhost/mapguide/fusion/lib/fusionSF.min.js?v=81:1:984331
bind/<@http://localhost/mapguide/fusion/lib/fusionSF.min.js?v=81:1:560562

Response: The custom error module does not recognize this error.
fusionSF.min.js:1:6479
ajaxException
http://localhost/mapguide/fusion/lib/fusionSF.min.js:1:6479
bind/<
http://localhost/mapguide/fusion/lib/fusionSF.min.js:1:560562
dispatchException
http://localhost/mapguide/fusion/lib/fusionSF.min.js:1:985897
respondToReadyState
http://localhost/mapguide/fusion/lib/fusionSF.min.js:1:985631
onStateChange
http://localhost/mapguide/fusion/lib/fusionSF.min.js:1:984331
bind/<
http://localhost/mapguide/fusion/lib/fusionSF.min.js:1:560562



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] XYZ layer 500 (Internal Server Error)

2018-01-18 Thread RenoSun
Solved on GitHub https://github.com/jumpinjackie/mapguide-rest/issues/120



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Get coordinates fusion templates

2018-01-17 Thread RenoSun
mapWidget.getCurrentExtents(); should give your the current map extent :)

Please see more codes of following link:
http://osgeo-org.1560.x6.nabble.com/Map-Switch-Base-Layer-groups-issue-td5348150.html



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] XYZ layer 500 (Internal Server Error)

2018-01-17 Thread RenoSun
Hi All,

I have a problem to generate XYZ tiles with 500 error again.

The request looks like following URL:
https://maps.qualicumbeach.com/qbmap/rest/library/QualicumBeach/TiledMaps/UtilityTiledMap.MapDefinition/xyz/Base%20Layer%20Group/17/20227/44818/tile.png

The UtilityTiledMap is using coordinate system (WGS84.PseudoMercator (WGS84
based Mercator (spherical formulation))).

However, the mapguide-rest only generated the .lck files.

I am using Release 1.0 RC5.

I got following error from debug.log as following:
(11746) Checking if C:\Program Files\Autodesk\Autodesk Infrastructure Web
Server Extension
2017\www\rest/./cache/tile.png/QualicumBeach/TiledMaps/UtilityTiledMap/Base
Layer Group/17/20227/44818.png exists (11746) C:\Program
Files\Autodesk\Autodesk Infrastructure Web Server Extension
2017\www\rest/./cache/tile.png/QualicumBeach/TiledMaps/UtilityTiledMap/Base
Layer Group/17/20227/44818.png does not exist. Locking for writing (11746)
Acquired lock for C:\Program Files\Autodesk\Autodesk Infrastructure Web
Server Extension
2017\www\rest/./cache/tile.png/QualicumBeach/TiledMaps/UtilityTiledMap/Base
Layer Group/17/20227/44818.png. Checking if path exists again. (11746)
Rendering tile to C:\Program Files\Autodesk\Autodesk Infrastructure Web
Server Extension
2017\www\rest/./cache/tile.png/QualicumBeach/TiledMaps/UtilityTiledMap/Base
Layer Group/17/20227/44818.png (11746) Going down old code path (11746) Calc
bounds from XYZ (11746) Releasing lock for C:\Program
Files\Autodesk\Autodesk Infrastructure Web Server Extension
2017\www\rest/./cache/tile.png/QualicumBeach/TiledMaps/UtilityTiledMap/Base
Layer Group/17/20227/lock_44818.lck (11746) C:\Program
Files\Autodesk\Autodesk Infrastructure Web Server Extension
2017\www\rest/./cache/tile.png/QualicumBeach/TiledMaps/UtilityTiledMap/Base
Layer Group/17/20227/44818.png does not exist. Locking for writing (11746)
Acquired lock for C:\Program Files\Autodesk\Autodesk Infrastructure Web
Server Extension
2017\www\rest/./cache/tile.png/QualicumBeach/TiledMaps/UtilityTiledMap/Base
Layer Group/17/20227/44818.png. Checking if path exists again. (11746)
Rendering tile to C:\Program Files\Autodesk\Autodesk Infrastructure Web
Server Extension
2017\www\rest/./cache/tile.png/QualicumBeach/TiledMaps/UtilityTiledMap/Base
Layer Group/17/20227/44818.png (11746) Going down old code path (11746) Calc
bounds from XYZ

Windows Server 2016 + AIMS2017 (env)



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Fusion Error: [object Object] - Parse JSON - MapTip

2018-01-17 Thread RenoSun
Don't start your Map Tip with '<' will be the solution.

I use html   started with my Map Tip. The error will randomly popup since it
might be treated as HTML, not JSON...



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Future plans/roadmap for MapGuide Open Source

2018-01-11 Thread RenoSun
Thank you so much Jackie. Will try my best to report bugs and provide
suggestions while the MGOS 3.1 release!



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] Fusion Error: [object Object] - Parse JSON - MapTip

2018-01-10 Thread RenoSun
Hi all,

I have the "The custom error module does not recognize this error." Fusion
Error especially while I selected a lot of features on the map... (400
features maybe...) and the Error will pop up...

The error was shown as following image:
 
 

It occurred once a while. I think I can trigger the error by select multiple
features on the map, and hover on the feature to see the map tip.

It seems to fail to parseJSON of the map tip string at some point...then the
error pop up.

Anyone had the same problem before?

Thanks!





--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Map Switch, Base Layer groups issue

2018-01-09 Thread RenoSun
Firstly, I am using Fusion turquoiseyellow template using fusionSF.js. 

I modified index.html, and fusionSF.js to achieve my goal.

Under  
window.onload = function () {
//if it is first time load fusion
Fusion.initializeLocale();  //need to call this first if
String.Translate is to be used in the onload

//add this function to update URL parameter
 function getParamFromTop(sname) {
//var params =
location.search.substr(location.search.indexOf("?") + 1);
var params =
window.top.location.search.substr(window.top.location.search.indexOf("?") +
1);
var sval = "";
//console.log("test");
params = params.split("&");
// split param and value into individual pieces
for (var i = 0; i < params.length; i++) {
temp = params[i].split("=");
if ([temp[0]] == sname) { sval = temp[1]; }
}
return sval;
}


var initPanelHandler = function () {
 if (isTaskPaneRegistered) return;
...
//add these code under initPanelHandler...
if (getParamFromTop('curextent') != '' && getParamFromTop('curextent') !=
null && getParamFromTop('first') == 1) {
var ext = getParamFromTop('curextent').split(',');
//console.log(ext);
ext = new OpenLayers.Bounds(ext[0], ext[1], ext[2], ext[3]);
mapWidget.setExtents(ext);
//console.log("setExt");
}
else {
   setGetParameter("first", "1");
}
mapWidget.registerForEvent(Fusion.Event.MAP_EXTENTS_CHANGED,
rememberedExtent);
...






--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Display Historival value assigned to a polygon

2018-01-04 Thread RenoSun
I have been using spatial views with by editing the Configuration Document of
the database data connection, and it works with SQL Server 2008 and 2016...

Also, the version of the Maestro may cause the problems too.

I am using AIMS 2017 with Maestro 6.0m7 without error messages when I am
trying to edit the Configuration Document of the database data connection.

However, I got error messages when I was using Maestro 6.0m8.

You may want to just create a temporary database, and create a table with
the fields that you would like to use for your spatial view. Then, use FDO
Schema Override Tool to extract the correct Configuration XML for your
spatial view...

Here is my example of the Configuration XML for DB data connection... but we
must have different coordinate system, and FDO provider... so please modify
them to fit your environment.

Change YOUR_GEOM_NAME to the geometry field name that you're using, and
SPATIAL_VIEW_NAME to your spatial view name.


http://www.w3.org/2001/XMLSchema;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
xmlns:xlink="http://www.w3.org/1999/xlink;
xmlns:gml="http://www.opengis.net/gml;
xmlns:fdo="http://fdo.osgeo.org/schemas;
xmlns:fds="http://fdo.osgeo.org/schemas/fds;>
  
Spatial context from SqlServer metadata
Default

  
-200.00 -200.00
200.00 200.00
  

http://fdo.osgeo.org/schemas/feature/crs/#UTM84-10N; />
http://fdo.osgeo.org/coord_conversions#identity; />
http://fdo.osgeo.org/crs_types;>geographic
http://fdo.osgeo.org/cs#default_cartesian; />
  
  
Spatial context from SqlServer metadata
sc_5

  
39.00 5464000.00
40.00 5469000.00
  

http://fdo.osgeo.org/schemas/feature/crs/#UTM84-10N; />
http://fdo.osgeo.org/coord_conversions#identity; />
http://fdo.osgeo.org/crs_types;>geographic
http://fdo.osgeo.org/cs#default_cartesian; />
  
  http://www.w3.org/2001/XMLSchema;
targetNamespace="http://fdo.osgeo.org/schemas/feature/dbo;
xmlns:fdo="http://fdo.osgeo.org/schemas;
xmlns:gml="http://www.opengis.net/gml;
xmlns:dbo="http://fdo.osgeo.org/schemas/feature/dbo;
elementFormDefault="qualified" attributeFormDefault="unqualified">

  


  


  

http://fdo.osgeo.org/schemas; />
  
  

  

  

  
  

  

  


  

  
  

  


  

  

  

  

  
  http://fdordbms.osgeo.org/schemas;
xmlns="http://www.autodesk.com/isd/fdo/SQLServerSpatialProvider;
textInRow="NotInRow" provider="OSGeo.SQLServerSpatial.3.8" name="dbo">

  

  

  
  

  
  

  

  




--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Get coordinates fusion templates

2018-01-04 Thread RenoSun
Here is the custom print (snipping tool) that we are using with Fusion:
1. The example here is using ASP .NET C# with MapGuide API
(http://mapguideAPIEnabledSite/PrintSelect.aspx)
2. Custom Invoke URL widget

PrintSelect.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="PrintSelect.aspx.cs"
Debug="true" Inherits="PrintLayout" %>

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;>

http://www.w3.org/1999/xhtml;>

Print



















PrintSelect.aspx.cs:
/* NOTES
 * 
 * Printable area is adapted for IE whose standard margins are 3/4" each.
Firefox standard margins are 1/2" each.
 * 
 * New paper sizes can be added by adding a button to PrintSelect.aspx,
linking the event handler and calling
 * the PrintMap subroutine with the number of pixels for each dimension as
the passed values, as per the below formula.
 *
 * The dpi of generated images is always 96. A larger dpi specified in the
url which generates the .png map image will
 * result in a more zoomed-in map being produced and will skew calculations
involving scale, as scale will not be the
 * only variable in determining the zoom level of the map.
 *
 * EQUATIONS AND FORMULAE
 * 
 * Native Resolution = 96dpi (1 dpi = 1 image pixel. Higher dpi means a
larger image of the same quality.)
 * 
 * magicNumber: Is a ratio which uses the map scale to link a selected
distance to the number of pixels
 * which represent it in a generated image. Given that images are always
generated at the same dpi (96),
 * this number never changes
 * 
 * 
 * 1 pixel = n x 1/scale
 * 
 * (distance in METRES)/((distance on page in PIXELS) * n) = 1/scale   -  
Shorthand version: m/(p*n) = scale^-1
 * 
 * Printable pixels on a page dimension: ((length in inches) - 1.5) * 96
 */

using System;
using System.Collections.Generic;
using System.Drawing.Printing;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class PrintLayout : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}

protected void btnPrintLetter_Click(object sender, EventArgs e)
{
ClientScript.RegisterStartupScript(this.GetType(), "Print Map",
String.Format("", ImageURL(672, 912)));
}

protected void btnPrint11x17_Click(object sender, EventArgs e)
{
ClientScript.RegisterStartupScript(this.GetType(), "Print Map",
String.Format("", ImageURL(912, 1488)));
}

protected string ImageURL(double pageWidth, double pageHeight)
{
string sessionID =
Server.UrlDecode(Request.QueryString.Get("SESSION"));
string mapName =
Server.UrlDecode(Request.QueryString.Get("MAPNAME"));
string url;
double widthPixels, heightPixels, widthMetres, heightMetres, scale,
scaleSelection, drawingHeightCm,
scaleMetric, centreX = 0, centreY = 0;
double x1 = double.Parse(hidX1.Value), x2 =
double.Parse(hidX2.Value);
double y1 = double.Parse(hidY1.Value), y2 =
double.Parse(hidY2.Value), magicNumber = (2.642e-4);
//dpi = 96

//Determine the width and height of the selection in metres
widthMetres = Math.Abs(x2 - x1);
heightMetres = Math.Abs(y2 - y1);
scaleSelection = Math.Abs(widthMetres / heightMetres);

//Determine the selection centrepoint in metres
if ((x1 > x2) && (y1 > y2))
{
centreX = x1 - (widthMetres / 2);
centreY = y1 - (heightMetres / 2);
}
else if ((x1 < x2) && (y1 > y2))
{
centreX = x1 + (widthMetres / 2);
centreY = y1 - (heightMetres / 2);
}
else if ((x1 > x2) && (y1 < y2))
{
centreX = x1 - (widthMetres / 2);
centreY = y1 + (heightMetres / 2);
}
else if ((x1 < x2) && (y1 < y2))
{
centreX = x1 + (widthMetres / 2);
centreY = y1 + (heightMetres / 2);
}

// Determine the orientation of the selection and how to properly
scale it

if (scaleSelection <= (pageWidth / pageHeight))
{
//Portrait and proportionally longer and narrower than page or
same dimensions - Match selection height to page height
heightPixels = pageHeight;
widthPixels = pageHeight * widthMetres / heightMetres;
}
else if (scaleSelection > (pageWidth / pageHeight) && scaleSelection
< 1)
{
//Portrait but proportionally squarer than page - Match
selection width to page width
widthPixels = pageWidth;
heightPixels = pageWidth * heightMetres / widthMetres;
}
else if (scaleSelection == 1)
{
//Square
heightPixels = widthPixels = pageWidth;
}
else if (scaleSelection > 1 && scaleSelection < (pageHeight /
pageWidth))
{
//Landscape but 

Re: [mapguide-users] Map Switch, Base Layer groups issue

2018-01-04 Thread RenoSun
Hi madhurchanana,

I think we have similar discussion about this issue before...but seems we
all just work around the issue to achieve our goal...

http://osgeo-org.1560.x6.nabble.com/Problems-with-base-layers-td5298092.html#a5300545

I may spend sometime look into codes...when I am not so busy.

I hope someone may provide the solution for this issue one day.




--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Display Historical value assigned to a polygon

2018-01-04 Thread RenoSun
I agreed with Martin Morrison.

I will join two tables with PostgreSQL as one spatial view table.

If you would like to enable the selection for spatial view, you may check
out following link:

http://osgeo-org.1560.x6.nabble.com/SQL-Server-Spatial-View-Selection-Issue-td5228068.html

However, if you really dislike the large joint table...

I will develop a PHP, and ASP .NET etc. web page to query and display the
*State Power Load* table info based on the *State ID*.

Display the PHP/ASP .NET web page by map tip hyper link, opening the new
window, or task panel (Fusion).

Cheers!



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] AIMS 2014 to AIMS 2017 Selection Panel Display Order Issues

2017-12-14 Thread RenoSun
Temporary solution here for this problem with Fusion users:

under FusionSF.js:

convertExtendedFeatureInfo: function (efi) {
...
var layerMeta = selLayer.LayerMetadata[0];
//add this
var layerFeature = selLayer.Feature[0];
...
var metaProp = layerMeta.Property[j];
//add this
var featureProp = layerFeature.Property[j]
...
//change metaProp.DisplayName[0] to following code
pvals.push(featureProp.Name[0]);
...
}



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] AIMS 2014 to AIMS 2017 Selection Panel Display Order Issues

2017-12-14 Thread RenoSun
Please see more details of this issue on following GitHub page:

https://github.com/jumpinjackie/mapguide-maestro/issues/16



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] AIMS 2014 to AIMS 2017 Selection Panel Display Order Issues

2017-12-13 Thread RenoSun
I seriously think this need to be fixed...

There are so many DB, SQLite, or SDF data connections... if I have edit the
XMLs one by one... it will be a nightmare...



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] AIMS 2014 to AIMS 2017 Selection Panel Display Order Issues

2017-12-13 Thread RenoSun
Hi All,

I just switched our map server to AIMS 2017 which is using MapGuide 3.1.

When I selected feature(s) on the fusion/web layout map, it will displayed
the label names with the database field name order without following the
order of how I checked the fields to be displayed. 

Interestingly, the field values still following the order of how I checked
the fields to be displayed...

For example:
The table "Parcel" from SQL Server
Have following fields with following orders:
QBID
ParcelType
Jurisdiction
RollNumber
PID
URL

With AIMS 2017 Studio/Maestro6.0M7 I checked with following order to display
the field...
QBID
URL 
ParcelType
Jurisdiction
RollNumber
PID

The selection panel will still display the label names with the order of the
fields of the database table:
QBID
ParcelType
Jurisdiction
RollNumber
PID
URL

but with the field values following the order I checked the filed to be
displayed by using Maestro/ AIMS 2017 Studio:
QBID (1235)
URL (maps.qualicumbeach.com)
ParcelType (lot)
Jurisdiction (44)
RollNumber (1234555)
PID (123-343-1344)

Anyone knows what may cause this problem??? 

Thank you very much :)




--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Fusion - If Using Any of Google Base Maps - Cursor Will Be Off (Hover/Select) - AIMS2017

2017-11-27 Thread RenoSun
Thank you so much Gordon!

It works perfectly :)



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Fusion - If Using Any of Google Base Maps - Cursor Will Be Off (Hover/Select) - AIMS2017

2017-11-23 Thread RenoSun
Sorry, the problem still remain... please help



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Fusion - If Using Any of Google Base Maps - Cursor Will Be Off (Hover/Select) - AIMS2017

2017-11-22 Thread RenoSun
I recreated the fusion layout from scratch without using the layouts migrated
from AIMS 2014. Then Problems solved !



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] Fusion - If Using Any of Google Base Maps - Cursor Will Be Off (Hover/Select) - AIMS2017

2017-11-21 Thread RenoSun
Hi All,

I am using AIMS 17, and I noticed that if I am using any Google Base Map
(street/hybrid/satellite), the cursor hover on the map will be off. 

My map will not recognize my cursor position on the map correctly...

 

However, if I am using Bing/OSM as my default base map, the fusion is able
to correctly read my cursor position on the map.

Any places should I look for the hotfix? or change the codes?

Thank you for all your helps!!!



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] Turn Layers On/Off of The Legend - FusionSF.js - AIMS2017/MapGuide3.1

2017-11-20 Thread RenoSun
Hi all,

Does anyone facing the issues to turn on/off layers or layer groups by using
FusionSF.js?

I am using turquoiseyellow template, and I wrote following codes in order to
turn on/off the layers or layer groups based on the URL parameters. It was
working with Fusion 2.6 build. The check boxes of the layers
unchecked/checked were successfully.

turquoiseyellow/index.html
 var mapWidget = Fusion.getMapById('Map');
if (mapWidget && mapWidget.isMapLoaded()) {
//Turn on/off specific layers/layer groups based on URL
parameters
// ex: getParamFromTop('sl') = 'Roads'
var sllist = decodeURIComponent(getParamFromTop('sl'));
...
   
mapWidget.aMaps[0].getLayerByName(getParamFromTop('sl')).show(bool);
...

However, I think AIMS 2017 is using new build like Fusion 3.0/3.1.

Then, I got following error message:
 
 





--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] AIMS 2017 Base Maps Shown Above AIMS Layers At Zoom Level 1:1128.49722

2017-11-20 Thread RenoSun
Solution will be changing the Nearest Zoom In Value to 1128.497176
 



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] AIMS 2014 to AIMS 2017 upgrade with Kaliopa Mobile Viewer Errors

2017-11-16 Thread RenoSun
Here is the solution :)

Thank you for all your helps!

https://github.com/sreckolipovsek/KaliopaMobileViewer/issues/2



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] AIMS 2014 to AIMS 2017 upgrade with Kaliopa Mobile Viewer Errors

2017-11-15 Thread RenoSun
Hi All,

I am trying to upgrade our AIMS 2014 to AIMS 2017, and trying to figure the
errors using the Kaliopa Mobile Viewer as following:

Problem:\nThe connection to the Infrastructure Map Server is not open as
expected.\n\nPossible Causes:\n-Your session has been idle for too
long;\n-Infrastructure Map Server is no longer responding;\n-Internet
connection problems.\n\nSolution:\nRestart your application / session,
restart the Infrastructure Map Server service, or contact with the server
administrator.

 

 


Here are the successful results with AIMS 2014:
 

The session was just created, and I don't think it's idle for too long...
maybe I am missing the setting somewhere for the new AIMS 2017 on windows
server 2016...

Here are the codes that I am using for both 
http://qb-svr18-maps/qbmap/mobileMapViewer/PrintLegend.ashx and
http://qb-svr18-maps/qbmap/mobileMapViewer/ControlMgLayers.ashx ...and the
web config
PrintLegend.txt
  
ControlMgLayers.txt
  
WebConfig.txt
  

Really appreciate any suggestions and solutions.





--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Google Geocode inside Mapguide

2017-09-20 Thread RenoSun
Hi Karuna,

I think it's doable. I don't know if you're using fusion or basic web
layouts.

If Google Direction Service can return the geometry of the route (line), and
route info in wkt, xml, geojson, and json etc.

You may draw the geometry on your MG maps, and display the route info with a
pop up windows or the task window. Then, zoom to the route. 

Or simply generate the Google Maps URL that will provide directional
information.

I will prefer the second one. Less codes to write :)

Directions examples using waypoints

  



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] MGOS layers with Google Maps API?

2017-09-20 Thread RenoSun
Hi open_saucer,

I think it's totally doable to use Google Map API with MGOS.

However, it won't be as easy as using OpenLayers 3 API to do that.

I would suggest that you can give  OL3    a try, or
something like  OL3-Google-Maps
  .

You may use  mapguide-rest   
to load vector-tiles(geojson) from MGOS, and load them by using Google Map
API/OL3 API.

Or you may set up your own configuration by using mapguide-rest to generate
html, kml, geojson, xml, or czml response based on what you set up on MGOS
by using Maestro.

I didn't see this post, but hopefully you had some progresses already :)

Cheers! 



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] MapGuide 3.1 QuickPlot does not work

2017-08-30 Thread RenoSun
http://osgeo-org.1560.x6.nabble.com/QuickPlot-problem-in-Fusion-td5053474.html



--
Sent from: http://osgeo-org.1560.x6.nabble.com/MapGuide-Users-f4182607.html
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Mapguide 3.1 WFS service

2017-08-29 Thread RenoSun
Maybe firewall setting can solve the problem?

https://stackoverflow.com/questions/7363470/windows-server-2008-r2-cant-get-apache-to-run-on-port-80

In your case, use 8008 port.

I hope others may be able to help you too if this doesn't work still.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapguide-3-1-WFS-service-tp5330278p5332941.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Mapguide 3.1 WFS service

2017-08-28 Thread RenoSun
Hi there,

Hope this may help you to find the solution...

First of all, did you restart the World Web Wide Publishing Service too?

What is the port your Apache web server is using in  httpd.conf

 
?

WFS service - AIMS using Apache webserver

  



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapguide-3-1-WFS-service-tp5330278p5332772.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Mapguide 3.1 WFS service

2017-08-23 Thread RenoSun
Hi Kajar,

Firstly, I think you should probably let people know what Environment you're
using, so people can help you to find the right solution. I will think you
don't need to use any port number in order to use the WFS service. 

Are you not using Windows Server? or you're using Linux, CentOS, Ubuntu
etc.?

Also, you don't know how to show appreciation even my solution didn't help
you, and I don't even know how hard you're trying to fix this problem.
However, I am done helping you.

All is well.



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapguide-3-1-WFS-service-tp5330278p5332281.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Mapguide 3.1 WFS service

2017-08-22 Thread RenoSun
Solution!!!

https://knowledge.autodesk.com/support/infrastructure-map-server/troubleshooting/caas/sfdcarticles/sfdcarticles/Configuring-WFS-on-IIS.html

 



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapguide-3-1-WFS-service-tp5330278p5332190.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Mapguide 3.1 WFS service

2017-08-22 Thread RenoSun
I am still trying to figure out how to connect Mapguide 3.1 WFS properly.

These links might help...

http://osgeo-org.1560.x6.nabble.com/MapGuide-Maestro-connection-issue-td4989223.html

mapagent test page:
http://localhost/mapguide/mapagent/index.html




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Mapguide-3-1-WFS-service-tp5330278p5332174.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] MapGuide/AIMS OSM TransportMap and CycleMap API Key Required

2017-08-21 Thread RenoSun
Hi all,

I just would like to share how I update the FusionSF.js to use OSM tiles
with API KEY.

http://www.thunderforest.com/docs/apikeys/
  

... about code line 113806
 if (!this.oLayerOL) {
if (this.layerType == 'OpenStreetMap' || this.layerType ==
'OSM') {
if (this.mapTag.extension.Options[0].type[0] == "Mapnik"){
this.oLayerOL = new
OpenLayers.Layer.OSM[this.mapTag.layerOptions.type](this.getMapName(), null,
this.mapTag.layerOptions);
}
else if (this.mapTag.extension.Options[0].type[0] ==
"CycleMap"){
//this.oLayerOL = new
OpenLayers.Layer.OSM(this.getMapName(), null, this.mapTag.layerOptions);
this.oLayerOL = new OpenLayers.Layer.OSM("t@h",
"https://tile.thunderforest.com/cycle/${z}/${x}/${y}.png?apikey=YOURAPIKEY;);
}
else if (this.mapTag.extension.Options[0].type[0] ==
"TransportMap") {
this.oLayerOL = new OpenLayers.Layer.OSM("t@h",
"https://tile.thunderforest.com/transport/${z}/${x}/${y}.png?apikey=YOURAPIKEY;);
}
}
else {
this.oLayerOL = new
OpenLayers.Layer[this.layerType](this.getMapName(),
this.mapTag.layerOptions);
}
//fractionalZoom not permitted with tiled base layers regardless
this.mapWidget.fractionalZoom = false;
this.mapWidget.oMapOL.setOptions({ fractionalZoom: false });
}

You may see the result on our  public GIS Recreation Map
  .

Cheers!



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MapGuide-AIMS-OSM-TransportMap-and-CycleMap-API-Key-Required-tp5332053.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] correctly display utf-8 arrow-symbol

2017-07-19 Thread RenoSun
Hi Reservoirdog,

I think the arrow features might be exported as points data? Therefore,
MapGuide's default display those points with rectangle icon I assume. Will
it be easier just import the new left/right arrow symbols for the point
feature instead of using rectangle?



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/correctly-display-utf-8-arrow-symbol-tp5328356p5328473.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] AIMS 2017 capability with mapguide-react-layout

2017-06-20 Thread RenoSun
Hi all,

Did anyone try to use AIMS 2017 with mapguide-react-layout?

I am probably going to upgrade our map server from AIMS 2014 to AIMS 2017.

Thanks!



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/AIMS-2017-capability-with-mapguide-react-layout-tp5324888.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Fusion template setExtents Problem

2017-04-04 Thread RenoSun
Hi MC,

I would like to see more specific codes from you to see how you code your
fusionSF.js or index.html.

I don't understand what are you trying to accomplish by using setExtents
for? To zoom to the selected features? or just specific areas that the user
always zoom to frequently?

Then, I or others might be able to provide some solutions for you...

Reno






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

Re: [mapguide-users] What buffering method does MapGuide use Euclidean or Geodesic?

2017-03-30 Thread RenoSun
I tried  JSTS   , and it won't
recognize the coordinate system of the geometry. It buffer the geometry in
UNIT which I should be in meters. 

// create a buffer of 40 meters around each line

var buffered = jstsGeom.buffer(40);

However, when I buffered the geometry in WGS84.Pseudomercator 10 meters, it
generated the geometry only buffered about  6.54 meters. Therefore, I had to
manually change the user input values again.

Therefore, I decided to just use Turf.js to buffer the geometry. At least,
it can recognize the unit that I sent to it.

Equidistant Buffer possible? with JSTS?
  



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/What-buffering-method-does-MapGuide-use-Euclidean-or-Geodesic-tp5314871p5315045.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] What buffering method does MapGuide use Euclidean or Geodesic?

2017-03-29 Thread RenoSun
I was using Turf.js to buffer the geojson generated from MapGuide-Rest with
LL84 coordinate system. Then, I use OpenLayers 3 to transform the buffer
feature geometry to WGS 84.Pseudo-Mercator coordinate system. However, the
buffer distance was incorrect. I tested on MapGuide Fusion to use buffer
tool on both LL84, and WGS 84.Pseudo-Mercator. Both generated the accurate
results as I expected. 

I ended up to request the geojson from mapguide-rest in
WGS84.Pseudo-Mercator coordinate system, and buffer the geojson. The buffer
distance was really off, but it generated the right shape. Therefore, I
manually change the distance value, and it works great with various units
such as meter, km, and feet. 

geojson = turf.buffer(geojson, $('#bufferDist').val() / 0.05845,
$('#bufferUnit').val());

The questions that I posted on OpenLayers 3 github. 


Understanding Geodesic Buffering

You may try our new Buffer function on our web GIS. Select any features on
the map, and click Buffer The Feature button. Converted the buffer result to
map layer, and you may use the measurement tools to check the accuracy of
the buffer layer. 

I think what the MapGuide fusion buffer the feature geometry with the same
coordinate system that the map is using, and didn't do any geometry
coordinate transformations. When the map is in LL84, it use Geodesic
Buffering, and if it's using any projected coordinate system, it will use
Euclidean Buffering. 

I think Turf.js did the Geodesic Buffering with my LL84 geojson, and I
transform the result geojson it into WGS 84.Pseudo-Mercator. Therefore, it
will not give me the result that I expected to see that only Euclidean
Buffering will provide me. Should always transform the original feature into
the final coordinate system of the buffering result first, than buffer it
with the appropriate buffering method in order to get the correct result. 

Any thoughts?  



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/What-buffering-method-does-MapGuide-use-Euclidean-or-Geodesic-tp5314871.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] MapGuide Maestro 6.0M6 available

2017-03-08 Thread RenoSun
I am using MapGuide Maestro 6.0M6 with AIMS 2014.

I have not problem saving following Configuration Document with MapGuide
Maestro 6.0M5, but got error by using MapGuide Maestro 6.0M6.

My configuration doc looks like following:
Configuration.xml
  

Here is the error message that I got from MapGuide Maestro 6.0M6 as
following:
err.txt   



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MapGuide-Maestro-6-0M6-available-tp5306454p5311431.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] OSM API KEY REQUIRED for CycleMap

2017-02-22 Thread RenoSun
Are you using Flexible Layout? Which version of mapguide are you using?

You should have an option to use OSM CycleMap as base map with your flexible
layout.

Make sure you're using the right coordinate system too! WGS84.PseudoMercator


 



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/OSM-API-KEY-REQUIRED-for-CycleMap-tp5309129p5309156.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-08 Thread RenoSun
Hey gom,

I think I found the solution.

Please change the HtmlDecode function with following code:

function HtmlDecode(input)
{
var txt = document.createElement("textarea");
txt.innerHTML = input;
return txt.value;
}




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Ajax-viewer-URL-in-Properties-Pane-tp5306236p5307071.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-08 Thread RenoSun
Please copy and paste the code of last propertyctrl.txt that I attached, and
let me know what it print under the console.

The if statement with brackets should look like this I assume:

function HtmlDecode(input)
{
if (input == null || input == ""){
return input;
}
if (_el == null){
_el = document.createElement('div');
}
_el.innerHTML = input;
return _el.childNodes[0].nodeValue;
}




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Ajax-viewer-URL-in-Properties-Pane-tp5306236p5307044.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-07 Thread RenoSun
I would think you should try to clean all the browsing data and history to
make sure the browser is using the latest propertyctrl.templ 

Also, don't use alert, but using console.log('abcd') maybe.

Try to use before and after the HtmlDecode.

for(var i=0; i < properties.length; i++)
   *console.log(properties[i].value);*
   *console.log(HtmlDecode(properties[i].value));*
code += '
' + properties[i].name + '' + 
HtmlDecode(properties[i].value) + '';





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Ajax-viewer-URL-in-Properties-Pane-tp5306236p5306819.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-07 Thread RenoSun
Hi Gom,

I am using nvarchar(255) as the data type of my HTML hyperlink.

Here is the HTML hyperlink field looks like on our SQL Server 2008 R2:

  
 Property Report  

Also, maybe use target="_blank" in your hyperlink like mine, so the user can
see your PDF in the new window.

However, you can choose just store simple URL such as
"http://server/rest/data/PropertyReport/1003.html;, but you will have to add
codes in propertyctrl.templ.

Check if a Javascript string is a url

  

function ValidURL(str) {
  var pattern = new RegExp('^(https?:\/\/)?'+ // protocol
'((([a-z\d]([a-z\d-]*[a-z\d])*)\.)+[a-z]{2,}|'+ // domain name
'((\d{1,3}\.){3}\d{1,3}))'+ // OR ip (v4) address
'(\:\d+)?(\/[-a-z\d%_.~+]*)*'+ // port and path
'(\?[;\d%_.~+=-]*)?'+ // query string
'(\#[-a-z\d_]*)?$','i'); // fragment locater
  if(!pattern.test(str)) {
alert("Please enter a valid URL.");
return false;
  } else {
return true;
  }
}

function generateHTMLLink(linkName,href)
{
  return " " + linkName+ " <\"">  "; 
}

Please see the example code here...
propertyctrl.txt
  


Cheers,
Reno



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Ajax-viewer-URL-in-Properties-Pane-tp5306236p5306766.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-06 Thread RenoSun
Okay...would you please post the codes of your original propertyctrl.templ?

I don't know why add a simple JavaScript function will cause your map window
to hang up... 



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Ajax-viewer-URL-in-Properties-Pane-tp5306236p5306637.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-06 Thread RenoSun
Here is the full codes of my propertyctrl.templ



















--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Ajax-viewer-URL-in-Properties-Pane-tp5306236p5306615.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-06 Thread RenoSun
I will suggest you undo the modification, and just add function HtmlDecode()
function first.
var _el = null; //Our "parser" element 
function HtmlDecode(input) 
{ 
if (input == null || input == "") 
return input; 

if (_el == null) 
_el = document.createElement('div'); 

_el.innerHTML = input; 
return _el.childNodes[0].nodeValue; 
}  

Then, make sure your HtmlDecode(properties[i].value) the property values.

Please open the Ajax viewer in the web browser, and right click to inspect
the elements, and let me know if there are any error messages under the
Console tab.




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Ajax-viewer-URL-in-Properties-Pane-tp5306236p5306614.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] MapGuide Maestro 6.0M6 available

2017-02-06 Thread RenoSun
Non-modal map previews is not working if the map has transparent background
colors.

*Control does not support transparent background colors.*
/System.ArgumentException: Control does not support transparent background
colors.
   at System.Windows.Forms.Control.set_BackColor(Color value)
   at Maestro.MapViewer.MapViewer.InitViewerFromMap(Nullable`1 initialScale)
in C:\projects\mapguide-maestro\Maestro.MapViewer\MapViewer.cs:line 1155
   at Maestro.MapViewer.MapViewer.LoadMap(RuntimeMap map) in
C:\projects\mapguide-maestro\Maestro.MapViewer\MapViewer.cs:line 1138
   at Maestro.Editors.Preview.MapPreviewViewContent.OnLoad(EventArgs e) in
C:\projects\mapguide-maestro\Maestro.Editors\Preview\MapPreviewViewContent.cs:line
73
   at System.Windows.Forms.UserControl.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
   at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
   at System.Windows.Forms.Control.set_Visible(Boolean value)
   at WeifenLuo.WinFormsUI.Docking.DockContentHandler.SetVisible()
   at WeifenLuo.WinFormsUI.Docking.DockPane.set_ActiveContent(IDockContent
value)
   at WeifenLuo.WinFormsUI.Docking.DockContentHandler.Activate()
   at WeifenLuo.WinFormsUI.Docking.DockContentHandler.Show(DockPanel
dockPanel, DockState dockState)
   at WeifenLuo.WinFormsUI.Docking.DockContentHandler.Show(DockPanel
dockPanel)
   at WeifenLuo.WinFormsUI.Docking.DockContent.Show(DockPanel dockPanel)
   at Maestro.Shared.UI.WorkbenchBase.ShowContent(IViewContent vc) in
C:\projects\mapguide-maestro\Maestro.Shared.UI\WorkbenchBase.cs:line 410
   at Maestro.Shared.UI.ViewContentManagerBase.OpenContent[T](String title,
String description, ViewRegion region, CreateFunc`1 method) in
C:\projects\mapguide-maestro\Maestro.Shared.UI\ViewContentManagerBase.cs:line
229
   at Maestro.Shared.UI.ViewContentManagerBase.OpenContent[T](ViewRegion
region, CreateFunc`1 method) in
C:\projects\mapguide-maestro\Maestro.Shared.UI\ViewContentManagerBase.cs:line
164
   at
Maestro.Editors.Preview.LocalMapPreviewer.<>c__DisplayClass10_0.b__1(Object
obj, Exception ex) in
C:\projects\mapguide-maestro\Maestro.Editors\Preview\LocalMapPreviewer.cs:line
172
   at Maestro.Shared.UI.BusyWaitDialog.Run(String message, BusyWaitDelegate
action, Action`2 onComplete, Boolean bPreserveThreadCulture) in
C:\projects\mapguide-maestro\Maestro.Shared.UI\BusyWaitDialog.cs:line 103
   at Maestro.Editors.Preview.LocalMapPreviewer.Preview(IResource res,
IEditorService edSvc, String locale) in
C:\projects\mapguide-maestro\Maestro.Editors\Preview\LocalMapPreviewer.cs:line
162
   at Maestro.Base.Editor.EditorContentBase.Preview() in
C:\projects\mapguide-maestro\Maestro.Base\Editor\EditorContentBase.cs:line
376
   at Maestro.Base.Commands.PreviewResourceCommand.Run() in
C:\projects\mapguide-maestro\Maestro.Base\Commands\PreviewResourceCommand.cs:line
42
   at ICSharpCode.Core.WinForms.ToolBarCommand.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e,
ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e,
ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)/



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/MapGuide-Maestro-6-0M6-available-tp5306454p5306565.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-06 Thread RenoSun
No problem. The solution for Ajax viewer is similar. Please modify the
following codes.

C:\Program Files\MapGuide\www\viewerfiles\propertyctrl.templ

function SetProperties(count, properties)
{
var code;
propCount = count;
if(count != 1)
{
var text;
if(count == 0)
{
text = "__#PROPERTIESNONE#__";
GetMapFrame().SetPropertyPaneToolbarVisibility(false);
}
else
{
text = GetMainFrame().FormatMessage("__#PROPERTIESITEMSEL#__",
new Array(count, "unused"));
GetMapFrame().SetPropertyPaneToolbarVisibility(true);
}
code = '
' + text + '
';
}
else
{
code = '
__#PROPERTIESNAME#__  __#PROPERTIESVALUE#__';
for(var i=0; i < properties.length; i++)
code += '
' + properties[i].name + '' + 
HtmlDecode(properties[i].value) + '';
code += '
';
GetMapFrame().SetPropertyPaneToolbarVisibility(true);
}

SetContent(code);
}

.

var _el = null; //Our "parser" element

function HtmlDecode(input)
{
if (input == null || input == "")
return input;

if (_el == null)
_el = document.createElement('div');

_el.innerHTML = input;
return _el.childNodes[0].nodeValue;
}




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Ajax-viewer-URL-in-Properties-Pane-tp5306236p5306550.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Ajax viewer, URL in Properties Pane

2017-02-03 Thread RenoSun
I think these links will help you :)
enable-hyperlink-in-selection-panel-of-fusion-viewer

  

SQL - html display problem in properties pane

  



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Ajax-viewer-URL-in-Properties-Pane-tp5306236p5306272.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] SQL Server Inner Joint Table Slow To Display Selection Info On AIMS 2014

2017-01-23 Thread RenoSun
Problems solve by adding index to all Asset_ID and Asset_Class_ID!!!

That's awesome!

Thank you TabrizSoftware!



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/SQL-Server-Inner-Joint-Table-Slow-To-Display-Selection-Info-On-AIMS-2014-tp5304096p5304551.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

[mapguide-users] SQL Server Inner Joint Table Slow To Display Selection Info On AIMS 2014

2017-01-19 Thread RenoSun
I am using AIMS 2014. I created a SQL Server view by using eight inner joins.
The layer using the SQL Server view is displayed with normal speed, but when
I only selected about five features on the map. It spent more than 20
seconds to load the selection info. 

My view is created by following SQL Scripts:
SELECT C.Asset_ID, .. E1.Extra_Field_Value AS DistanceToValve, 
 E2.Extra_Field_Value AS NumberOfOutlets,
E3.Extra_Field_Value AS OutletConn1Size, E4.Extra_Field_Value AS
OutletConn2Size, E5.Extra_Field_Value AS OutletConn3Size,
E6.Extra_Field_Value AS Storz, 
 E7.Extra_Field_Value AS DateInstallationEstimated,
E8.Extra_Field_Value AS MainSize
FROMdbo.vw_Map_Core_Point AS C INNER JOIN
 dbo.Asset_Extra_Fields AS E1 ON C.Asset_ID =
E1.Asset_Id AND E1.Extra_Field_Id = 2 AND C.Asset_Class_ID =
E1.Asset_Class_Id INNER JOIN
 dbo.Asset_Extra_Fields AS E2 ON C.Asset_ID =
E2.Asset_Id AND E2.Extra_Field_Id = 124  AND C.Asset_Class_ID =
E2.Asset_Class_Id  INNER JOIN
 dbo.Asset_Extra_Fields AS E3 ON C.Asset_ID =
E3.Asset_Id AND E3.Extra_Field_Id = 125  AND C.Asset_Class_ID =
E3.Asset_Class_Id  INNER JOIN
 dbo.Asset_Extra_Fields AS E4 ON C.Asset_ID =
E4.Asset_Id AND E4.Extra_Field_Id = 126  AND C.Asset_Class_ID =
E4.Asset_Class_Id  INNER JOIN
 dbo.Asset_Extra_Fields AS E5 ON C.Asset_ID =
E5.Asset_Id AND E5.Extra_Field_Id = 127  AND C.Asset_Class_ID =
E5.Asset_Class_Id  INNER JOIN
 dbo.Asset_Extra_Fields AS E6 ON C.Asset_ID =
E6.Asset_Id AND E6.Extra_Field_Id = 128  AND C.Asset_Class_ID =
E6.Asset_Class_Id  INNER JOIN
 dbo.Asset_Extra_Fields AS E7 ON C.Asset_ID =
E7.Asset_Id AND E7.Extra_Field_Id = 129  AND C.Asset_Class_ID =
E7.Asset_Class_Id  INNER JOIN
 dbo.Asset_Extra_Fields AS E8 ON C.Asset_ID =
E8.Asset_Id AND E8.Extra_Field_Id = 130  AND C.Asset_Class_ID =
E8.Asset_Class_Id 
WHERE(C.Asset_Class_ID = 64) AND (C.Disposal_Date IS NULL)

Table C has 438 records, and Table Asset_Extra_Fields has 242,430 records.

However, when I select all the records from the view, SQL Server spent less
then 1 sec to load the whole view.

Any solutions or comments will be appreciated! 

Cheers!



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/SQL-Server-Inner-Joint-Table-Slow-To-Display-Selection-Info-On-AIMS-2014-tp5304096.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
___
mapguide-users mailing list
mapguide-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapguide-users

Re: [mapguide-users] Problems with base layers.

2016-12-22 Thread RenoSun
Hi Martin,

I actually tried the method you mentioned before. 

My temporary solution is to put only one map on each fusion layout, and I
switch fusion layout by calling fusion through iframe. 

However, if you would like to see the same extent, you will have to
customize FusionSF.js to achieve that.

It's on our public GIS :)
Property Map   

Will let you know if I find a real solution for this issue.

Cheers,
Reno



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Problems-with-base-layers-tp5298092p5301119.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] Problems with base layers.

2016-12-19 Thread RenoSun
Hi Martin,

Same here with AIMS 2014. I noticed that when I switched the map by using
Map Fusion.Widget.MapMenu, somehow the Fusion was still trying to load every
maps that I switched to as basemaps, and also the Base Layers from previous
maps.

I switched to three different maps, and Fusion request the single tiles of
every map that I switched to all the time.

 
 
 
 
 

I will keep digging for solutions, but hope others may find the solutions
for this problem too.

Cheers





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Problems-with-base-layers-tp5298092p5300545.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] Introducing mapguide-react-layout: A modern viewer for MapGuide

2016-09-29 Thread RenoSun
I am using AIMS 2014, and I got following messages:

 

http://maps.qualicumbeach.com/qbmap/mapagent/mapagent.fcgi?MAPDEFINITION=Library://Test/Maps/Test.MapDefinition=7=...=CREATERUNTIMEMAP=3.0.0=en=application/json

*The requested operation is invalid.*

Is it because I am using AIMS2014?



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Introducing-mapguide-react-layout-A-modern-viewer-for-MapGuide-tp5288019p5288546.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] Measure tool and tooltip in Fusion

2016-08-31 Thread RenoSun
The solution is as following:

Pragmatically Turn off MapTip?

  

Under FusionSF.js
Add following codes under
Fusion.Widget.Measure = OpenLayers.Class(Fusion.Widget, {
..
activate: function () {
this.control.activate();
this.getMap().message.info(OpenLayers.i18n("measureInProgress"));
this.resetMeasure();
OpenLayers.Event.observe(document, "keypress", this.keyHandler);
this.loadDisplayPanel();
this.getMap().supressContextMenu(true);

*//Disable maptip when measring
Fusion.getWidgetsByType('Maptip')[1].deactivate();*
},
.
   deactivate: function () {
OpenLayers.Event.stopObserving(document, 'keypress',
this.keyHandler);
this.control.deactivate();
this.control.cancel();
this.getMap().message.clear();
this.getMap().supressContextMenu(false);

*//Enable maptip when measring tool is deactivate
Fusion.getWidgetsByType('Maptip')[1].activate();*
},
.




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Measure-tool-and-tooltip-in-Fusion-tp5283159p5283322.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

  1   2   >